Bug 32456 - r600g makes sdlmame SIGSEGV, r600_set_vertex_buffers involvement indicated
Summary: r600g makes sdlmame SIGSEGV, r600_set_vertex_buffers involvement indicated
Status: RESOLVED DUPLICATE of bug 32455
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/Gallium/r600 (show other bugs)
Version: git
Hardware: x86-64 (AMD64) Linux (All)
: low normal
Assignee: Default DRI bug account
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-16 14:38 UTC by Öyvind Saether
Modified: 2010-12-17 15:03 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
avoid segfault (1.62 KB, patch)
2010-12-17 11:36 UTC, Jerome Glisse
Details | Splinter Review

Description Öyvind Saether 2010-12-16 14:38:53 UTC
1. run sdlmame.
2. it dies on SIGSEGV, Segmentation fault.

gdb sdlmame
(gdb) run -video opengl -rompath /public/net/godzilla/games/MAME/roms/ mslug2
Starting program: /usr/games/bin/sdlmame -video opengl -rompath /public/net/godzilla/games/MAME/roms/ mslug2
[Thread debugging using libthread_db enabled]
Warning: unknown option in INI: useallheads
Warning: unknown option in INI: useallheads
[New Thread 0x7ffff427e710 (LWP 29182)]
[New Thread 0x7ffff04e9710 (LWP 29183)]
WARNING: Couldn't find/open TrueType font Liberation Sans, using MAME default

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff2188339 in r600_set_vertex_buffers () from /usr/lib64/dri/r600_dri.so
(gdb) bt
#0  0x00007ffff2188339 in r600_set_vertex_buffers () from /usr/lib64/dri/r600_dri.so
#1  0x00007ffff223959c in st_draw_vbo () from /usr/lib64/dri/r600_dri.so
#2  0x00007ffff22362a3 in vbo_draw_arrays () from /usr/lib64/dri/r600_dri.so
#3  0x0000000000ff96f9 in drawogl_window_draw(_sdl_window_info*, unsigned int, int) ()
#4  0x0000000000ff1cc6 in draw_video_contents_wt(void*, int) ()
#5  0x0000000000ff2fc6 in sdlwindow_video_window_update(running_machine*, _sdl_window_info*) ()
#6  0x0000000000fd39ac in sdl_osd_interface::update(bool) ()
#7  0x00000000016206c4 in video_manager::frame_update(bool) ()
#8  0x00000000015ebd47 in display_loading_rom_message(_romload_private*, char const*) ()
#9  0x00000000015ecf9f in process_rom_entries(_romload_private*, char const*, rom_entry const*) ()
#10 0x00000000015edf17 in rom_init(running_machine*) ()
#11 0x0000000001597b02 in running_machine::start() ()
#12 0x000000000159803b in running_machine::run(bool) ()
#13 0x00000000015963d0 in mame_execute(osd_interface&, _core_options*) ()
#14 0x000000000154fbe5 in cli_execute(int, char**, osd_interface&, _options_entry const*) ()
#15 0x0000000000fd03bf in main ()
(gdb) quit
Comment 1 Jerome Glisse 2010-12-17 11:36:12 UTC
Created attachment 41220 [details] [review]
avoid segfault

Can you test if this patch helps
Comment 2 Öyvind Saether 2010-12-17 13:34:04 UTC
I applied patch 41220 and got the same SIGSEGV and backtrace. It did not help, but thank you for trying.

It's possible to run sdlmame games using r600g by turning vertex buffers off, add
gl_vbo 0
to
sdlmame/mame.ini
Comment 3 Jerome Glisse 2010-12-17 14:27:24 UTC
please do the following :
make clean
CFLAGS="-g3 -O0" ./autogen.sh --enable-debug --enable-gallium-r600
make -j3

And recapture the backtrace with this debug version. Use btfull and attach it here thanks
Comment 4 Chris 2010-12-17 14:56:15 UTC
I have this same issue, my bug report for it is here...

https://bugs.freedesktop.org/show_bug.cgi?id=32455

I have a full backtrace of the issue with a mesa debug compile
Comment 5 Alex Deucher 2010-12-17 15:03:22 UTC

*** This bug has been marked as a duplicate of bug 32455 ***


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.