New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
glretrace crash with SDL 2.0.1 application #211
Comments
I have bisected the crash to this commit: 4b466a9, i.e. 4b466a9^ works, and 4b466a9 segfaults. I put the code in Parser::close inside an #if 0 as a workaround, do some of the values there share pointers to cause the double frees? |
I followed your steps, but I couldn't repro.
This doesn't make much sense: change 4b466a9 shouldn't affect the behavior of glretrace at all.
There shouldn't be double frees. I suspect the problem is another sort of memory corruption. |
@edwintorok, could you please make the trace file that induces the crash available (in addition to the C source code)? |
I've uploaded the trace here: http://etorok.net/minc.trace. It crashes every time with Mesa 10.0.1. |
Testcase: https://raw.github.com/dbuenzli/tsdl/master/test/minc.c
$ gcc -o minc minc.c
sdl2-config --cflags --libs
$ apitrace trace ./minc
... close window
$ glretrace ./minc.trace
Rendered 0 frames in 0.139517 secs, average of 0 fps
apitrace: warning: caught signal 11
47: error: caught an unhandled exception
apitrace: info: taking default action for signal 11
Segmentation fault
Backtrace under gdb:
Program received signal SIGSEGV, Segmentation fault.
0x0000000000618b70 in trace::Parser::close (this=0x8ee860 retrace::parser)
at /home/edwin/me/language/C++/apitrace/common/trace_parser.cpp:110
110 delete [] sig->name;
(gdb) bt
#0 0x0000000000618b70 in trace::Parser::close (this=0x8ee860 retrace::parser)
#1 0x000000000041fd3a in main (argc=2, argv=0x7fffffffe108)
Interestingly no crashes under valgrind.
$ glxinfo|grep OpenGL
OpenGL vendor string: X.Org
OpenGL renderer string: Gallium 0.4 on AMD RV730
OpenGL core profile version string: 3.1 (Core Profile) Mesa 10.0.1
OpenGL core profile shading language version string: 1.40
OpenGL core profile context flags: (none)
OpenGL core profile extensions:
OpenGL version string: 3.0 Mesa 10.0.1
OpenGL shading language version string: 1.30
OpenGL context flags: (none)
$ uname -a
Linux debian 3.12.8 #39 SMP PREEMPT Thu Jan 16 10:06:30 EET 2014 x86_64 GNU/Linux
The text was updated successfully, but these errors were encountered: