Intel® Debugger (IDB) for Linux - Error: Assertion failed involving getThreadId()

 

Reference Number : DPD200110688


Version : 11.0


Operating System :  Linux*/IA-32, Intel® 64, IA-64


Problem Description

The Intel® Debugger (IDB) Version 11.0 provided in the initial release of the Intel® Fortran and C++ Compiler Professional Editions 11.0 for Linux may experience an Assertion failed error while trying to load an executable program.

The issue only exists with the IDB Version 11.0 included the initial Intel Compiler Professional 11.0 Release packages: l_cprof_p_11.0.074 (Fortran) and l_cproc_p_11.0.074 (C++)

The root-cause of this issue involves IDB requiring the thread id to be non-zero. On Fedora Core 9 and other newer Linux distributions, the thread_db structure is allowed to use 0 as the thread id. IDB was asserting when encountering the thread id of 0.

The issue can occur with the IDB Version 11.0 debugger for IA-32 and Intel® 64. The assertion and associated trace received will appear similar to the example below with IDB for Intel® 64.

$ iidb a.out
Intel® Debugger for applications running on Intel® 64, Version 11.0, Build [1.1510.2.70]
------------------
object file name: a.out
Reading symbols from /net/myhome/a.out...done.
Assertion failed: "(*i)->getThreadId() != ThreadId()" src/appl/procs/addrspace.C:2819
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.
/opt/intel/Compiler/11.0/074/bin/intel64/iidb(_ZN15IDBAssertFailed3runEPKcS1_j+0xe) [0x5d3ca4]
/opt/intel/Compiler/11.0/074/bin/intel64/iidb(_ZN14DTLU_namespace12assertFailedEPKcS1_j+0x24) [0xb8210c]
/opt/intel/Compiler/11.0/074/bin/intel64/iidb(_ZN12AddrSpaceDef9getThreadERK8ThreadId+0x7b) [0x675ec3]
/opt/intel/Compiler/11.0/074/bin/intel64/iidb(_ZN10ProcessDef9getThreadERK8ThreadId+0x17) [0x68d56b]
/opt/intel/Compiler/11.0/074/bin/intel64/iidb(_ZN10ControlDef20forceThreadExistenceEP17LightweightWorkerR8ThreadIdRP6Thread+0x24d) [0xab1843]
/opt/intel/Compiler/11.0/074/bin/intel64/iidb(_ZN10ControlDef36getPrstatusLWPForcingThreadExistenceEv+0x4c) [0xaa5d1a]
/opt/intel/Compiler/11.0/074/bin/intel64/iidb(_ZN10ControlDef13getStoppedLWPEv+0x54) [0xab19a4]
/opt/intel/Compiler/11.0/074/bin/intel64/iidb(_ZN12AddrSpaceDef22getLatestStoppedThreadEv+0x64) [0x696caa]
/opt/intel/Compiler/11.0/074/bin/intel64/iidb(_ZN12AddrSpaceDef23setThreadDebugInterfaceE15EGIThreadFlavorb+0x104) [0x673be4]
/opt/intel/Compiler/11.0/074/bin/intel64/iidb(_ZN12AddrSpaceDef10noteLoadedEPK6FileIdP7Program+0x1f8) [0x6731c2]
/opt/intel/Compiler/11.0/074/bin/intel64/iidb(_ZN10ProcessDef10noteExecedEPKc+0x66) [0x68acce]
/opt/intel/Compiler/11.0/074/bin/intel64/iidb(_ZN12ControlDefUx10noteExecedEv+0x27) [0xa9e479]
/opt/intel/Compiler/11.0/074/bin/intel64/iidb(_ZN18ControlDefUxPtrace21startProcess_postExecEPK6FileId+0x1af) [0xaadd0d]
/opt/intel/Compiler/11.0/074/bin/intel64/iidb(_ZN12ControlDefUx12startProcessEPKcRK7ArgListPK11EnvironmentS1_S1_S1_Ri+0x2c1) [0xa9bb9b]
/opt/intel/Compiler/11.0/074/bin/intel64/iidb(_ZN14ProcessFactory22createLocalLiveProcessEP3JobP7ArgListPcS4_S4_22IsOrIsNotADummyProcess+0x15e) [0x683b06]
/opt/intel/Compiler/11.0/074/bin/intel64/iidb(_ZN3Job22createLocalLiveProcessEP7ArgListPcS2_S2_22IsOrIsNotADummyProcess+0x2b) [0x6839a3]
/opt/intel/Compiler/11.0/074/bin/intel64/iidb(_ZN11SessionBase17startLocalProcessEP3JobP7ArgList22IsOrIsNotADummyProcess+0x9b) [0x660675]
/opt/intel/Compiler/11.0/074/bin/intel64/iidb(_Z17StartDummyProcessP3Job+0x5c) [0x7c6510]
/opt/intel/Compiler/11.0/074/bin/intel64/iidb(_ZN7CmdLoad5do_itER19CmdExecutionContextRN10BaseForCmd9CmdResultE+0x1fd) [0x7c4c5b]
/opt/intel/Compiler/11.0/074/bin/intel64/iidb(_ZN10BaseForCmd7executeEb+0xcce) [0x818ed0]
/opt/intel/Compiler/11.0/074/bin/intel64/iidb [0x5cfcd1]
/opt/intel/Compiler/11.0/074/bin/intel64/iidb(_Z15ProcessCommandsv+0x47) [0x5cf211]
/opt/intel/Compiler/11.0/074/bin/intel64/iidb(_Z7idbMainiPPKcS1_+0x1b0) [0x5cec98]
/opt/intel/Compiler/11.0/074/bin/intel64/iidb(main+0x3c) [0x5cda40]
/lib64/libc.so.6(__libc_start_main+0xe6) [0x373981e546]
/opt/intel/Compiler/11.0/074/bin/intel64/iidb(_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c+0x72) [0x5cd96a]
Could not start process for
No image loaded ... Recovering ...

 


Resolution Status

There is no work around available. This issue is resolved in the IDB Version 11.0 update included in the following Intel Compiler Professional 11.0 update packages: l_cprof_p_11.0.081 (Fortran) and l_cproc_p_11.0.081 (C++). The fix is also available in all newer 11.0 update packages.

 

[DISCLAIMER: The information on this web site is intended for hardware system manufacturers and software developers. Intel does not warrant the accuracy, completeness or utility of any information on this site. Intel may make changes to the information or the site at any time without notice. Intel makes no commitment to update the information at this site. ALL INFORMATION PROVIDED ON THIS WEBSITE IS PROVIDED "as is" without any express, implied, or statutory warranty of any kind including but not limited to warranties of merchantability, non-infringement of intellectual property, or fitness for any particular purpose. Independent companies manufacture the third-party products that are mentioned on this site. Intel is not responsible for the quality or performance of third-party products and makes no representation or warranty regarding such products. The third-party supplier remains solely responsible for the design, manufacture, sale and functionality of its products. Intel and the Intel logo are trademarks or registered trademarks of Intel Corporation or its subsidiaries in the United States and other countries. *Other names and brands may be claimed as the property of others.]

 


Per informazioni più dettagliate sulle ottimizzazioni basate su compilatore, vedere il nostro Avviso sull'ottimizzazione.