SIGSEGV in ld-linux.so - Linux

This is a discussion on SIGSEGV in ld-linux.so - Linux ; Hello I have my application crashing sometimes inside the do_lookup function of the ld-linux library. Does anyone have an idea of what the reason might be? There is an example of the stack trace below (I have signal handler installed ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: SIGSEGV in ld-linux.so

  1. SIGSEGV in ld-linux.so

    Hello

    I have my application crashing sometimes inside the do_lookup function
    of the ld-linux library.
    Does anyone have an idea of what the reason might be?
    There is an example of the stack trace below (I have signal handler
    installed for the SEGV signal).
    The code in the ../src/lib/omniORB/orbcore/SocketCollection.cc:645 is
    completely innocent -
    it just tries to call a function. Also it's interesting to mention that
    while each time the program gets
    crashed in the ld-linux.so library it is always originated from
    different lines of my code.
    I have this situation with both 2.4(2.4.21-40) and 2.6(2.6.9-34) kernels.

    #13 0x00d61375 in ers::ErrorHandler::SignalHandler::action (signal=11)
    at ../src/ErrorHandler.cxx:88
    #14
    #15 0x0033039c in do_lookup () from /lib/ld-linux.so.2
    #16 0x0032f103 in _dl_lookup_symbol_internal () from /lib/ld-linux.so.2
    #17 0x0033340f in fixup () from /lib/ld-linux.so.2
    #18 0x00333330 in _dl_runtime_resolve () from /lib/ld-linux.so.2
    #19 0x00744b8d in SocketCollection::Select (this=0x8fa08cc) at
    .../src/lib/SocketCollection.cc:645
    #20 0x007ec370 in tcpEndpoint::AcceptAndMonitor (this=0x8fa08c8,
    func=0x786464 giopConnection*)>, cookie=0x8fb8e30)
    at ../src/lib/tcp/tcpEndpoint.cc:372
    #21 0x00786584 in Rendezvouser::execute (this=0x8fb8e30) at
    .../src/lib/Rendezvouser.cc:92
    #22 0x007a0af8 in AsyncWorker::real_run (this=0x8fb8e58) at
    .../src/lib/invoker.cc:213
    #23 0x0079f914 in AsyncWorkerInfo::run (this=0xb75dba40) at
    .../src/lib/invoker.cc:261
    #24 0x007a0eef in AsyncWorker::run (this=0x8fb8e58) at
    .../src/lib/invoker.cc:143
    #25 0x00e2f28f in thread_wrapper (ptr=0x8fb8e58) at ../src/lib/posix.cc:451
    #26 0x005f5dd8 in start_thread () from /lib/tls/libpthread.so.0
    #27 0x0020ed1a in clone () from /lib/tls/libc.so.6


  2. Re: SIGSEGV in ld-linux.so

    Serguei Kolos writes:

    > Hello
    >
    > I have my application crashing sometimes inside the do_lookup
    > function of the ld-linux library. Does anyone have an idea of what
    > the reason might be?


    11 times out of 10 things like that are the result of heap
    corruption. Run your program under valgrind.

    > Also it's interesting to mention that while each time the program
    > gets crashed in the ld-linux.so library it is always originated from
    > different lines of my code.


    More reason to suspect heap corruption.

    --
    Måns Rullgård
    mru@inprovide.com

+ Reply to Thread