MantisBT
Mantis Bug Tracker Workflow

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0031817Open CASCADE[OCCT] OCCT:DRAWpublic2020-10-02 06:442020-10-25 10:54
Reporterabv 
Assigned Toabv 
PrioritynormalSeverityminor 
StatusnewResolutionopen 
PlatformOSOS Version
Product Version[OCCT] 7.4.0 
Target Version[OCCT] 7.6.0*Fixed in Version 
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
Attached Files

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

-  Notes
(0095545)
git (administrator)
2020-10-02 06:52

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
(0095757)
git (administrator)
2020-10-06 14:13

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
(0095758)
git (administrator)
2020-10-06 14:14

Branch CR31817_1 has been updated forcibly by kgv.

SHA-1: 539e502405f03b9e705698d29bad3ae882ba059c
(0096250)
abv (manager)
2020-10-25 08:23

Separate issue 0031877 is created for adding protections against Null context in DRAW commands
(0096253)
git (administrator)
2020-10-25 10:53

Branch CR31817 has been deleted by abv.

SHA-1: 8228689f089c48e5b34b794dd80e3989397cd8d0
(0096254)
git (administrator)
2020-10-25 10:53

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*


Copyright © 2000 - 2020 MantisBT Team
Powered by Mantis Bugtracker