My application is crashing when I release memory - is glibc broken?

Solution Verified - Updated -

Issue

  • My application is crashing, and a backtrace shows it in libc, calling a delete operator. My code is releasing a structure. Is glibc broken?

    (gdb) bt
    #0  0x002cf430 in __kernel_vsyscall ()
    #1  0x00ad5fc3 in __lll_lock_wait_private () from /lib/libc.so.6
    #2  0x00a5a228 in _L_lock_5990 () from /lib/libc.so.6
    #3  0x00a56437 in _int_free () from /lib/libc.so.6
    #4  0x084a8d91 in operator delete (ptr=0xfffffe00) at /usr/src/gcc/gcc-4.2.4/libstdc
    

Environment

  • Red Hat Enterprise Linux 5 and later

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content