View Issue Details

IDProjectCategoryView StatusLast Update
0027043Open CASCADEOCCT:DRAWpublic2019-01-09 17:52
ReportermsvAssigned Tobugmaster  
PrioritynormalSeverityminor 
Status closedResolutionfixed 
PlatformWindowsOSVC++ 2013 
Product Version7.0.0 
Target Version7.4.0Fixed in Version7.4.0 
Summary0027043: Draw is sometimes crashed unexpectedly during running of test command
DescriptionWhen I run the tests in manual mode (test command) sometimes Draw is crashed.
E.g., the script in steps to reproduce gets draw to crash on 9th iteration on my PC.
Steps To Reproducerepeat 10 {test boolean gdml_private E4}
TagsNo tags attached.
Test case numberNot needed

Relationships

related to 0027620 closedapn Open CASCADE Test perf bop boxholes crashes DRAW 
related to 0027013 closedbugmaster Open CASCADE test boolean gdml_private O9 gets Draw to crash 

Activities

msv

2015-12-28 16:50

developer   ~0049644

When running under debugger, the following debug assertion is raised:

Program: D:\git\occt1\build\win64\vc12\bind\DRAWEXE.exe
File: f:\dd\vctools\crt\crtw32\lowio\dup2.c
Line: 59

Expression: (fh1 >= 0 && (unsigned)fh1 < (unsigned)_nhandle)


The stack trace is shown:

     msvcr120d.dll!000007fedb5083ba() Unknown
> TKDraw.dll!`anonymous namespace'::capture_end(OSD_File * tmp_file, int std_fd, int save_fd, std::basic_ostream<char,std::char_traits<char> > & log, unsigned int doEcho) Line 90 C++
     TKDraw.dll!CommandCmd(void * theClientData, Tcl_Interp * interp, int argc, const char * * argv) Line 203 C++

The line in our code is (Draw_Interpretor.cxx):

89: dup2(save_fd, std_fd);

It seems assertion is raised during duplication of the standard error channel.

msv

2016-10-25 12:52

developer   ~0059072

Error disappears if we turn off logging, either by running "dlog off" command, or by adding "1" option to the end of "test" command.

abv

2018-06-12 22:10

manager   ~0076726

On my home computer similar problem is reproduces as follows:

1. Copy text "test perf bapline intersect" to buffer
2. Start DRAW
3. Paste the text
4. Press Enter
==> The test starts but crashes with message "error writing "stdout": bad file number"

Notably if the same text is input directy instead of copy / paste, it works OK

msv

2018-06-13 10:35

developer   ~0076731

This is not for my work PC. This test always work OK.

msv

2018-11-26 10:08

developer   ~0081252

This bug has been fixed with 0027620.
Please close it.

Issue History

Date Modified Username Field Change
2015-12-28 16:34 msv New Issue
2015-12-28 16:34 msv Assigned To => mkv
2015-12-28 16:50 msv Note Added: 0049644
2015-12-30 10:35 abv Assigned To mkv => abv
2015-12-30 10:35 abv Status new => assigned
2016-06-20 15:27 msv Relationship added related to 0027620
2016-06-20 15:28 msv Relationship added related to 0027013
2016-10-25 12:52 msv Note Added: 0059072
2016-10-25 12:52 msv Target Version 7.1.0 => 7.2.0
2017-07-20 12:00 msv Target Version 7.2.0 => 7.3.0
2018-05-12 21:36 abv Target Version 7.3.0 => 7.4.0
2018-06-12 22:10 abv Note Added: 0076726
2018-06-13 10:35 msv Note Added: 0076731
2018-11-26 10:08 msv Note Added: 0081252
2018-11-26 10:08 msv Assigned To abv => bugmaster
2018-11-26 10:08 msv Status assigned => feedback
2018-11-26 10:08 msv Resolution open => fixed
2018-11-26 12:31 bugmaster Status feedback => verified
2019-01-09 17:52 bugmaster Test case number => Not needed