Did you tried it from the latest mame source? BGFX got some fixes.
git clone https://github.com/mamedev/mame.githttps://github.com/mamedev/mame/
Try it to see. For the 0.236 beta.
Some of the games screen didn't work right with the 0.235 released because of the BGFX changes. I thought maybe it did something to the Linux version to where it crash.