Victory? (was Re: Mac Intel)

Mikael Pettersson <>
Tue Aug 15 10:12:06 CEST 2006


On Tue, 15 Aug 2006 03:27:08 +0100, Joel Reymont wrote:
> Here's the problem with the esmb test:
> 
> 4> esmb:test().
> Compiling esmb with opts [core,o2] ...Illegal instruction
> 
> How do I go about debugging this?

Run erlang under gdb. Starting the beam runtime system under gdb
is a PITA (needs several environment variables and command line
options normally set by the erl wrapper). An alternative is to
use "gdb --pid <pid of process>" to attach to beam after it has
started.

Finally, you could hack in a SIGILL signal handler and have it
print EIP and the surrounding object code.



More information about the erlang-questions mailing list