Comment 4 for bug 62145

Revision history for this message
Francois-Denis Gonthier (fdgonthier) wrote :

I can confirm this too. On AMD64 non-SMP. The problems lies in libsdl-erlang and not in Wings3D.

If you run any samples in libsdl-erlang, you get a segfault:

neumann@Silvester:/usr/share/doc/libsdl-erlang/examples$ erl
Erlang (BEAM) emulator version 5.5.1 [source] [64-bit] [async-threads:0] [kernel-poll:false]

Eshell V5.5.1 (abort with ^G)
1> l(testglutless).
{error,nofile}
2> l(testglutess).
{module,testglutess}
3> testglutess:go().
Command:68:SDL_GL_SetAttributeFunc: ok
Command:36:SDL_SetVideoModeFunc: ok
Command:105:SDL_EventStateFunc: ok
Command:105:SDL_EventStateFunc: ok
Command:105:SDL_EventStateFunc: ok
Command:470:glViewport: ok
Command:354:glMatrixMode: ok
Command:337:glLoadIdentity: ok
Command:364:glOrtho: ok
Command:354:glMatrixMode: ok
Command:337:glLoadIdentity: ok
Command:256:glEnable: ok
Command:244:glDepthFunc: ok
Command:212:glClearColor: ok
Command:210:glClear: ok
Command:219:glColor3fv: ok
Command:624:gluNewTess: ok
Command:643:gluTessCallback: Segmentation fault

Partial backtrace in the driver:

#0 0x00002aaaab2121ac in eglu_tessCallback ()
   from /usr/lib/erlang/lib/esdl-0.94.1025/priv/sdl_driver.so
#1 0x00002aaaab209a18 in sdl_get_temp_buff ()
   from /usr/lib/erlang/lib/esdl-0.94.1025/priv/sdl_driver.so
#2 0x000000000044f3a0 in erts_port_control ()
....