malloc errors in an application result in the application being hung in a deadlock instead of aborting with a crash

Solution Unverified - Updated -

Issue

  • malloc errors in an application result in the application being hung in a deadlock instead of aborting with a crash

  • A sample call trace:

#0  0x0000003c208f4ede in __lll_lock_wait_private () from /lib64/libc.so.6
#1  0x0000003c2087bb68 in _L_lock_9159 () from /lib64/libc.so.6
#2  0x0000003c20879502 in malloc () from /lib64/libc.so.6
#3  0x0000003c2000cb2b in _dl_map_object_deps () from /lib64/ld-linux-x86-64.so.2
#4  0x0000003c2001292f in dl_open_worker () from /lib64/ld-linux-x86-64.so.2
#5  0x0000003c2000e0a6 in _dl_catch_error () from /lib64/ld-linux-x86-64.so.2
#6  0x0000003c2001238a in _dl_open () from /lib64/ld-linux-x86-64.so.2
#7  0x0000003c20922f20 in do_dlopen () from /lib64/libc.so.6
#8  0x0000003c2000e0a6 in _dl_catch_error () from /lib64/ld-linux-x86-64.so.2
#9  0x0000003c20923077 in __libc_dlopen_mode () from /lib64/libc.so.6
#10 0x0000003c208fb6e5 in init () from /lib64/libc.so.6
#11 0x0000003c2100cab3 in pthread_once () from /lib64/libpthread.so.0
#12 0x0000003c208fb7e4 in backtrace () from /lib64/libc.so.6
#13 0x0000003c2086f83b in __libc_message () from /lib64/libc.so.6
#14 0x0000003c20875146 in malloc_printerr () from /lib64/libc.so.6
#15 0x0000003c20877c74 in _int_free () from /lib64/libc.so.6
<snip>

Environment

  • Red Hat Enterprise Linux 6
  • glibc
  • An application with an error that corrupts its memory

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In