🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #20288

Stock inn-1.5.1 crashing w/SIG{BUS,SEGV} on Solaris 2.5

#20288
From: James F. Hranicky
Date: Fri, 08 Aug 1997 00:00
68 lines
3624 bytes
I'm running stock inn-1.5.1 on Solaris 2.5 and I'm getting a SIGBUS
or a SIGSEGV three or four times a day. Here's the output from dbx
for one of the crashes:

   [root@thunder:/] # dbx /local/news/sbin/innd /var/tmp/inn-core.01 
   test: -e: unknown operand
   Reading symbolic information for innd
   dbx: warning: writable memory segment 0xee000000[17326080] of size 0
	 in core
   dbx: warning: writable memory segment 0xef440000[1077248] of size 0 
	in core
   core file header read successfully
   Reading symbolic information for rtld /usr/lib/ld.so.1
   Reading symbolic information for libsocket.so.1
   Reading symbolic information for libnsl.so.1
   Reading symbolic information for libelf.so.1
   Reading symbolic information for libresolv.so.2
   Reading symbolic information for libc.so.1
   Reading symbolic information for libdl.so.1
   Reading symbolic information for libintl.so.1
   Reading symbolic information for libmp.so.1
   Reading symbolic information for libw.so.1
   Reading symbolic information for nss_files.so.1
   Reading symbolic information for nss_dns.so.1
   program terminated by signal BUS (invalid address alignment)
   Current function is xmalloc
      22       while ((new = malloc(i)) == NULL)
   (dbx) list                                                                   
      22       while ((new = malloc(i)) == NULL)
      23           (*xmemfailure)("malloc", i);
      24   #if 0
      25       memset (new,0,i) ;
      26   #endif
      27       return CAST(ALIGNPTR, new);
      28   }
   (dbx) where
     [1] t_splay(0x75dd68, 0x75dd80, 0x75dd70, 0x24, 0x2e73673e, 
	 0x67f3f0), at 0xef64afd4
     [2] t_delete(0x75dd68, 0x8f7c88, 0xf10, 0x75dd78, 0x5e018, 
	  0x89ab78), at 0xef64ad2c
     [3] realfree(0x75dd68, 0xf10, 0xef6954e8, 0x89ab80, 0x89ab88, 
	  0x5d103), at 0xef64a9f0
     [4] cleanfree(0x0, 0xef6954e8, 0xef6954e8, 0xef695568, 0x0, 0xef6954ec), 
	  at 0xef64b23c
     [5] _malloc_unlocked(0x8, 0x62b148, 0x89ab80, 0xb, 0x0, 0x5d100), 
	  at 0xef64a38c
     [6] malloc(0x8, 0x1, 0x62b148, 0x0, 0x62b4b0, 0x700a8), at 0xef64a284
   =>[7] xmalloc(i = 8U), line 22 in "xmalloc.c"
     [8] CCreader(cp = 0x6fab8), line 1701 in "cc.c"
     [9] CHANreadloop(), line 832 in "chan.c"
     [10] main(ac = 0, av = 0xeffffe84), line 952 in "innd.c"
   (dbx) quit

The crashes seem to happen either in xmalloc or xrealloc. Any ideas?

I'm running a dual-processor SS20 with 256M of RAM, and 2 FW/FE Sunswift 
cards. Four 4G FW disks are striped together for the spool (FW bus 1), one 
1G narrow drive is set aside for the history DB, and the rest of the
news installation is on 1 FW 4G drive (FW bus 2).

----------------------------------------------------------------------
| Jim Hranicky, Senior SysAdmin                   UF/CISE Department |
| E314E CSE Building                            Phone (904) 392-1499 |
| jfh@cise.ufl.edu                       http://www.cis.ufl.edu/~jfh |
----------------------------------------------------------------------

Technical Details
Message-ID: <5sfdbf$7nu$1@thunder.cise.ufl.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <5sfdbf$7nu$1@thunder.cise.ufl.edu>
Subject: Stock inn-1.5.1 crashing w/SIG{BUS,SEGV} on Solaris 2.5
Date: Fri, 08 Aug 1997 00:00:00 +0000
From: jfh@tick.cise.ufl.edu (James F. Hranicky)
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 263114504
Organization: Univ. of Florida CISE Department
Newsgroups: news.software.nntp