Date: Wed, 9 Oct 2013 01:30:02 GMT From: alex@ahhyes.net To: freebsd-amd64@FreeBSD.org Subject: Re: amd64/182843: application crashes when compiled with clang 3.3 Message-ID: <201310090130.r991U2EK064036@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR amd64/182843; it has been noted by GNATS. From: alex@ahhyes.net To: <bug-followup@FreeBSD.org> Cc: Subject: Re: amd64/182843: application crashes when compiled with clang 3.3 Date: Wed, 09 Oct 2013 12:24:26 +1100 Have run the program in gdb with debugging symbols: --------------- Program received signal SIGILL, Illegal instruction. [Switching to Thread 804407400 (LWP 100136/jabberd14)] 0x0000000804a3ef6d in mod_privacy_end_session (m=0x8047b0e68, arg=0x0) at mod_privacy.cc:1522 1522 mod_privacy_free_current_list_definitions(m->s); ---------- bt -------------- (gdb) bt #0 0x0000000804a3ef6d in mod_privacy_end_session (m=0x8047b0e68, arg=0x0) at mod_privacy.cc:1522 #1 0x0000000804a29ae3 in js_mapi_call2 (si=0x8044dd480, e=2, packet=0x0, user=0x8047f2140, s=0x8045c3800, serialization_node=0x0) at modules.cc:226 #2 0x0000000804a2995d in js_mapi_call (si=0x0, e=2, packet=0x0, user=0x8047f2140, s=0x8045c3800) at modules.cc:177 #3 0x0000000804a2b28c in _js_session_end (arg=0x8045c3800) at sessions.cc:625 #4 0x0000000800874dc5 in mtq_main (arg=0x80451b9a0) at mtq.cc:208 #5 0x0000000802a502fb in pth_spawn_trampoline () from /usr/local/lib/pth/libpth.so.20 #6 0x0000000803d91e49 in makecontext () from /lib/libc.so.7 ----------- bt full -------------- (gdb) bt full #0 0x0000000804a3ef6d in mod_privacy_end_session (m=0x8047b0e68, arg=0x0) at mod_privacy.cc:1522 No locals. #1 0x0000000804a29ae3 in js_mapi_call2 (si=0x8044dd480, e=2, packet=0x0, user=0x8047f2140, s=0x8045c3800, serialization_node=0x0) at modules.cc:226 l = 0x8045c3cb8 m = {si = 0x8044dd480, packet = 0x0, e = 2, user = 0x8047f2140, s = 0x8045c3800, serialization_node = 0x0, additional_result = 0x0} #2 0x0000000804a2995d in js_mapi_call (si=0x0, e=2, packet=0x0, user=0x8047f2140, s=0x8045c3800) at modules.cc:177 No locals. #3 0x0000000804a2b28c in _js_session_end (arg=0x8045c3800) at sessions.cc:625 s = 0x8045c3800 #4 0x0000000800874dc5 in mtq_main (arg=0x80451b9a0) at mtq.cc:208 t = 0x80451b9a0 mpevt = 0x80454f830 c = 0x8045c4570 #5 0x0000000802a502fb in pth_spawn_trampoline () from /usr/local/lib/pth/libpth.so.20 No symbol table info available. #6 0x0000000803d91e49 in makecontext () from /lib/libc.so.7 No symbol table info available. #7 0x0000000000000000 in ?? () No symbol table info available. ------------- info registers --------------- (gdb) info registers rax 0x0 0 rbx 0x0 0 rcx 0x8047f34c0 34435183808 rdx 0x0 0 rsi 0x0 0 rdi 0x804a4f33d 34437657405 rbp 0x8047b0e40 0x8047b0e40 rsp 0x8047b0e20 0x8047b0e20 r8 0x8045c3800 34432890880 r9 0x0 0 r10 0x2601 9729 r11 0x80472ac48 34434362440 r12 0x8047a1000 34434846720 r13 0x804407c00 34431073280 r14 0x80441d9a0 34431162784 r15 0x8047b1000 34434912256 rip 0x804a3ef6d 0x804a3ef6d <mod_privacy_end_session(mapi_struct*, void*)+29> eflags 0x10202 66050 cs 0x43 67 ss 0x3b 59 ds 0x0 0 es 0x0 0 fs 0x0 0 gs 0x0 0 ----------- disassembly -------------- (gdb) disass mod_privacy_end_session Dump of assembler code for function _ZL23mod_privacy_end_sessionP11mapi_structPv: 0x0000000804a3ef50 <_ZL23mod_privacy_end_sessionP11mapi_structPv+0>: push %rbp 0x0000000804a3ef51 <_ZL23mod_privacy_end_sessionP11mapi_structPv+1>: mov %rsp,%rbp 0x0000000804a3ef54 <_ZL23mod_privacy_end_sessionP11mapi_structPv+4>: sub $0x20,%rsp 0x0000000804a3ef58 <_ZL23mod_privacy_end_sessionP11mapi_structPv+8>: mov %rdi,-0x10(%rbp) 0x0000000804a3ef5c <_ZL23mod_privacy_end_sessionP11mapi_structPv+12>: mov %rsi,-0x18(%rbp) 0x0000000804a3ef60 <_ZL23mod_privacy_end_sessionP11mapi_structPv+16>: mov -0x10(%rbp),%rsi 0x0000000804a3ef64 <_ZL23mod_privacy_end_sessionP11mapi_structPv+20>: mov 0x20(%rsi),%rdi 0x0000000804a3ef68 <_ZL23mod_privacy_end_sessionP11mapi_structPv+24>: callq 0x804a3dc20 <_ZL41mod_privacy_free_current_list_definitionsP14session_struct> 0x0000000804a3ef6d <_ZL23mod_privacy_end_sessionP11mapi_structPv+29>: ud2a End of assembler dump. (gdb) Hope this helps someone!
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201310090130.r991U2EK064036>