• Status Closed
  • Percent Complete
  • Task Type Bugs
  • Category Plugins
  • Assigned To No-one
  • Operating System iPod 5G
  • Severity Low
  • Priority Very Low
  • Reported Version Daily build (which?)
  • Due in Version Undecided
  • Due Date Undecided
  • Votes
  • Private
Attached to Project: Rockbox
Opened by chris_s - 2022-12-29
Last edited by speachy - 2023-05-22

FS#13384 - Plugins: Sgt-puzzles crash at launch


Affected daily build 2022-12-31 on iPod video, or commits before 485e96d

Speachy’s commit 485e96d seems to have resolved the previously noticed crash on device – tested on iPod video).

I still see a segfault in the simulator, but that could be an AARCH64-specific issue in my case.

Valgrind output for segfault from commit 3def8fe:

==42378== Invalid read of size 4
==42378== at 0x1C2B6E74: FIND_SUITABLE_BLOCK (tlsf.c:388)
==42378== by 0x1C2B74BB: malloc_ex (tlsf.c:788)
==42378== by 0x1C29CFE3: smalloc (rbmalloc.c:53)
==42378== by 0x1C299D2B: init_fonttab (rockbox.c:599)
==42378== by 0x1C299D2B: puzzles_main (rockbox.c:3656)
==42378== by 0x1C29B4B7: plugin_start (rockbox.c:3854)
==42378== by 0x1C2B6BDB: plugin__start (plugin_crt0.c:102)
==42378== by 0x13B433: plugin_load (plugin.c:920)
==42378== by 0x13C38B: load_plugin_screen (root_menu.c:777)
==42378== by 0x13C38B: root_menu (root_menu.c:1001)
==42378== by 0x12407F: main (main.c:209)
==42378== Address 0x1c is not stack’d, malloc’d or (recently) free’d

Closed by  speachy
2023-05-22 13:50
Reason for closing:  Fixed

Seems to be caused by b4865b0 "Build: Bump all toolchains to GCC 4.9.4 + Binutils 2.26.1"

Changing the GCC optimization level from Os to O or O2 appears to fix it.


What build is this? What code version? Can you upload binaries or trace the execution state in gdb?

I've updated the post above. It may be fixed on device (ARM/iPod 5G) by now due to yesterday's tlsf update, at least I can't reproduce the crash anymore.


Available keyboard shortcuts


Task Details

Task Editing