Hello everyone, I think I found a bug with OSWindow when using the X11 server : To reproduce it you just have to open an empty OSWindow with "OSWindow new." then close it and close your image. /home/matthieu/Documents/Pharo5/pharo-vm/pharo[0x80a3352] The XInitThreads function initializes Xlib support for concurrent threads. This function must be the first Xlib function a multi-threaded program calls, and it must complete before any other Xlib call is made. This function returns a nonzero status if initialization was successful; otherwise, it returns zero. On systems that do not support threads, this function always returns zero. I've searched a bit in the Pharo VM code and I have not found any call to XInitThreads() and it seems normal because it only opens one window in a single thread. Now the problem is that SDL makes a call to XinitThreads() in the file "SDL_x11video.c" in the function : "X11_CreateDevice(int devindex)" because SDL needs it. This means basically that the XinitThreads() function is called from the same process than the VM one after the first Xlib calls have been made. So to sum up, the VM initializes the X server in single thread mode. Then SDL changes it to multi thread mode so the X server probably creates a mutex to handle everything. Now when we try to close the VM the main window that was opened in single thread mode makes the mutex crash and it results in a segfault. If I am right it means that adding a call to XInitThreads() in the initialization of the X11 server in the VM code could maybe solve this problem. What do you think about it ? Cheers, Matthieu |
This is already known and a fix was provided by ronie. XLib missing call I asked about this already and when this will be included. But no response so far. 2015-05-29 12:08 GMT+02:00 Matthieu Lacaton <[hidden email]>:
|
oops. I forgot about that issue. Added to my TODO… so now time of inclusion is “soon (™)” :)
Esteban
|
oops too. I didn't see that bug on fogbugz :( My bad, sorry ! 2015-05-29 13:22 GMT+02:00 Esteban Lorenzano <[hidden email]>:
|
In reply to this post by EstebanLM
2015-05-29 13:22 GMT+02:00 Esteban Lorenzano <[hidden email]>:
:) Thanks
|
Free forum by Nabble | Edit this page |