I just want to inform you, that with new MAME 0.184 the error "Caught unhandled St9bad_alloc exception: std::bad_alloc" on MAME -verifyroms is gone.
I think this has to do with News on MAME 0.184 told on www.mame.net: ==== SNIP ==== We’ve made substantial improvements to some of MAME’s non-emulation features. The -romident verb is now much faster when used on a folder or archive containing multiple files, and will identify ROMs for emulated slot devices that aren’t inserted by default. The -listxml output now includes all linked devices, and is produced at least 30% faster. We’ve also improved -verifyroms so it covers more devices and is faster when verifying ROMs for a subset of drivers/devices. ==== SNAP ====