Closed RobLoach closed 6 years ago
leaderboard-related issue, this was the same as radius found out a few months ago.
On Thu, Nov 16, 2017 at 10:55 AM, Rob Loach notifications@github.com wrote:
Description
Getting a segment fault when using Cheevos, and running a game. https://hastebin.com/xonohanizu.pas Expected behavior
Cheevos should not segfault. Actual behavior
When running Super Mario Kart, the game loads, Cheevos says it's enabled, and then it crashes. Steps to reproduce the bug
- Enable Achievements
- Run Super Mario Kart
- See it break
Bisect Results
I can find this, will take a bit of time. Version/Commit
- RetroArch: 721b5f9 https://github.com/libretro/RetroArch/commit/721b5f9529ae44727924ee7a49630ab7fe4ac0ff
Environment information
- OS: Linux
- Compiler: gcc
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/libretro/RetroArch/issues/5681, or mute the thread https://github.com/notifications/unsubscribe-auth/AWPDtvBYfWk8f4FzDP2vp6lc40Fa4Y3Cks5s26QbgaJpZM4Qf46- .
The leaderboard syntax for this game uses a control I didn't know about; it reparses the value to submit as a binary-coded decimal.
I can add this as soon as I'm at my comp.
See if this fixes the issue -
https://github.com/libretro/RetroArch/commit/56a3bc10e3e3b849842f9ed1f8c71271984744a1
Still getting the double free fault: https://hastebin.com/onutayabeg.pas
[INFO] [CHEEVOS]: got achievements for game id 232.
=================================================================
==1322==ERROR: AddressSanitizer: attempting double-free on 0x611000149140 in thread T3:
#0 0x7fd43d22e2ca in __interceptor_free (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x982ca)
#1 0x9bb267 in cheevos_parse_mem cheevos/cheevos.c:1082
#2 0x9bca9e in cheevos_new_lboard cheevos/cheevos.c:1232
#3 0x9bdc0f in cheevos_read__json_end_object cheevos/cheevos.c:1364
#4 0x941473 in jsonx_parse_object libretro-common/formats/json/jsonsax.c:136
error:
cheevos_free_condition(&lb->start);
cheevos_free_condition(&lb->cancel);
cheevos_free_condition(&lb->submit);
if ((void*)lb->value.terms)
free((void*)lb->value.terms);
return -1;
With 5723 and #5708, this should be fixed. Feel free to re-open if you're running into it.
Description
Getting a segment fault when using Cheevos, and running a game. https://hastebin.com/xonohanizu.pas
Expected behavior
Cheevos should not segfault.
Actual behavior
When running Super Mario Kart, the game loads, Cheevos says it's enabled, and then it crashes.
Steps to reproduce the bug
Bisect Results
RetroArch Leaderboards merge
bc969d0bf70b6f643ff59f6cca39eb2584e9a10e
Version/Commit
Environment information