*BSD News Article 9101


Return to BSD News archive

Received: by minnie.vk1xwt.ampr.org with NNTP
	id AA5168 ; Tue, 22 Dec 92 07:00:43 EST
Path: sserve!manuel.anu.edu.au!munnari.oz.au!sgiblab!spool.mu.edu!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 initalote:

: One of the big criticism leveled at US Engineers is that they are either
: too dumb or lazy to build into their software support for non-Western
: scripts.

I'd be more than happy to build internationalization into my code, if I knew how
to do it... <sigh>
-- 
Ed Carp			erc@apple.com, erc@saturn.upl.com	801/538-0177

Who and what would you be if you went beyond your deepest fears?

From wolfy@im.ncu.edu.tw (Jann-Yea Sue) 724988662
Newsgroups: comp.unix.bsd
Path: sserve!manuel.anu.edu.au!munnari.oz.au!news.hawaii.edu!ames!saimiri.primate.wisc.edu!caen!sol.ctr.columbia.edu!ira.uka.de!gmd.de!jvnc.net!news.edu.tw!sparc4.ncu.edu.tw!im!wolfy
From: wolfy@im.ncu.edu.tw (Jann-Yea Sue)
Subject: Re: Diffs to BSDI BSD/386 Ported Software List
Message-ID: <1992Dec18.125923.13317@sparc4.ncu.edu.tw>
Sender: news@sparc4.ncu.edu.tw
Reply-To: wolfy@im.ncu.edu.tw
Organization: Sun