Archived issue #0023241

DRAWEXE crash on startup in Mac OS X

Open CASCADEOCCT:DRAWclosed6 public notes

Search issues

Description

Draw Harness fail to start on Mac OS X platform when linked against system Tcl/Tk libraries:

*** Abort *** an exception was raised, but no catch was found.
... The exception is:SIGSEGV 'segmentation violation' detected. Address [revision removed]

Draw_Window.cxx, 1071:
> Draw_WindowDisplay = Tk_Display(mainWindow);
But system library doesn't uses XLib and returned pointer is somewhat different (but not NULL).

Public activity

6 archived notes

Participants are labeled by their role within this record.

01Commenter 1
The value returned by Tk_Display was a pointer to Display structure defined in system Tcl/Tk libraries. This structure differs from structure defined in X11 library. Replaced Tk_Display with XOpenDisplay.

Also changed the sequence of linkage (it was the reason of problems with events handling), fixed Code Blocks projects files generation and added minor fixes to the scripts.

Please, review git occt branch CR23241 and git occt-wok branch CR23241

02Author
Draw_Window.cxx
>Draw_WindowDisplay = XOpenDisplay(NULL);//Tk_Display(mainWindow);
Please add problem description into the sources (why we don't use Tk_Display) instead of just commenting old code.
03Commenter 3
Added description. Please review.
04Author
Both branches were reviewed and remarks applied.
05Commenter 5
Dear Commenter 1,
Branch CR23241 (and products from GIT master) was compiled on Linux and Windows platforms and tested.

Regressions:
Not detected

Improvements:
Not detected

Testing cases:
Not needed
06Commenter 1
Fix has been checked on MacOS platform.
DRAWEXE starts successfully.