%T#13821 Comment added by amachronic: Many plugins crash

Rockbox via rockbox-sf <[email protected]>
Newsgroups gmane.comp.systems.archos.rockbox.sourceforge
Message-ID <[email protected]>
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

The following task has a new comment added:

FS#13821 - Many plugins crash
User who did this - Aidan MacDonald (amachronic)

----------
Did some testing on on e677895e29... If I add a while(1) infinite loop at this point it doesn't crash

https://gerrit.rockbox.org/r/plugins/gitiles/rockbox/+/refs/heads/master/apps/plugins/sdl/progs/quake/snd_dma.c#223

        // ADDED
        while (1) rb->splashf(HZ, "okay");

	if ( shm ) {
		Con_Printf ("Sound sampling rate: %i\n", shm->speed);
	}


Moving the loop after the 'if' results in the same crash, but since 'shm' is NULL this shouldn't matter. Doing a Con_Printf() instead of a splashf also produces a crash. Doing rb->yield() works fine though. Disabling sound by returning early from S_Init() gets things a bit further before crashing but not by much.

My sense is something is overwriting the code at a particular offset. AddressSanitizer would be really useful here but it doesn't seem possible to run quake in the simulator on x86_64; there's tons of compile errors, the code doesn't seem portable to 64 bit.
----------

More information can be found at the following URL:
https://www.rockbox.org/tracker/task/13821#comment45452

You are receiving this message because you have requested it from the Flyspray bugtracking system.  If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.
-- 
rockbox-sf mailing list
[email protected]
https://lists.haxx.se/mailman/listinfo/rockbox-sf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.