home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!timbuk.cray.com!shamash!runyon.cim.cdc.com!pbd
- From: pbd@runyon.cim.cdc.com (Paul Dokas)
- Newsgroups: comp.unix.bsd
- Subject: bug in $SRC/libc/db/btree?
- Message-ID: <50673@shamash.cdc.com>
- Date: 18 Dec 92 21:13:42 GMT
- Sender: usenet@shamash.cdc.com
- Organization: ICEM Systems, Inc.
- Lines: 49
-
- I've been trying to get aliasing working with sendmail on 386BSD 0.1 pl58
- and it works, unless I have more than ~75 aliases in /etc/aliases. When
- there are more than ~75, then sendmail stops with a segmentation violation.
-
- I've run it through gdb and found the following:
-
- % gdb ./sendmail
- Reading symbol data from /usr/obj/usr.sbin/sendmail/src/sendmail...done.
- (gdb) run -bi
- Starting program: /usr/obj/usr.sbin/sendmail/src/sendmail -bi
-
- Program received signal 11, Segmentation fault
- Reading in symbols for storage.c...done.
- 0x12461 in _bt_getpage (t=(BTREE_P) 0xfbbee458, pgno=0x00000001) (storage.c line75)
- 75 (storage.c)
- (gdb) where
- #0 0x12461 in _bt_getpage (t=(BTREE_P) 0xfbbee458, pgno=0x00000001)
- (storage.c line 75)
- #1 0x1218d in _bt_search (t=(BTREE_P) 0xfbbee458, key=(DBT *) 0xfbbee450)
- (search.c line 157)
- #2 0x113af in bt_put (dbp=(struct __db *) 0x38f00, key=(DBT *) 0xfbbee450,
- data=(DBT *) 0xfbbee448, flag=0x00000004) (btree.c line 437)
- #3 0x11b55 in _bt_insert (t=(BTREE_P) 0x38f00, item=(struct BTITEM *) 0x27825,
- key=(DBT *) 0xfbbee450, data=(DBT *) 0xfbbee448, flag=4)
- (insert.c line 115)
- #4 0x11453 in bt_put (dbp=(struct __db *) 0x38ec0, key=(DBT *) 0xfbbee450,
- data=(DBT *) 0xfbbee448, flag=0x00000004) (btree.c line 454)
- #5 0x98a in readaliases (aliasfile=(char *) 0x30180 "/etc/aliases", init=1)
- (/usr/src/usr.sbin/sendmail/src/alias.c line 602)
- #6 0x4a2 in initaliases (aliasfile=(char *) 0x30180 "/etc/aliases", init=1)
- (/usr/src/usr.sbin/sendmail/src/alias.c line 353)
- #7 0x7ce7 in main (argc=2, argv=(char **) 0xfbbef000, envp=(char **) 0xfbbef00c)
- (/usr/src/usr.sbin/sendmail/src/main.c line 533)
-
- So it's breaking in the btree code. I'm not familiar with this code, so I
- thought that I'd ask if anyone has seen similar problems with this code.
- And if so, are there any patches?
-
- Some other possibly important info:
- - the ordering of the /etc/aliases file is not important, it's only the
- length of /etc/aliases
-
- - I have rebuilt libc (I'm not using the distribution libc)
-
- --
- #include <std.disclaimer>
- #define FULL_NAME "Paul Dokas"
- #define EMAIL "pbd@runyon.cim.cdc.com"
- /* Just remember, you *WILL* die someday. */
-