[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug in dynamic linker



> James Moody <james@cr836502-a.slnt1.on.wave.home.com> writes:
> 
> > I downloaded all of the debs (thanks!) and installed them, even
> > tried rebooting, but I still have the SAME problem! Any other ideas,
> > short of reinstalling with a crowbar?
> > 
> 
> can you do an strace and post that? maybe we'll get a better idea of
> what's happening.
> 
> --alex--

Sure. I'm not sure if this is exactly what you need, but here's the
make config case. Another is below.

ipx:/# cd /usr/src/linux
ipx:/usr/src/linux# strace -o /root/out make config
ptrace: umoven: Input/output error
ptrace: umoven: Input/output error
ptrace: umoven: Input/output error
BUG IN DYNAMIC LINKER ld.so: BUG IN DYNAMIC LINKER ld.so: BUG IN DYNAMIC LINKER ld.so: 
ipx:/usr/src/linux# cat /root/out

execve("/usr/bin/make", ["make", "config"], [/* 15 vars */]) = 0
brk(0)                                  = 0x3ff5c
open("/etc/ld.so.preload", O_RDONLY)    = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 4
fstat(4, {st_mode=S_IFREG|0644, st_size=2774, ...}) = 0
mmap()                                  = 0xe001a000
close(4)                                = 0
open("/lib/libc.so.6", O_RDONLY)        = 4
fstat(4, {st_mode=S_IFREG|0755, st_size=1214363, ...}) = 0
read(4, "\177ELF\1\2\1\0\0\0\0\0\0\0\0\0\0\3\0\2\0\0\0\1\0\1\336"..., 4096) = 4096
mmap()                                  = 0xe002b000
mprotect(0xe0117000, 115220, PROT_NONE) = 0
mmap(0xe6fa0, 946088, 0xe6fb0, 0x8 /* MAP_??? */|MAP_FIXED|MAP_ANONYMOUS|MAP_GROWSDOWN|MAP_DENYWRITE|0xe6680, 1063328, 0x103980) = 0xe011b000
mmap(0x9a2ec, 0, PROT_READ|PROT_WRITE|PROT_EXEC|0x8, 0x6 /* MAP_??? */|MAP_ANONYMOUS|MAP_GROWSDOWN|0x200, 631584, 0) = 0xe012d000
close(4)                                = 0
munmap(0xe001a000, 2774)                = 0
personality(PER_LINUX)                  = 0
getpid()                                = 23268
getpagesize()                           = 0x1000
brk(0)                                  = 0x3ff5c
brk(0x400fc)                            = 0x400fc
brk(0x41000)                            = 0x41000
rt_sigaction(SIGHUP, {0x14750, [], SA_RESTART}, {SIG_DFL}, 0xe00507dc, 8) = 0
rt_sigaction(SIGQUIT, {0x14750, [], SA_RESTART}, {SIG_DFL}, 0xe00507dc, 8) = 0
rt_sigaction(SIGINT, {0x14750, [], SA_RESTART}, {SIG_DFL}, 0xe00507dc, 8) = 0
rt_sigaction(SIGTERM, {0x14750, [], SA_RESTART}, {SIG_DFL}, 0xe00507dc, 8) = 0
rt_sigaction(SIGXCPU, {0x14750, [], SA_RESTART}, {SIG_DFL}, 0xe00507dc, 8) = 0
rt_sigaction(SIGXFSZ, {0x14750, [], SA_RESTART}, {SIG_DFL}, 0xe00507dc, 8) = 0
getcwd("/usr/src/linux-2.2.12", 4095)   = 22
stat("debian/tmp/usr/include", 0xefffd3a8) = -1 ENOENT (No such file or directory)
stat("/usr/gnu/include", 0xefffd3a8)    = -1 ENOENT (No such file or directory)
stat("/usr/local/include", {st_mode=S_IFDIR|S_ISGID|0775, st_size=1024, ...}) = 0
stat("/usr/include", {st_mode=S_IFDIR|0755, st_size=1024, ...}) = 0
rt_sigaction(SIGCHLD, {0x14be8, [], SA_RESTART}, {SIG_DFL}, 0xe00507dc, 8) = 0
rt_sigaction(SIGUSR1, {0x116c0, [], SA_RESTART}, {SIG_DFL}, 0xe00507dc, 8) = 0
brk(0x42000)                            = 0x42000
brk(0x43000)                            = 0x43000
brk(0x44000)                            = 0x44000
stat(".", {st_mode=S_IFDIR|0755, st_size=1024, ...}) = 0
open("/dev/null", O_RDONLY|O_NONBLOCK|O_DIRECTORY|0x4) = -1 ENOTDIR (Not a directory)
open(".", O_RDONLY|O_NONBLOCK|O_DIRECTORY|0x4) = 4
fstat(4, {st_mode=S_IFDIR|0755, st_size=1024, ...}) = 0
fcntl(4, F_SETFD, FD_CLOEXEC)           = 0
brk(0x46000)                            = 0x46000
getdents(4, /* 21 entries */, 2980)     = 400
getdents(4, /* 0 entries */, 2980)      = 0
close(4)                                = 0
open("Makefile", O_RDONLY)              = 4
fstat(4, {st_mode=S_IFREG|0644, st_size=13427, ...}) = 0
mmap()                                  = 0xe001a000
read(4, "VERSION = 2\nPATCHLEVEL = 2\nSUBLE"..., 4096) = 4096
pipe([5, 4026519848])                   = 5
vfork()                                 = 23271
--- SIGCHLD (Child exited) ---
sigreturn()                             = ? (mask now [])
close(6)                                = 0
read(5, "", 200)                        = 0
close(5)                                = 0
wait4(-1, [WIFSIGNALED(s) && WTERMSIG(s) == SIGSEGV], 0, NULL) = 23271
pipe([5, 4026519840])                   = 5
vfork()                                 = 23272
--- SIGCHLD (Child exited) ---
sigreturn()                             = ? (mask now [])
close(6)                                = 0
read(5, "", 200)                        = 0
close(5)                                = 0
wait4(-1, [WIFSIGNALED(s) && WTERMSIG(s) == SIGSEGV], 0, NULL) = 23272
pipe([5, 4026519848])                   = 5
vfork()                                 = 23273
close(6)                                = 0
read(5, "", 200)                        = 0
--- SIGCHLD (Child exited) ---
sigreturn()                             = ? (mask now [])
close(5)                                = 0
wait4(-1, [WIFSIGNALED(s) && WTERMSIG(s) == SIGSEGV], 0, NULL) = 23273
read(4, "= $(DRIVERS) drivers/video/video"..., 4096) = 4096
open("arch//Makefile", O_RDONLY)        = -1 ENOENT (No such file or directory)
open("/usr/local/include/arch//Makefile", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/include/arch//Makefile", O_RDONLY) = -1 ENOENT (No such file or directory)
--- SIGSEGV (Segmentation fault) ---
+++ killed by SIGSEGV +++



Here's me compiling a simple c program:

ipx:~# strace -o /root/out gcc -c a.c
ptrace: umoven: Input/output error
ptrace: umoven: Input/output error
BUG IN DYNAMIC LINKER ld.so: gcc: Internal compiler error: program cpp got fatal signal 11
ipx:~# cat /root/out
execve("/usr/bin/gcc", ["gcc", "-c", "a.c"], [/* 15 vars */]) = 0
brk(0)                                  = 0x3451c
open("/etc/ld.so.preload", O_RDONLY)    = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 4
fstat(4, {st_mode=S_IFREG|0644, st_size=2774, ...}) = 0
mmap()                                  = 0xe001a000
close(4)                                = 0
open("/lib/libc.so.6", O_RDONLY)        = 4
fstat(4, {st_mode=S_IFREG|0755, st_size=1214363, ...}) = 0
read(4, "\177ELF\1\2\1\0\0\0\0\0\0\0\0\0\0\3\0\2\0\0\0\1\0\1\336"..., 4096) = 4096
mmap()                                  = 0xe002b000
mprotect(0xe0117000, 115220, PROT_NONE) = 0
mmap(0xe6fa0, 946088, 0xe6fb0, 0x8 /* MAP_??? */|MAP_FIXED|MAP_ANONYMOUS|MAP_GROWSDOWN|MAP_DENYWRITE|0xe6680, 1063328, 0x103980) = 0xe011b000
mmap(0x9a2ec, 0, PROT_READ|PROT_WRITE|PROT_EXEC|0x8, 0x6 /* MAP_??? */|MAP_ANONYMOUS|MAP_GROWSDOWN|0x200, 631584, 0) = 0xe012d000
close(4)                                = 0
munmap(0xe001a000, 2774)                = 0
personality(PER_LINUX)                  = 0
getpid()                                = 23346
getpagesize()                           = 0x1000
brk(0)                                  = 0x3451c
brk(0x346bc)                            = 0x346bc
brk(0x35000)                            = 0x35000
rt_sigaction(SIGINT, {SIG_IGN}, {SIG_DFL}, 0xe00507dc, 8) = 0
rt_sigaction(SIGINT, {0x18308, [], SA_RESTART}, {SIG_IGN}, 0xe00507dc, 8) = 0
rt_sigaction(SIGHUP, {SIG_IGN}, {SIG_DFL}, 0xe00507dc, 8) = 0
rt_sigaction(SIGHUP, {0x18308, [], SA_RESTART}, {SIG_IGN}, 0xe00507dc, 8) = 0
rt_sigaction(SIGTERM, {SIG_IGN}, {SIG_DFL}, 0xe00507dc, 8) = 0
rt_sigaction(SIGTERM, {0x18308, [], SA_RESTART}, {SIG_IGN}, 0xe00507dc, 8) = 0
rt_sigaction(SIGPIPE, {SIG_IGN}, {SIG_DFL}, 0xe00507dc, 8) = 0
rt_sigaction(SIGPIPE, {0x18308, [], SA_RESTART}, {SIG_IGN}, 0xe00507dc, 8) = 0
brk(0x36000)                            = 0x36000
brk(0x37000)                            = 0x37000
brk(0x38000)                            = 0x38000
access("a.c", R_OK)                     = 0
access("/usr/lib/gcc-lib/sparc-linux/2.95.1/specs", R_OK) = 0
open("/usr/lib/gcc-lib/sparc-linux/2.95.1/specs", O_RDONLY) = 4
stat("/usr/lib/gcc-lib/sparc-linux/2.95.1/specs", {st_mode=S_IFREG|0644, st_size=3314, ...}) = 0
brk(0x39000)                            = 0x39000
read(4, "*asm:\n%{V} %{v:%{!V:-V}} %{!Qn:-"..., 3314) = 3314
close(4)                                = 0
brk(0x3a000)                            = 0x3a000
brk(0x3b000)                            = 0x3b000
access("/usr/lib/gcc-lib/sparc-linux/specs", R_OK) = -1 ENOENT (No such file or directory)
brk(0x3c000)                            = 0x3c000
access("/tmp", R_OK|W_OK|X_OK)          = 0
gettimeofday({936626603, 533034}, NULL) = 0
getpid()                                = 23346
open("/tmp/ccrA3q4L.i", O_RDWR|O_CREAT|O_EXCL, 0600) = 4
close(4)                                = 0
access("/usr/lib/gcc-lib/sparc-linux/2.95.1/cpp", X_OK) = 0
vfork()                                 = 23347
--- SIGCHLD (Child exited) ---
wait4(-1, [WIFSIGNALED(s) && WTERMSIG(s) == SIGSEGV], 0, NULL) = 23347
write(2, "gcc: ", 5)                    = 5
write(2, "Internal compiler error: program"..., 56) = 56
write(2, "\n", 1)                       = 1
stat("/tmp/ccrA3q4L.i", {st_mode=S_IFREG|0600, st_size=0, ...}) = 0
unlink("/tmp/ccrA3q4L.i")               = 0
exit(1)                                 = ?


If there are different tests that would be useful, please let me know.

Thanks for any help,

james


Reply to: