I was happily tooling around on my macbook at the command line, poking around in the MAME source code as you do, and then this happened:
$ grep -f pats listing
704 ./powerpc
724 ./m68000
872 ./i386
1092 ./upd7810
Segmentation fault: 11
Record scratching sound. WTF.
more here............http://blog.loadzero.com/blog/tracking-down-a-segfault-in-grep/
$ grep -f pats listing
704 ./powerpc
724 ./m68000
872 ./i386
1092 ./upd7810
Segmentation fault: 11
Record scratching sound. WTF.
more here............http://blog.loadzero.com/blog/tracking-down-a-segfault-in-grep/