danyalzia / DIrrlicht

D Bindings of Irrlicht Engine
Other
7 stars 1 forks source link

Segmentation fault when running examples directly instead of from GDB #3

Open danyalzia opened 10 years ago

danyalzia commented 10 years ago

Executable of examples mostly crashes and gives segmentation fault after the device has been created. My wild guess is that GC is collecting the opaque pointer that is being passed to other C-functions. The memory needs to be deterministic through manual memory management using RAII. It could be the compiler bug as well because they run fine in GDB. Needs thorough analysis.

danyalzia commented 10 years ago

I'm reopening it because the test is failing and only succeeds when running from gdb.