[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] xaaes: benchmarktest old vs new ?



Frank Naumann wrote:

Hello!

Don't know if it help:

PROCESS "KRONOS" KILLED:
MEMORY VIOLATION.

Type: private   PC: 01D098EC
Addr: 01D8D66E  BP: 01CA8000

If it's gcc compiled (with debug info) you can calculate the source line of the crash from the PC.


Yes it is, how can I do? I have no gdb (I can download it if need).


gdb is not needed (with gdb you can do source level debugging).

Compile a KRONOS version with debug (option -g). Then let the version run, remember the crashing PC and the BP. Now calculate PC - BP - 0x100 and enter this value into addr2line -e kronos.prg. If the PC is a useful PC (e.g. the PC is inside the program AND belongs to code that is compiled with debug info) addr2line print the corresponding source line.


Ok I don't know this I print it. But unfortunatly I'm on hollyday for 3 weeks at the end of the day so I will send you a version with this options in 3 weeks only for know, perhaps at this time there will have a version usefull of Aranym working with MMU for test.

Thanks

Olivier