Closed Bug 1029 Opened 26 years ago Closed 26 years ago

mozilla/cmd/xfe/icons/mkicons segfaults.

Categories

(SeaMonkey :: Build Config, defect, P2)

x86
Linux
defect

Tracking

(Not tracked)

VERIFIED WONTFIX

People

(Reporter: pip, Assigned: ramiro)

Details

mozilla/cmd/xfe/icons/mkicons builds ok, but segfaults when run.
linux 2.0.34, lesstiff-cvs, gcc 2.7.2, autoconf & classic build.

...


../../../config/./nsinstall -R -m 444 ./icon_extern.h
/usr/home/jip/moz/mozilla/cmd/xfe/icons/icondata.h ../../../dist/public/xfeicons
c++ -DXP_UNIX -g -O2   -DUSE_AUTOCONF=1 -DSTDC_HEADERS=1 -DHAVE_ST_BLKSIZE=1
-DHAVE_ST_RDEV=1 -DHAVE_TZNAME=1 -DHAVE_DIRENT_H=1 -DSTDC_HEADERS=1
-DHAVE_SYS_WAIT_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_FCNTL_H=1 -DHAVE_LIMITS_H=1
-DHAVE_MALLOC_H=1 -DHAVE_PATHS_H=1 -DHAVE_STRINGS_H=1 -DHAVE_UNISTD_H=1
-DHAVE_SYS_FILE_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_GETOPT_H=1
-DHAVE_SYS_CDEFS_H=1 -DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 -DHAVE_UNISTD_H=1
-DHAVE_GETPAGESIZE=1 -DHAVE_MMAP=1 -DRETSIGTYPE=void -DHAVE_STRCOLL=1
-DHAVE_STRFTIME=1 -DHAVE_UTIME_NULL=1 -DHAVE_VPRINTF=1 -DHAVE_FTIME=1
-DHAVE_GETCWD=1 -DHAVE_GETHOSTNAME=1 -DHAVE_GETWD=1 -DHAVE_MKDIR=1
-DHAVE_MKTIME=1 -DHAVE_PUTENV=1 -DHAVE_RMDIR=1 -DHAVE_SELECT=1 -DHAVE_SOCKET=1
-DHAVE_STRCSPN=1 -DHAVE_STRDUP=1 -DHAVE_STRERROR=1 -DHAVE_STRSPN=1
-DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -DHAVE_STRTOUL=1 -DHAVE_UNAME=1 -DHAVE_QSORT=1
-DHAVE_SNPRINTF=1 -DHAVE_GETTIMEOFDAY=1 -DGETTIMEOFDAY_TWO_ARGS=1
-DHAVE_SYSERRLIST=1 -DHAVE_LIBC=1 -DHAVE_LIBM=1 -DHAVE_LIBDL=1 -DHAVE_LIBINTL=1
-DHAVE_LIBL=1 -DHAVE_LIBX11=1 -DHAVE_LIBXEXT=1 -DHAVE_LIBICE=1 -DHAVE_LIBSM=1
-DHAVE_LIBXT=1 -DHAVE_LIBXMU=1 -DHAVE_LIBXPM=1  -I/usr/local/nspr/include
-UDEBUG -DNDEBUG -DTRIMMED -DNSPR20 -DNETSCAPE -DOSTYPE=\"Linux2.0\"
-DMOZILLA_CLIENT -DCookieManagement -DNO_SECURITY -DLAYERS -DUNIX_EMBED
-DX_PLUGINS -DNSPR -DJS_THREADSAFE -DUNIX_ASYNC_DNS -DMOZ_USER_DIR=\".mozilla\"
-DXFE  -I../../../dist/public/img -I../../../dist/public/java
-I../../../dist/public/jtools -I../../../dist/public/layer
-I../../../dist/public/nspr -I../../../dist/public/util
-I../../../dist/public/xp -I../../../dist/public/xpcom
-I../../../dist/public/jpeg -I../../../dist/public/png
-I../../../dist/public/zlib -I/usr/home/jip/moz/mozilla/include
-I/usr/home/jip/moz/mozilla/cmd/xfe/icons/. -I.   -I/usr/include/g++
-I../../../dist/./include   -o mkicons
-I/usr/home/jip/moz/mozilla/modules/libimg/src
/usr/home/jip/moz/mozilla/cmd/xfe/icons/mkicons.cpp
../../../dist/./lib/libimg.a ../../../dist/./lib/libstubsj.a
../../../dist/./lib/libutil.a ../../../dist/./lib/libxp.a
../../../dist/./lib/libxpcom.a ../../../dist/./lib/libpng.a
../../../dist/./lib/libzlib.a ../../../dist/./lib/libjpeg.a
-L/usr/local/nspr/lib -lplds21 -lplc21 -lnspr21      -L/lib -ldl -lc -lm
/usr/home/jip/moz/mozilla/cmd/xfe/icons/mkicons.cpp: In function `void
_IMGCB_NewPixmap(struct IMGCB *, long int, void *, long int, long int, struct
_NI_Pixmap *, struct _NI_Pixmap *)':
/usr/home/jip/moz/mozilla/cmd/xfe/icons/mkicons.cpp:246: warning: ANSI C++
forbids implicit conversion from `void *' in initialization
./mkicons -no-xfe-define - < ./iconanim.list > icondata.c.$$ && mv icondata.c.$$
icondata.c
make: *** [icondata.c] Error 139

