View Issue Details

IDProjectCategoryView StatusLast Update
0031817Open CASCADEOCCT:DRAWpublic2022-10-24 10:40
Reporterabv Assigned Toabv  
PrioritynormalSeverityminor 
Status newResolutionopen 
Product Version7.4.0 
Target Version7.8.0 
Summary0031817: DRAW - Error is reported by Undefined sanitizer on vdisplaymode command
DescriptionWhen running test demo samples bottle on Ubuntu with UBSan sanitizer enabled, I obtain the following message in the log:

Showing result...
vdisplay bottle
vfit
vsetdispmode 1
/home/abv/occt/src/AIS/AIS_Selection.hxx:59:53: runtime error: member call on address 0x000002a581b0 which does not point to an object of type 'NCollection_List<opencascade::handle<SelectMgr_EntityOwner> >'
0x000002a581b0: note: object is of type 'NCollection_List<opencascade::handle<SelectMgr_EntityOwner> >'
 00 00 00 00 48 0c 1f b5 55 7f 00 00 a0 08 39 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
              ^~~~~~~~~~~~~~~~~~~~~~~
              vptr for 'NCollection_List<opencascade::handle<SelectMgr_EntityOwner> >'
    #0 0x7f55ac5907a4 in AIS_Selection::Extent() const (/home/abv/tmp/occt-clang6/lin64/clang/libi/libTKViewerTest.so+0x3a97a4)
    0000001 0x7f55ac5845eb in AIS_InteractiveContext::NbSelected() (/home/abv/tmp/occt-clang6/lin64/clang/libi/libTKViewerTest.so+0x39d5eb)
    0000002 0x7f55ac5530bf (/home/abv/tmp/occt-clang6/lin64/clang/libi/libTKViewerTest.so+0x36c0bf)
    #3 0x7f55cab34233 in Draw_Interpretor::CallBackDataFunc::Invoke(Draw_Interpretor&, int, char const**) (/home/abv/tmp/occt-clang6/lin64/clang/libi/libTKDraw.so.7+0x1fa233)
TagsNo tags attached.
Test case number

Relationships

related to 0031877 closedabv DRAW - some Visualization commands are not protected against uninitialized viewer 

Activities

git

2020-10-02 06:52

administrator   ~0095545

Branch CR31817 has been created by abv.

SHA-1: 8228689f089c48e5b34b794dd80e3989397cd8d0


Detailed log of new commits:

Author: abv
Date: Fri Oct 2 06:54:01 2020 +0300

    0031817: DRAW - Error is reported by Undefined sanitizer on vdisplaymode command
    
    Added protections in DRAW commands against accessing Null context

git

2020-10-06 14:13

administrator   ~0095757

Branch CR31817_1 has been created by kgv.

SHA-1: d8c586fbb0183418f1fb926719b88d30fe4125aa


Detailed log of new commits:

Author: abv
Date: Fri Oct 2 06:54:01 2020 +0300

    0031817: DRAW - Error is reported by Undefined sanitizer on vdisplaymode command
    
    Added protections in DRAW commands against accessing Null context

git

2020-10-06 14:14

administrator   ~0095758

Branch CR31817_1 has been updated forcibly by kgv.

SHA-1: 539e502405f03b9e705698d29bad3ae882ba059c

abv

2020-10-25 08:23

manager   ~0096250

Separate issue 0031877 is created for adding protections against Null context in DRAW commands

git

2020-10-25 10:53

administrator   ~0096253

Branch CR31817 has been deleted by abv.

SHA-1: 8228689f089c48e5b34b794dd80e3989397cd8d0

git

2020-10-25 10:53

administrator   ~0096254

Branch CR31817_1 has been deleted by abv.

SHA-1: 539e502405f03b9e705698d29bad3ae882ba059c

Issue History

Date Modified Username Field Change
2020-10-02 06:44 abv New Issue
2020-10-02 06:44 abv Assigned To => abv
2020-10-02 06:50 abv Summary DRAW - Undefined sanitizer error on vdisplaymode command => DRAW - Error is reported by Undefined sanitizer on vdisplaymode command
2020-10-02 06:52 git Note Added: 0095545
2020-10-06 14:13 git Note Added: 0095757
2020-10-06 14:14 git Note Added: 0095758
2020-10-06 14:15 kgv Product Version => 7.4.0
2020-10-25 08:23 abv Relationship added related to 0031877
2020-10-25 08:23 abv Note Added: 0096250
2020-10-25 10:53 git Note Added: 0096253
2020-10-25 10:53 git Note Added: 0096254
2020-10-25 10:54 abv Target Version 7.5.0 => 7.6.0
2021-09-20 10:14 kgv Target Version 7.6.0 => 7.7.0
2022-10-24 10:40 szy Target Version 7.7.0 => 7.8.0