On Thu, 27 Jan 2022, Mark Cave-Ayland wrote:
On 25/01/2022 00:03, Glenn Washburn wrote:
Here's backtrace output ia GDB.
Starting program: /home/user/openbios.git/obj-ppc64/forthstrap -I/home/user/openbios.git/forth/bootstrap/ -I/home/user/openbios.git/forth/bootstrap/ -I/home/user/openbios.git/forth/lib/ -I/home/user/openbios.git/forth/device/ -I/home/user/openbios.git/forth/debugging/ -I/home/user/openbios.git/forth/admin/ -I/home/user/openbios.git/forth/util/ -I/home/user/openbios.git/forth/packages/ -I/home/user/openbios.git/forth/system/ -I/home/user/openbios.git/libopenbios/ -I/home/user/openbios.git/packages/ -I/home/user/openbios.git/drivers/ -I/home/user/openbios.git/arch/ppc/ -I/home/user/openbios.git -I./forth -D bootstrap.dict -M bootstrap.dict.d -c bootstrap.dict-console.log forth/bootstrap/start.fs
Program received signal SIGSEGV, Segmentation fault. 0x00005555555575e9 in findword (s1=0x55555555f112 "(semis)") at /home/user/openbios.git/kernel/dict.c:118 118 tmplfa = read_ucell(cell2pointer(tmplfa)); (gdb) bt #0 0x00005555555575e9 in findword (s1=0x55555555f112 "(semis)") at /home/user/openbios.git/kernel/dict.c:118 #1 0x0000555555559781 in interpret_source ( fil=0x7fffffffe33a "forth/bootstrap/start.fs") at /home/user/openbios.git/kernel/bootstrap.c:591 #2 0x000055555555a9f0 in new_dictionary ( source=0x7fffffffe33a "forth/bootstrap/start.fs") at /home/user/openbios.git/kernel/bootstrap.c:1059 #3 0x000055555555ae66 in main (argc=23, argv=0x7fffffffddb8) at /home/user/openbios.git/kernel/bootstrap.c:1286
Well that certainly looks like something has gone wrong with cell2pointer() on the ppc64 build. IIRC the output of the Forth interpreter is echoed to stderr so you should be able to see how far it got parsing start.fs by looking at bootstrap.dict-console.log.
I think it may not be printed on console with default silent build but may be in a log file somewhere in the obj-ppc* dir. Also running make V=1 may or may not help, at least I have that in my build script for some reason I forgot.
Regards, BALATON Zoltan