bug-glibc
[Top][All Lists]
Advanced

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

Problem with ld-linux.so.2 under glibc-2.2.5


From: loz
Subject: Problem with ld-linux.so.2 under glibc-2.2.5
Date: Thu, 31 Jan 2002 22:47:20 +0000

Apologies for the lack of title on the last email.

On 2002.01.29 22:48 Loz wrote:
I've been having a problem with ORBit from the gnome2 alpha. See http://mail.gnome.org/archives/orbit-list/2002-January/msg00114.html for a thread discussing it. In brief, when I try and start an executable called server I get a core dump.
If I run gdb against this dump I don't get any useful symbols.
Running strace would indicate that the program is either linking or has just finished linking when it dies. I've tried reinstalling glibc (2.2.5) - as I belive (from the offsets shown by ldd) that the program is running /lib/ld-linux.so.2 when it dies. I tried to include debugging symbols by compiling with -g among my CFLAGS.
Is there something else I should do to enable symbols?
I'm using gcc-3.0.3 and a pretty recent binutils (something from the 2.10.1 range).
I don't appear to get this problem with any other binaries.
Can anyone suggest anything that may help?

cheers

Loz

For reference:
$ ldd server
        libpthread.so.0 => /lib/libpthread.so.0 (0x40021000)
        libdl.so.2 => /lib/libdl.so.2 (0x40038000)
        libc.so.6 => /lib/libc.so.6 (0x4003c000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

$ gdb server core
GNU gdb 5.1
Copyright 2001 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu"...
Core was generated by `./server --ORBIIOPIPv4=0 --ORBIIOPUSock=1'.
Program terminated with signal 11, Segmentation fault.
#0  0x40009f5a in ?? ()
(gdb) bt
#0  0x40009f5a in ?? ()
#1  0x4000295b in ?? ()
#2  0x4000df7b in ?? ()
#3  0x4000254e in ?? ()
#4  0x400022d1 in ?? ()
(gdb) quit

$ strace ./server --ORBIIOPIPv4=0 --ORBIIOPUSock=1
execve("./server", ["./server", "--ORBIIOPIPv4=0", "--ORBIIOPUSock=1"], [/* 24 vars */]) = 0
brk(0)                                  = 0x80f41e8
open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=33049, ...}) = 0
old_mmap(NULL, 33049, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40017000
close(3)                                = 0
open("/lib/libpthread.so.0", O_RDONLY)  = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\20S\0\000"..., 1024) = 1024
fstat64(3, {st_mode=S_IFREG|0755, st_size=558139, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40020000 old_mmap(NULL, 93636, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40021000
mprotect(0x40031000, 28100, PROT_NONE)  = 0
old_mmap(0x40031000, 28672, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0xf000) = 0x40031000
close(3)                                = 0
open("/lib/libdl.so.2", O_RDONLY)       = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\260\36"..., 1024) = 1024
fstat64(3, {st_mode=S_IFREG|0755, st_size=66078, ...}) = 0
old_mmap(NULL, 12916, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40038000
mprotect(0x4003b000, 628, PROT_NONE)    = 0
old_mmap(0x4003b000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x2000) = 0x4003b000
close(3)                                = 0
open("/lib/libc.so.6", O_RDONLY)        = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\200\310"..., 1024) = 1024
fstat64(3, {st_mode=S_IFREG|0755, st_size=5651210, ...}) = 0
old_mmap(NULL, 1302336, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4003c000
mprotect(0x40170000, 40768, PROT_NONE)  = 0
old_mmap(0x40170000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x133000) = 0x40170000 old_mmap(0x40176000, 16192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40176000
close(3)                                = 0
--- SIGSEGV (Segmentation fault) ---
+++ killed by SIGSEGV +++



reply via email to

[Prev in Thread] Current Thread [Next in Thread]