[M3devel] crashes everywhere
Rodney M. Bates
rodney.bates at wichita.edu
Wed Aug 22 16:27:07 CEST 2007
I was unable to reproduce this m3gdb problem, but I looked at ways
this could happen. In your case, m3gdb is getting conflicting
information about whether it is debugging a program compiled by pm3
or cm3.
As a workaround, since we know (don't we?) that it is actually cm3,
and that agrees with what m3gdb thinks at the time of the assertion
failure, it is probably safe in this case to ignore the message and proceed.
You might even try the bt command again immediately. This error should
self-heal at this point.
It would be helpful to me if you sent me the output of these commands:
objdump -G <your_executable> | grep MM__m3main
objdump -G <libm3core.so> | grep ObjectTypecell
Substitute the appropriate paths for your linked executable and wherever
it finds libm3core.
Dragiša Durić wrote:
> ***
> *** runtime error:
> *** An array subscript was out of range.
> *** file "../src/runtime/common/RTCollector.m3", line 2316
> ***
>
> m3gdb, on setting lang to Modula-3 (capital M) ant bt, gives this:
>
> (m3gdb) bt
> #0 0x00d54402 in ?? ()
> #1 0x430c7ba0 in raise () from /lib/libc.so.6
> #2 0x430c94b1 in abort () from /lib/libc.so.6
> #3 0x00eaf2ff in Crash () at RTOS.m3:20
> #4 0x00ea1624 in Crash (msg=NIL) at RTProcess.m3:65
> #5 0x00e9ed85 in EndError (crash=TRUE) at RTError.m3:115
> #6 0x00e9ea3a in MsgS (file=16_00ed7368, line=2316, msgA=16_00ed8ee8,
> msgB=16_00ed3530, msgC=16_00ed8ee8) at RTError.m3:40
> #7 0x00e9f212 in Crash (a=
> ../../gdb/gdb/m3-util.c:1057: internal-error: note_is_cm3: Assertion
> `compiler_kind != ck_pm3' failed.
> A problem internal to GDB has been detected,
> further debugging may prove unreliable.
>
> I am using cvshead cm3, as of few days ago.
--
-------------------------------------------------------------
Rodney M. Bates, retired assistant professor
Dept. of Computer Science, Wichita State University
Wichita, KS 67260-0083
316-978-3922
rodney.bates at wichita.edu
More information about the M3devel
mailing list