Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 656720 - games-emulation/advancemame-3.7: stack smashing detected
Summary: games-emulation/advancemame-3.7: stack smashing detected
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal major with 1 vote (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-05-27 22:57 UTC by Tear♪
Modified: 2019-02-20 16:01 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tear♪ 2018-05-27 22:57:56 UTC
This version of AdvanceMAME gets killed at startup with the message:
*** stack smashing detected ***: <unknown> terminated

This issue has been submitted to RetroPie (Ubuntu-based emulation OS) support forums 5 months ago:
https://retropie.org.uk/forum/topic/15289/advance-mame-won-t-make-a-working-compile-on-ubuntu-17-10/2

Their solution was to build it with -fno-stack-protector:
https://pow.gs/mirror/RetroPie-Setup/commit/7520c88df5938207bac523d080cf678ad00bbf22
I can confirm that this works around what appears to be an upstream bug and results in a functional binary; I'm not sure if we want to resort to an ugly hack like this, though. I can provide a backtrace, depending on whether we decide to hack around this or attempt to patch it.