[uClibc]latest cvs gives segfaults

Giulio Orsero giulioo at pobox.com
Fri Jan 18 11:48:42 UTC 2002


uClibc cvs 2002-01-18 about 11.00 UTC

Red Hat 6.x
	glibc-2.1.2-11
	binutils-2.9.1.0.23-6
	egcs-1.1.2-24

1) running apps compiled against uClibc in the past or newly compiled
against new uClibc produces segfaults
2) compiling busybox is weird (building against normal glibc does not show
this weirdness)

fresh busybox cvs
copy /path/myconfig .config
# make oldconfig
... ok
# make dep
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o scripts/mkdep
scripts/mkdep.c
make[1]: Entering directory `/disco3/devel/busybox'
make -C applets fastdep
make[2]: Entering directory `/disco3/devel/busybox/applets'
../scripts/mkdep -I/disco3/devel/busybox/include -Wall -Wstrict-prototypes
-Wshadow -Os -fomit-frame-pointer   -D_GNU_SOURCE    -- applets.c busybox.c
usage.c > .depend
make[2]: *** [fastdep] Error 139
make[2]: Leaving directory `/disco3/devel/busybox/applets'
make[1]: *** [_sfdep_applets] Error 2
make[1]: Leaving directory `/disco3/devel/busybox'
make: *** [dep-files] Error 2

go into applets and re-do by hand to see output:

# ../scripts/mkdep  -I/disco3/devel/busybox/include -Wall -Wstr
ict-prototypes -Wshadow -Os -fomit-frame-pointer   -D_GNU_SOURCE    --
applets.c busybox.c usage.c
Segmentation fault
#

back into top source dir, try redoing "make dep" (now it's ok...)
# make dep
 
 
Now run 'make' to build BusyBox
 
 
# make
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o
scripts/split-include
scripts/split-include.c
scripts/split-include include/config.h include/config
make: *** [include/config/MARKER] Segmentation fault
# touch include/config/MARKER
# make
...
building ok, it seems
...
]# ./busybox
Segmentation fault
# which ldd
/usr/i386-linux20-uclibc/bin/ldd
# ldd busybox
        libc.so.0 => /usr/i386-linux20-uclibc/lib/libc.so.0
        /usr/i386-linux20-uclibc/lib/ld-uClibc.so.0 =>
/usr/i386-linux20-uclibc/lib/ld-uClibc.so.0
# strace ./busybox
execve("./busybox", ["./busybox"], [/* 84 vars */]) = 0
--- SIGSEGV (Segmentation fault) ---
+++ killed by SIGSEGV +++
#



-- 
giulioo at pobox.com



More information about the uClibc mailing list