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:
Their solution was to build it with -fno-stack-protector:
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.