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

Bug#442858: libc6-prof: programs linked agains libc_p.a crash with a SEGV



Hi!

I came across the same bug in Ubuntu gutsy.

The problem is that the instrumentation function __mcount_internal
uses the thread control block (the "cmpl   $0x0,%gs:0xc"), but %gs
is not initialized at this point, yet (mcount is called at the very
start of __libc_start_main).

As a crude work-around I replaced the "cmpl   $0x0,%gs:0xc" and
the following "je" with NOPs in libc_p.a which makes things work for me.

best regards
-Edwin





Reply to: