home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / unix / bsd / 10398 < prev    next >
Encoding:
Text File  |  1992-12-21  |  2.7 KB  |  60 lines

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