MantisBT - Open CASCADE
View Issue Details
0030762Open CASCADE[OCCT] OCCT:Foundation Classespublic2019-06-03 08:062020-09-25 20:35
kgv 
abv 
normalfeature 
resolvedopen 
 
[OCCT] 7.6.0* 
0030762: Foundation Classes - include backtrace within OSD_SIGSEGV on Linux
It would be helpful if exceptions like OSD_SIGSEGV will include backtrace, so that it will be possible determining context without debugger.

** Exception ** 0x55b5bce52950 : OSD_SIGSEGV: SIGSEGV 'segmentation violation' detected. Address 38

/lib/x86_64-linux-gnu/libc.so.6(+0x3ef20) [0x7fd984d6ff20]
/occt/adm/qmake/Draw/DRAWEXE/../../../../lin/gcc/libd/libTKOpenGl.so.7(_ZNK14OpenGl_Texture5SizeXEv+0xc) 
[0x7fd97458dfa4]
/occt/adm/qmake/Draw/DRAWEXE/../../../../lin/gcc/libd/libTKOpenGl.so.7(_ZN11OpenGl_Font11renderGlyphERKN11opencascade6handleI14OpenGl_ContextEEDi+0xdc) 
[0x7fd97460be62]
/occt/adm/qmake/Draw/DRAWEXE/../../../../lin/gcc/libd/libTKOpenGl.so.7(_ZN11OpenGl_Font11RenderGlyphERKN11opencascade6handleI14OpenGl_ContextEEDiRNS_4TileE+0x68) 
[0x7fd97460c234]
/occt/adm/qmake/Draw/DRAWEXE/../../../../lin/gcc/libd/libTKOpenGl.so.7(_ZN18OpenGl_TextBuilder12createGlyphsERK18Font_TextFormatterRKN11opencascade6handleI14OpenGl_ContextEER11OpenGl_FontR18NCollection_VectorIjERSB_I18NCollection_HandleISB_I16NCollection_Vec2IfEEEESK_+0x2ef) 
[0x7fd97466b70d]
/occt/adm/qmake/Draw/DRAWEXE/../../../../lin/gcc/libd/libTKOpenGl.so.7(_ZN18OpenGl_TextBuilder7PerformERK18Font_TextFormatterRKN11opencascade6handleI14OpenGl_ContextEER11OpenGl_FontR18NCollection_VectorIjERSB_INS4_I19OpenGl_VertexBufferEEESH_+0xfd) 
[0x7fd97466bd6b]
/occt/adm/qmake/Draw/DRAWEXE/../../../../lin/gcc/libd/libTKOpenGl.so.7(_ZNK11OpenGl_Text6renderERKN11opencascade6handleI14OpenGl_ContextEERK14OpenGl_AspectsRK16NCollection_Vec4IfESC_j+0x2fc) 
[0x7fd9745a7aac]
/occt/adm/qmake/Draw/DRAWEXE/../../../../lin/gcc/libd/libTKOpenGl.so.7(_ZNK11OpenGl_Text6RenderERKN11opencascade6handleI16OpenGl_WorkspaceEE+0x241) 
[0x7fd9745a5bdf]
/occt/adm/qmake/Draw/DRAWEXE/../../../../lin/gcc/libd/libTKOpenGl.so.7(+0x118d03) [0x7fd97459bd03]
No tags attached.
Issue History
2019-06-03 08:06kgvNew Issue
2019-06-03 08:06kgvAssigned To => abv
2019-06-03 08:06gitNote Added: 0084766
2019-06-03 08:11kgvDescription Updatedbug_revision_view_page.php?rev_id=21293#r21293
2019-06-03 08:12kgvDescription Updatedbug_revision_view_page.php?rev_id=21294#r21294
2019-09-04 15:43abvTarget Version7.4.0 => 7.5.0
2020-09-11 16:13utverdovTarget Version7.5.0 => 7.6.0*
2020-09-15 11:27kgvSummaryFoundation Classes - optionally include backtrace within dangerous exceptions like OSD_SIGSEGV => Foundation Classes - include backtrace within OSD_SIGSEGV on Linux
2020-09-15 11:54gitNote Added: 0094817
2020-09-15 12:05gitNote Added: 0094820
2020-09-15 15:12kgvNote Added: 0094840
2020-09-15 15:12kgvStatusnew => resolved
2020-09-15 15:12kgvTarget Version7.6.0* => 7.5.0
2020-09-16 00:02gitNote Added: 0094892
2020-09-25 20:35abvTarget Version7.5.0 => 7.6.0*

Notes
(0084766)
git   
2019-06-03 08:06   
Branch CR30762 has been created by kgv.

SHA-1: 5c24f60d5280069ab2c8f212a11c27648e8ab050


Detailed log of new commits:

Author: kgv
Date: Mon Jun 3 08:06:24 2019 +0300

    0030762: Foundation Classes - optionally include backtrace within dangerous exceptions like OSD_SIGSEGV

Author: kgv
Date: Thu May 30 10:02:25 2019 +0300

    0028668: Point Cloud Rendering - standard selection API returns invalid values
    
    Added an argument to OpenGl_GraphicDriver::GetSharedContext() for returning only currently bound OpenGL context.
    SelectMgr_SelectingVolumeManager::GetMousePosition() - added getter returning mouse coordinates.
(0094817)
git   
2020-09-15 11:54   
Branch CR30762_1 has been created by kgv.

SHA-1: 2c4e34ba95985071beb112884b929c29afc61982


Detailed log of new commits:

Author: kgv
Date: Mon Jun 3 08:06:24 2019 +0300

    0030762: Foundation Classes - include backtrace within OSD_SIGSEGV on Linux
    
    Added function Standard_Failure::BacktraceCat() appending backtrace to the string (implemented for Linux).
    SegvHandler within OSD_signal now appends backtrace to the message.
(0094820)
git   
2020-09-15 12:05   
Branch CR30762_1 has been updated forcibly by kgv.

SHA-1: 538c3292da35fcf5d747c589da34536c229f667f
(0094840)
kgv   
2020-09-15 15:12   
Patch is ready for review
- OCCT branch: CR30762_1.

http://jenkins-test-12.nnov.opencascade.com:8080/view/CR30762_1-master-KGV [^]
(0094892)
git   
2020-09-16 00:02   
Branch CR30762_2 has been created by kgv.

SHA-1: 76f46c9b23dadcc154177a7637750e35c10c1c4e


Detailed log of new commits:

Author: kgv
Date: Mon Jun 3 08:06:24 2019 +0300

    0030762: Foundation Classes - include backtrace within OSD_SIGSEGV on Linux
    
    Added function Standard_Failure::BacktraceCat() appending backtrace to the string (implemented for Linux).
    SegvHandler within OSD_signal now appends backtrace to the message.