Subject: bin/11283: /bin/sh dumps core
To: None <gnats-bugs@gnats.netbsd.org>
From: Hubert Feyrer <feyrer@miyu.feyrer.net>
List: netbsd-bugs
Date: 10/20/2000 20:47:11
>Number: 11283
>Category: bin
>Synopsis: /bin/sh dumps core
>Confidential: yes
>Severity: serious
>Priority: high
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Oct 20 20:47:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator: Hubert Feyrer
>Release: netbsd-1-5 as or 20001021 (right after the 1.5-BETA tag)
>Organization:
>Environment:
System: NetBSD miyu 1.5_ALPHA2 NetBSD 1.5_ALPHA2 (MIYU) #4: Thu Oct 5 03:41:04 MEST 2000 feyrer@miyu:/usr/cvs/src-1.5/sys/arch/i386/compile/MIYU i386
(kernel's not updated yet)
>Description:
compiling kdelibs-2.0rc2, /bin/sh dumps core when compiling in
kdelibs-2.0rc2/khtml/ecma:
miyu% pwd
/home/feyrer/work/KDE2/kdelibs-2.0rc2/khtml/ecma
miyu% gmake
/bin/sh ../../libtool --mode=link g++ -O2 -fno-exceptions -fno-check-new -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -Wno-long-long -fno-builtin -frtti -DQT_CLEAN_NAMESPACE -DQT_NO_COMPAT -DQT_NO_ASCII_CAST -fexceptions -o kjs_html.la -rpath /usr/local/KDE2rc2/lib -module -avoid-version -no-undefined kjs_html.lo kjs_dom.lo kjs_window.lo kjs_navigator.lo kjs_text.lo kjs_binding.lo kjs_proxy.lo kjs_css.lo kjs_html_la_meta_unload.lo ../../kjs/libkjs.la ../libkhtml.la
*** Warning: This library needs some functionality provided by ../libkhtml.la.
*** I have the capability to make that library automatically link in when
*** you link to this library. But I can only do this if you have a
*** shared version of the library, which you do not appear to have.
sh in free(): warning: junk pointer, too low to make sense.
gmake: *** [kjs_html.la] Segmentation fault (core dumped)
miyu% ls -la *core
-rw------- 1 feyrer wheel 426284 Oct 21 05:42 sh.core
When doing this with a /bin/sh that was compiled with debugging:
gdb:
Core was generated by `sh'.
Program terminated with signal 11, Segmentation fault.
#0 0x8053517 in popstackmark (mark=0xbfbfcd88)
at /usr/cvs/src-1.5/bin/sh/memalloc.c:194
194 stackp = sp->prev;
(gdb) bt
#0 0x8053517 in popstackmark (mark=0xbfbfcd88)
at /usr/cvs/src-1.5/bin/sh/memalloc.c:194
#1 0x804b06c in evalcommand (cmd=0x80e31a4, flags=0, backcmd=0x0)
at /usr/cvs/src-1.5/bin/sh/eval.c:888
#2 0x8049d0f in evaltree (n=0x80e31a4, flags=0)
at /usr/cvs/src-1.5/bin/sh/eval.c:272
#3 0x8049ab7 in evaltree (n=0x80e31e0, flags=0)
at /usr/cvs/src-1.5/bin/sh/eval.c:205
#4 0x8049ab7 in evaltree (n=0x80e3238, flags=0)
at /usr/cvs/src-1.5/bin/sh/eval.c:205
#5 0x8049c25 in evaltree (n=0x80e2fd4, flags=0)
at /usr/cvs/src-1.5/bin/sh/eval.c:242
#6 0x8049ad8 in evaltree (n=0x80e3248, flags=0)
at /usr/cvs/src-1.5/bin/sh/eval.c:208
#7 0x8049f1f in evalfor (n=0x80e29e0, flags=0)
at /usr/cvs/src-1.5/bin/sh/eval.c:349
#8 0x8049c81 in evaltree (n=0x80e29e0, flags=0)
at /usr/cvs/src-1.5/bin/sh/eval.c:254
#9 0x8049ad8 in evaltree (n=0x80e325c, flags=0)
at /usr/cvs/src-1.5/bin/sh/eval.c:208
#10 0x8049f1f in evalfor (n=0x80e286c, flags=0)
at /usr/cvs/src-1.5/bin/sh/eval.c:349
#11 0x8049c81 in evaltree (n=0x80e286c, flags=0)
at /usr/cvs/src-1.5/bin/sh/eval.c:254
#12 0x8049ad8 in evaltree (n=0x80e3270, flags=0)
at /usr/cvs/src-1.5/bin/sh/eval.c:208
#13 0x8049ab7 in evaltree (n=0x80e35ac, flags=0)
at /usr/cvs/src-1.5/bin/sh/eval.c:205
#14 0x8049c25 in evaltree (n=0x80e270c, flags=0)
at /usr/cvs/src-1.5/bin/sh/eval.c:242
#15 0x8049ad8 in evaltree (n=0x80e3618, flags=0)
at /usr/cvs/src-1.5/bin/sh/eval.c:208
#16 0x8049f1f in evalfor (n=0x80e2614, flags=0)
at /usr/cvs/src-1.5/bin/sh/eval.c:349
#17 0x8049c81 in evaltree (n=0x80e2614, flags=0)
at /usr/cvs/src-1.5/bin/sh/eval.c:254
#18 0x8049ad8 in evaltree (n=0x80e362c, flags=0)
at /usr/cvs/src-1.5/bin/sh/eval.c:208
#19 0x804a036 in evalcase (n=0x80e0a48, flags=0)
at /usr/cvs/src-1.5/bin/sh/eval.c:385
#20 0x8049c99 in evaltree (n=0x80e0a48, flags=0)
at /usr/cvs/src-1.5/bin/sh/eval.c:257
#21 0x8049ad8 in evaltree (n=0x80e3b70, flags=0)
at /usr/cvs/src-1.5/bin/sh/eval.c:208
#22 0x8049ab7 in evaltree (n=0x80e3bb8, flags=0)
at /usr/cvs/src-1.5/bin/sh/eval.c:205
#23 0x8049ab7 in evaltree (n=0x80e3c04, flags=0)
at /usr/cvs/src-1.5/bin/sh/eval.c:205
#24 0x8049ab7 in evaltree (n=0x80e3c48, flags=0)
at /usr/cvs/src-1.5/bin/sh/eval.c:205
#25 0x8049ab7 in evaltree (n=0x80e3c8c, flags=0)
at /usr/cvs/src-1.5/bin/sh/eval.c:205
#26 0x8049ab7 in evaltree (n=0x80e3ccc, flags=0)
at /usr/cvs/src-1.5/bin/sh/eval.c:205
#27 0x8049ab7 in evaltree (n=0x80e4700, flags=0)
at /usr/cvs/src-1.5/bin/sh/eval.c:205
#28 0x8049ab7 in evaltree (n=0x80e4744, flags=0)
at /usr/cvs/src-1.5/bin/sh/eval.c:205
#29 0x8049c25 in evaltree (n=0x80e04dc, flags=0)
at /usr/cvs/src-1.5/bin/sh/eval.c:242
#30 0x8049ad8 in evaltree (n=0x80e4754, flags=0)
at /usr/cvs/src-1.5/bin/sh/eval.c:208
#31 0x8049ab7 in evaltree (n=0x80e4790, flags=0)
at /usr/cvs/src-1.5/bin/sh/eval.c:205
#32 0x8049ab7 in evaltree (n=0x80e47cc, flags=0)
at /usr/cvs/src-1.5/bin/sh/eval.c:205
#33 0x8049ab7 in evaltree (n=0x80e4814, flags=0)
at /usr/cvs/src-1.5/bin/sh/eval.c:205
#34 0x8049ab7 in evaltree (n=0x80e8460, flags=0)
at /usr/cvs/src-1.5/bin/sh/eval.c:205
#35 0x804a036 in evalcase (n=0x80daec8, flags=0)
at /usr/cvs/src-1.5/bin/sh/eval.c:385
#36 0x8049c99 in evaltree (n=0x80daec8, flags=0)
at /usr/cvs/src-1.5/bin/sh/eval.c:257
#37 0x8049ad8 in evaltree (n=0x80f6660, flags=0)
at /usr/cvs/src-1.5/bin/sh/eval.c:208
#38 0x8049ab7 in evaltree (n=0x80f7b7c, flags=0)
at /usr/cvs/src-1.5/bin/sh/eval.c:205
#39 0x8049ab7 in evaltree (n=0x80f7cb4, flags=0)
at /usr/cvs/src-1.5/bin/sh/eval.c:205
#40 0x8049ab7 in evaltree (n=0x80f98d4, flags=0)
at /usr/cvs/src-1.5/bin/sh/eval.c:205
#41 0x8049ab7 in evaltree (n=0x80f991c, flags=0)
at /usr/cvs/src-1.5/bin/sh/eval.c:205
#42 0x804a036 in evalcase (n=0x80bd884, flags=0)
at /usr/cvs/src-1.5/bin/sh/eval.c:385
#43 0x8049c99 in evaltree (n=0x80bd884, flags=0)
at /usr/cvs/src-1.5/bin/sh/eval.c:257
#44 0x8049ad8 in evaltree (n=0x81075d8, flags=0)
at /usr/cvs/src-1.5/bin/sh/eval.c:208
#45 0x8049ab7 in evaltree (n=0x8107670, flags=0)
at /usr/cvs/src-1.5/bin/sh/eval.c:205
#46 0x8049ab7 in evaltree (n=0x81076e0, flags=0)
at /usr/cvs/src-1.5/bin/sh/eval.c:205
#47 0x8049ab7 in evaltree (n=0x8107728, flags=0)
at /usr/cvs/src-1.5/bin/sh/eval.c:205
#48 0x8049c25 in evaltree (n=0x80b67c8, flags=0)
at /usr/cvs/src-1.5/bin/sh/eval.c:242
#49 0x8052fb4 in cmdloop (top=1) at /usr/cvs/src-1.5/bin/sh/main.c:266
#50 0x8052ea7 in main (argc=38, argv=0xbfbfd1fc)
at /usr/cvs/src-1.5/bin/sh/main.c:216
#51 0x80481c5 in ___start ()
(gdb)
Some installed packages:
miyu% pkg_info -e libtool
libtool-1.3.5nb6
miyu% pkg_info -e gmake
gmake-3.79.1
>How-To-Repeat:
extract kdelibs-2.0rc2
./configure --prefix=/usr/local/KDE2rc2 --with-qt-includes=/usr/X11R6/qt2/include --with-qt-libraries=/usr/X11R6/qt2/lib --with-extra-includes=/usr/pkg/include:/usr/X11R6/include --with-extra-libs=/usr/pkg/lib:/usr/X11R6/lib
gmake
>Fix:
Unknown.
>Release-Note:
>Audit-Trail:
>Unformatted: