Community
cancel
Showing results for 
Search instead for 
Did you mean: 
53 Views

Mac OS X idb 11.1 segfault

Hello,

I am using icpc/idb 11.1.080 on Mac OS X 10.6.2 (64-bit). I am trying to debug some C++ code but idb segfaults immediately upon issuing the run command:

astarte> idb ./test
Intel Debugger for applications running on Intel 64, Version 11.1, Build [1.2097.2.319]
------------------
object file name: ./test
Reading symbols from /Users/fpierfed/Documents/workspace/lsst/pex/policy/tickets/1101/test_segfaults/test...done.
(idb) run
Starting program: /Users/fpierfed/Documents/workspace/lsst/pex/policy/tickets/1101/test_segfaults/test
iidb(55358) malloc: *** error for object 0x5303006474730200: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug

Intel Debugger for applications running on Intel 64, Version 11.1 caught signal "Abort trap" (6).
This is an unexpected condition and may indicate the presence of a defect.
If you wish to report this, please include the stack trace that follows.

terminate called after throwing an instance of 'FatalError'
zsh: abort idb ./test


And this is the crash report:
Process: iidb [55358]
Path: /opt/intel/Compiler/11.1/080/bin/iidb
Identifier: iidb
Version: ??? (???)
Code Type: X86-64 (Native)
Parent Process: zsh [54384]

Date/Time: 2009-12-28 16:00:49.166 -0500
OS Version: Mac OS X 10.6.2 (10C540)
Report Version: 6

Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Crashed Thread: 0 Dispatch queue: com.apple.main-thread

Application Specific Information:
abort() called

Thread 0 Crashed: Dispatch queue: com.apple.main-thread
0 libSystem.B.dylib 0x00007fff8123cfe6 __kill + 10
1 libSystem.B.dylib 0x00007fff812dde32 abort + 83
2 libstdc++.6.dylib 0x00007fff801695d2 __tcf_0 + 0
3 libstdc++.6.dylib 0x00007fff80167ae1 __cxxabiv1::__terminate(void (*)()) + 11
4 libstdc++.6.dylib 0x00007fff80167b16 __cxxabiv1::__unexpected(void (*)()) + 0
5 libstdc++.6.dylib 0x00007fff80167bfc __gxx_exception_cleanup(_Unwind_Reason_Code, _Unwind_Exception*) + 0
6 iidb 0x00000001001c2a1a sigcatch(int, int, sigcontext*) + 332
7 libSystem.B.dylib 0x00007fff8124eeaa _sigtramp + 26
8 ??? 0x00007fff5fbfa830 0 + 140734799783984
9 libSystem.B.dylib 0x00007fff811f5155 free + 128
10 iidb 0x000000010001229c ControlDefUxMac::isThisMessageAnEventForIDB(int, bool, int, int, bool*, bool*, LightweightWorkerMac**, int*) + 284
11 iidb 0x000000010001280b ControlDefUxMac::waitPidViaPort(int, int*, int) + 185
12 iidb 0x0000000100012c45 ControlDefUxMac::waitpidCall(char const*, int*, int, int*, int) + 197
13 iidb 0x0000000100014194 ControlDefUxMac::waitForCloneToStop(int) + 276
14 iidb 0x0000000100014604 ControlDefUxMac::waitForProcessToStop() + 164
15 iidb 0x00000001000056ee ControlDef::waitForEvent(ENGINENotification*&, bool) + 74
16 iidb 0x00000001000058bc ControlDef::waitForUserEvent(ENGINENotification*&) + 42
17 iidb 0x00000001000385d0 ProcessDef::go(bool, bool&) + 196
18 iidb 0x0000000100021799 SessionBase::RunUntilStopped(bool) + 383
19 iidb 0x000000010017a89d CmdRun::do_it(CmdExecutionContext&, BaseForCmd::CmdResult&) + 787
20 iidb 0x00000001001436d6 BaseForCmd::execute(bool) + 8106
21 iidb 0x00000001001bed87 processCommandsWkr(int&, char*&) + 1811
22 iidb 0x00000001001bee49 ProcessCommands() + 51
23 iidb 0x00000001001bf022 mainCommand() + 14
24 iidb 0x00000001001c2776 idbMain(int, char const**, char const**) + 484
25 iidb 0x00000001000e331b main + 273
26 iidb 0x0000000100001204 _start + 234
27 iidb 0x0000000100001119 start + 33

Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x0000000000000000 rbx: 0x00007fff702cb298 rcx: 0x00007fff5fbfa328 rdx: 0x0000000000000000
rdi: 0x000000000000d83e rsi: 0x0000000000000006 rbp: 0x00007fff5fbfa340 rsp: 0x00007fff5fbfa328
r8: 0x0000000000000000 r9: 0x0000000103103c10 r10: 0x00007fff81239026 r11: 0xffffff80002df660
r12: 0x0000000100589859 r13: 0x00000001030b9560 r14: 0x00000001001c28ce r15: 0x5303006474730200
rip: 0x00007fff8123cfe6 rfl: 0x0000000000000206 cr2: 0x00007fff7000e940

Binary Images:
0x100000000 - 0x100694fc7 +iidb ??? (???) <18693CF8-6C34-491A-8818-1B5785641C10> /opt/intel/Compiler/11.1/080/bin/iidb
0x7fff5fc00000 - 0x7fff5fc3bdef dyld 132.1 (???) /usr/lib/dyld
0x7fff8011d000 - 0x7fff8019afef libstdc++.6.dylib ??? (???) <35ECA411-2C08-FD7D-11B1-1B7A04921A5C> /usr/lib/libstdc++.6.dylib
0x7fff811ee000 - 0x7fff813acff7 libSystem.B.dylib ??? (???) <526DD3E5-2A8B-4512-ED97-01B832369959> /usr/lib/libSystem.B.dylib
0x7fff84c05000 - 0x7fff84c09ff7 libmathCommon.A.dylib ??? (???) <95718673-FEEE-B6ED-B127-BCDBDB60D4E5> /usr/lib/system/libmathCommon.A.dylib
0x7fffffe00000 - 0x7fffffe01fff libSystem.B.dylib ??? (???) <526DD3E5-2A8B-4512-ED97-01B832369959> /usr/lib/libSystem.B.dylib


Is there a workaround?

Thank you!
Francesco
0 Kudos
1 Reply
Dale_S_Intel
Employee
53 Views



Is there a workaround?


Well, I don't know how to recreate the problem, so I can't be sure of where the problem is in idb, but you could try using gdb. Was there an idb-specific feature you were hoping to use? If not, gdb should work.

Dale

Reply