Subject: NetBSD 1.4.1 an siag
To: None <port-sparc@netbsd.org>
From: Michael Ritzert <mjr@turbo.su.shuttle.de>
List: port-sparc
Date: 11/04/2000 11:01:45
some weeks ago i posted a core dump of pw/siag obtained on NetBSD
sparc 1.4.1 in the mailing list. It was some late 3.3.x but even 3.0.8 
which built flawlessly on NetBSD 1.3.2 crashed similarly on 1.4.1.

Meanwhile i tried out all 3.4.x relaeases of siag with similar results 
(core dumps on NetBSD, everything fine on linux/intel and
Solaris7/sparc).

For siag 3.4.2, there is something new - the core dump occurs much
earlier, again in strcasecmp.


To sum up the situation:

- "siag old" (3.0.8?) build roght out of the box on NetBSD 1.3.2.
- All versions including "siag old" dump core in strcasecmp() while
  building up their menu trees - with the exception of siag 3.4.2 which
  dumps core during initilisation of its GUI, but also in strcasecmp().
- All versions of siag i tried build an run just fine on my SunOS
  5.[67] sparcs.

I have the feeling that this is more a problem of this specific
release of NetBSD than it is a problem of siag.

My question: have there been any changes in the libraries between
1.3.2 and 1.4.1 (a.out) or compiler or memory layout of applications
which could explain this? Have there been any such changes in 1.5
which could lead to a less problematic behavior?

Thanks for any hint

Michael

PS: enclosed a (typical) core dump of pw 3.4.2

Reading symbols from /usr/libexec/ld.so...done.
Reading symbols from /usr/lib/libcrypt.so.0.0...done.
Reading symbols from /usr/X11R6/lib/libXpm.so.4.11...done.
Reading symbols from /usr/X11R6/lib/libXawM.so.0.0...done.
Reading symbols from /usr/X11R6/lib/libXmu.so.6.0...done.
Reading symbols from /usr/X11R6/lib/libXext.so.6.3...done.
Reading symbols from /usr/X11R6/lib/libXt.so.6.0...done.
Reading symbols from /usr/X11R6/lib/libX11.so.6.1...done.
Reading symbols from /usr/X11R6/lib/libSM.so.6.0...done.
Reading symbols from /usr/X11R6/lib/libICE.so.6.3...done.
Reading symbols from /usr/lib/libm.so.0.1...done.
Reading symbols from /usr/lib/libc.so.12.40...done.
#0  0x10307308 in strcasecmp ()
(gdb) bt
#0  0x10307308 in strcasecmp ()
#1  0x103072d0 in strcasecmp ()
#2  0x100b13c8 in ?? () from /usr/X11R6/lib/libXpm.so.4.11
#3  0x100b19e4 in ?? () from /usr/X11R6/lib/libXpm.so.4.11
#4  0x100b3744 in xpmParseDataAndCreate ()
#5  0x100b9c8c in XpmCreateImageFromData ()
#6  0x100b9220 in XpmCreatePixmapFromData ()
#7  0x5185c in get_icon (w=0x27ec00, icon_data=0x71558) at SubME.c:156
#8  0x5189c in Initialize (req_widget=0xefffe158, new_widget=0x27ec00, 
    args=0xefffe098, num_args=0xefffe084) at SubME.c:174
#9  0x101691cc in CallInitialize ()
#10 0x10169624 in xtCreate ()
#11 0x10169cd8 in _XtCreateWidget ()
#12 0x10193b88 in _XtVaCreateWidget ()
#13 0x10193c2c in XtVaCreateManagedWidget ()
#14 0x88ec in add_submenu (label=0x0, sublabel=0x277c30) at window.c:1073
#15 0x42e5c in leval (x=0xdc1f0, env=0x0) at slib.c:1529
#16 0x45b10 in vload (fname=0x0, cflag=0, rflag=0) at slib.c:2255
#17 0x45b60 in load (fname=0xdb0b0, cflag=0x0, rflag=0x8e080) at slib.c:2262
#18 0x45c10 in require (fname=0xdb0b0) at slib.c:2271
#19 0x4343c in leval (x=0xdb080, env=0x0) at slib.c:1619
#20 0x45b10 in vload (fname=0x0, cflag=0, rflag=0) at slib.c:2255
#21 0x45b60 in load (fname=0xd8ee0, cflag=0x0, rflag=0x0) at slib.c:2262
---Type <return> to continue, or q <return> to quit---
#22 0x432c8 in leval (x=0x0, env=0xd8eb0) at slib.c:1594
#23 0x3f7dc in repl (h=0xefffef70) at slib.c:512
#24 0x3f2ac in repl_driver (want_sigint=0, want_init=0, h=0xefffef70)
    at slib.c:317
#25 0x17e7c in execute_siod (s=0x11cb0 "(create-menus)") at siodi.c:93
#26 0xdf98 in exec_expr (interpreter=0, expr=0x11cb0 "(create-menus)")
    at railway.c:95
#27 0x11f50 in realmain (argc=1, argv=0xeffff684) at main.c:130
#28 0x12030 in main (argc=1, argv=0xeffff684) at main.c:161