Bug#223394: libc6: NPTL causes segfaults on forking(?) apps with 2.6.0-test11 with exec_shield
Package: libc6
Version: 2.3.2.ds1-10
Severity: normal
Testing vanilla 2.6.0-test11 and
http://people.redhat.com/mingo/exec-shield/
I'm using bash and ls as an example, but the same symptoms
appear in wide range of apps: apt-get with apt-listchanges,
init+bootlogd, xterm+bash etc.
Without exec-shield:
# echo 0 > /proc/sys/kernel/exec-shield
# bash
$ ls
changelog.Debian.gz copyright
$ exit
With:
# echo 2 > /proc/sys/kernel/exec-shield
# bash
$ ls
changelog.Debian.gz copyright
Segmentation fault # <- this segfault happens in bash, not ls
#
Without NPTL
# echo 2 > /proc/sys/kernel/exec-shield
# LD_ASSUME_KERNEL=2.4.1 bash
$ ls
changelog.Debian.gz copyright
$
Running gdb is kinda tricky,because it segfaults too.
By starting gdb before enabling exec-shield:
Program received signal SIGSEGV, Segmentation fault.
0x08076f5f in kill_pid ()
(gdb) bt
#0 0x08076f5f in kill_pid ()
#1 0x0806876a in execute_command_internal ()
#2 0x08068105 in execute_command ()
#3 0x0805cbb0 in reader_loop ()
#4 0x0805ac85 in main ()
execute_command_internal beats my c parsing skills, so I don't really
understand what is happening.
Same effects with and without libc6-i686. Cpu is Athlon XP stepping 2
-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux kgb 2.6.0-test11 #1 Mon Dec 8 18:52:33 EET 2003 i686
Locale: LANG=C, LC_CTYPE=fi_FI@euro
Versions of packages libc6 depends on:
ii libdb1-compat 2.1.3-7 The Berkeley database routines [gl
-- no debconf information
Reply to: