This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#7245 - Simulator crashes with a segfault in action.c
Attached to Project:
Rockbox
Opened by Steve Bavin (pondlife) - Friday, 01 June 2007, 12:58 GMT+2
Last edited by Steve Bavin (pondlife) - Wednesday, 01 August 2007, 11:12 GMT+2
Opened by Steve Bavin (pondlife) - Friday, 01 June 2007, 12:58 GMT+2
Last edited by Steve Bavin (pondlife) - Wednesday, 01 August 2007, 11:12 GMT+2
|
DetailsRecipe, for the H300 sim.
1) Clear settings. Restart sim. 2) Play a track from the filw browser. 3) Press SELECT to go from WPS to browser. 4) Prsss STOP to stop music playback CRASH! Program received signal SIGSEGV, Segmentation fault. [Switching to thread 3996.0x4d0] 0x00401334 in get_action_worker (context=???, timeout=???, get_context_map=???) at action.c:110 110 button = button_get_w_tmo(timeout); There's not much backtrace to be seen: (gdb) bt #0 0x00401334 in get_action_worker (context=???, timeout=???, get_context_map=???) at action.c:110 |
This task depends upon
My h300 sim was built with gcc 4.1.2 for AMD64 and run in ubuntu.
I played an ogg vorbis file to test, did all the steps but no crash.
- bug is reproducable on x86 sims, but not on amd64 sims (!)
- seems to be independent of audio file format (tried mp3 and ogg on x86 - just ogg on amd64 because of the known rockbox-libmad bug)
- seems to affect swcodec sims, but not hwcodec (tried h300 and sansa / archos recorder)
The backtrace on linux-x86, while not containing as many question marks, isn't much more helpful:
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1221067856 (LWP 24221)]
0x08049898 in get_action_worker (context=Cannot access memory at address 0x8
) at action.c:113
113 button = button_get_w_tmo(timeout);
(gdb) bt
#0 0x08049898 in get_action_worker (context=Cannot access memory at address 0x8) at action.c:113
Cannot access memory at address 0x4
(gdb) print timeout
Cannot access memory at address 0xc
The "cannot access memory" messages are puzzling...
It doesn't always crash when stopping from outside the wps. So far I've been able to make it crash from the tree and the menu. Stopping from an audio control menu in a plugin (solitaire) wors fine.
It also doesn't crash when single-stepping the audio stop action in gdb... :/
Under GDB, this also gives no backtrace - just the following error:
Program received signal SIGSEGV, Segmentation fault.
[Switching to thread 1672.0x1d7c]
SDL_mutexP (mutex=???) at SDL_sysmutex.c:90
90 SDL_sysmutex.c: No such file or directory.
in SDL_sysmutex.c
http://svn.rockbox.org/viewvc.cgi/trunk/apps/playback.c?r1=13117&r2=13317&pathrev=14094