mechanicmarx / gamekit

Automatically exported from code.google.com/p/gamekit
0 stars 0 forks source link

Segfault on XCloseDisplay for Linux input manager #207

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Compile a Debug version for gamekit
2. Run sample LuaRuntime or VehicleDemo
3. Exit the demo

What is the expected output? What do you see instead?
No segmentation fault on exit.

What version of the product are you using? On what operating system?
r1006 on Ubuntu 10.10 x64
Linux 2.6.36 
NVIDIA GeForce 9600M GS (Driver from NVIDIA site v285.05.09)

Please provide any additional information below.
I see a segfault in the release version as well, but no info on what's causing 
it.

Sometimes it crashes in LinuxKeyboard.cpp, again at the XCloseDisplay call. I 
tried commenting the call, thinking it was double-freeing the display but at 
that point I got a crash in GLHardwareVertexBuffer (backtrace1).

Original issue reported on code.google.com by vek...@gmail.com on 7 Jan 2012 at 4:12

Attachments:

GoogleCodeExporter commented 8 years ago
By chance while looking at issue #142 I found a small solution that actually 
fixes this issue I reported myself as well as a bunch others crash-on-exit 
issues in the list.

I'm attaching a small patch to ensure even less experienced user can apply the 
fix.

Original comment by vek...@gmail.com on 7 Jan 2012 at 10:30

Attachments:

GoogleCodeExporter commented 8 years ago
both working fine with new patch

Original comment by lukasz.wychrystenko@gmail.com on 8 Jan 2012 at 5:53

GoogleCodeExporter commented 8 years ago
Fixed in r1013. Thanks a lot.

Original comment by xavier.thomas.1980@gmail.com on 22 Jan 2012 at 4:58