...

 ../../../config/./nsinstall -R -m 555 ./libxfe2.so ../../../dist/./bin
make[3]: Leaving directory `/fire/tmp/moz/cmd/xfe/src'
cd icons; make libs
make[3]: Entering directory `/fire/tmp/moz/cmd/xfe/icons'
./mkicons -no-xfe-define - < ./iconanim.list > icondata.c.$$ && mv icondata.c.$$
icondata.c
make[3]: *** [icondata.c] Error 139
make[3]: Leaving directory `/fire/tmp/moz/cmd/xfe/icons'
make[2]: *** [libs] Error 2
make[2]: Leaving directory `/fire/tmp/moz/cmd/xfe'
make[1]: *** [libs] Error 2
make[1]: Leaving directory `/fire/tmp/moz/cmd'
make: *** [libs] Error 2

...

succes,
jip
Assignee: briano → ramiro
Ramiro, is this the same thing you were seeing a week or so
ago?  Any ideas?

pip, does this exhibit the same behavior for both the autoconf
build _and_ the original build system?
Yes, cvs 9 oct 9:00 MET, both autoconf and classic
build build a segfaulting mkicons.
classic:
~/moz/mozilla/cmd/xfe/icons $ ldd Linux2.0.34_x86_DBG.OBJ/mkicons
        libdl.so.1 => /lib/libdl.so.1.7.14
        libc.so.5 => /lib/libc.so.5.2.18
        libg++.so.27 => /usr/local/lib/libg++.so.27
        libstdc++.so.27 => /usr/local/lib/libstdc++.so.27
        libm.so.5 => /lib/libm.so.5.0.5
autoconf:
/fire/tmp/moz/cmd/xfe/icons $ ldd mkicons
        libplds21.so => /usr/local/nspr/lib/libplds21.so
        libplc21.so => /usr/local/nspr/lib/libplc21.so
        libnspr21.so => /usr/local/nspr/lib/libnspr21.so
        libdl.so.1 => /lib/libdl.so.1.7.14
        libc.so.5 => /lib/libc.so.5.2.18
        libstdc++.so.27 => /usr/local/lib/libstdc++.so.27
        libm.so.5 => /lib/libm.so.5.0.5

bye,
jip
Ive built mozilla for ages with the same setup as you.  I've also built it with
many other linux/motif/lesstif setups and i've never seen this problem.

One thing you can do to is build a debuggable mkicons (unset BUILD_OPT) and run
it on the debugger with the command line flags that you see on the make log and
please report what you find.

marking assigned
Status: NEW → ASSIGNED
mkicons in the classic build started working again!, don't know how
mkicons in the autoconf build still segfaults

and my first time using gdb:

/fire/tmp/moz/cmd/xfe/icons $ /fire/tmp/tmp/gdb-4.17/gdb/gdb mkicons
...
This GDB was configured as "i586-pc-linux-gnulibc1"...
(gdb) run -no-xfe-define - < ./iconanim.list > icondata.c.$$ && mv icondata.c.$$
 icondata.c
Starting program: /fire/tmp/moz/cmd/xfe/icons/mkicons -no-xfe-define - <
./iconan
im.list > icondata.c.$$ && mv icondata.c.$$ icondata.c
warning: Unable to find dynamic linker breakpoint function.
warning: GDB will be unable to debug shared library initializers
warning: and track explicitly loaded dynamic code.

Program received signal SIGSEGV, Segmentation fault.
0x40023d10 in ?? () from /usr/local/nspr/lib/libnspr21.so
(gdb)

(should read man and configure --enable-debug)
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → WONTFIX
old code base.

marking wontix.
Status: RESOLVED → VERIFIED
Old bug...go get the latest mozilla source code!  www.mozilla.org

Marking Verified/Won't Fix
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.