[erlang-questions] emulator crash when using fprof in verbose mode

Joel Reymont <>
Sun Aug 31 01:33:15 CEST 2008


How do I troubleshoot and fix this?

	Thanks, Joel

---

Mac OSX 10.5.4, 2x2.8Ghz Quad Xeon

Erlang (BEAM) emulator version 5.6.3 [source] [64-bit] [smp:8] [async- 
threads:0] [kernel-poll:true]

     fprof:apply(mb, test, [localhost, 3000, N],
                 [{file, "/db2/mb.trace"},
                  verbose
                 ]).

No SMP:

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x0000000200cf1b52
0x00007fffffe00f38 in ?? ()
(gdb) where
#0  0x00007fffffe00f38 in ?? ()
#1  0x000000010973608e in ?? ()
#2  0x000000010006050e in processes_bif_engine (p=0x109736090,  
res_accp=0x100678dda, mbp=0x2) at beam/erl_process.c:4579
#3  0x000000010006050e in processes_bif_engine (p=0x109736090,  
res_accp=0x100678dda, mbp=0x2) at beam/erl_process.c:4579

SMP:

size_object: matchstate term not allowed

Program received signal SIGABRT, Aborted.
0x00007fff80db55c6 in select$DARWIN_EXTSN ()
(gdb) where
#0  0x00007fff80db55c6 in select$DARWIN_EXTSN ()
#1  0x00000001000e4530 in erts_sys_main_thread () at sys/unix/sys.c:2864
#2  0x000000010001bf3b in erl_start (argc=15, argv=<value temporarily  
unavailable, due to optimizations>) at beam/erl_init.c:1038

The error is reported by size_object in erts/emulator/beam/copy.c,  
particularly this bit:

                 case BIN_MATCHSTATE_SUBTAG:
                     erl_exit(ERTS_ABORT_EXIT,
                              "size_object: matchstate term not  
allowed");

--
wagerlabs.com








More information about the erlang-questions mailing list