Reported by Wade Berrier (1251991933|%O ago)
First, I do icl_initialise. Then I start up 3 threads each owning it's own connection and session objects. I connect each one up, and disconnect each one, and then clean up those threads. This runs 15 times. Then the test calls icl_terminate, and then the test is finished. When I stick this test in a shell while loop, running it over and over, openamq crashes.
If I mutex the connection_new/session_new and connection_destroy/session_destroy around a single shared mutex, the tests run much longer, but the same behavior eventually exhibits itself.
Here's the crash output:
FATAL ERROR at icl_mem_fat.c:1275, in icl_mem_fat_free
Allocated item at 0x213a568 expected tag=0xfabb, actual tag=0xdead
Please report this to gro.qmanepo.stsil|ved-qmanepo#gro.qmanepo.stsil|ved-qmanepo
and the backtrace from a debug build:
#0 0x00007f774303efb5 in raise () from /lib/libc.so.6
#1 0x00007f7743040bc3 in abort () from /lib/libc.so.6
#2 0x000000000097d87d in icl_mem_fat_free (item=0x213a568) at icl_mem_fat.c:1275
#3 0x000000000096f21d in smt_signal_destroy_ (self_p=0x7f77397f9ed8, file=<value optimized out>, line=<value optimized out>)
#4 0x000000000096f861 in smt_signal_deregister (the_signal=15) at smt_signal.c:726
#5 0x000000000092f55c in amq_client_agent_manager (thread_p=0x7f77397fa088) at amq_client_agent.c:16844
#6 0x0000000000956932 in s_execute (apr_thread=<value optimized out>, data=<value optimized out>) at smt_os_thread.c:3216
#7 0x00007f7743b2f3ba in start_thread () from /lib/libpthread.so.0
#8 0x00007f77430f1fcd in clone () from /lib/libc.so.6
#9 0x0000000000000000 in ?? ()
No files attached to this page.