Page 1 of 1

Segfault on GNU/Linux 32bit

PostPosted: 02 Feb 2017 19:06
by dbstp
Hello,
I've downloaded the binaries for Linux but starting oforth (with --i or with file as argument) gives me a segmentation fault and the whole terminal session freezes.
This happens with Korora 25 (a Fedora spin-off) 32bit.

I've also installed oforth on my elementary (Ubuntu 16.04 based) laptop on 64 bit where it runs fine and without problems.

Any hints or suggestions?

Thanks and best regards,
Marc

Re: Segfault on GNU/Linux 32bit

PostPosted: 02 Feb 2017 19:34
by Franck
Hello,

The only thing I'am thinking of is the version of Linux kernel. Do you know what is this version on Korora 25 ? Is it an old version ? Or the same than the one on Ubuntu ?
Also, are you sure that Korora 25 is a 32 bits distribution ? (if not, perhap's you will need to get 32bits libraries to run oforth : libc, ...).

I won't be able to install Korora 25 right now to find what is wrong.
If you want, I can send you Oforth sources so you can compile Oforth on this platform. If so, send me your mail address so I can send you those sources.

Otherwise, I have no clue for this distribution...
Thank you for reporting, I note this bug to check when I will be able to.

Best regards,
Franck

Re: Segfault on GNU/Linux 32bit

PostPosted: 02 Feb 2017 20:16
by dbstp
Hello Franck,

yes, my Korora installation (which is the same as Fedora, only with some additions) runs on 32bit and has kernel 4.9.6. My Ubuntu installation runs on 64bit with an 4.x kernel, too... When I have a look at dmesg it gives me

Code: Select all
segfault at f74de34c ip 0804bb23 sp bf895790 error 5 in oforth[8048000+1b000]


It would be really nice if you could give me the sources. Do I need special dependencies to compile it?

Thanks and best regards,
Marc

Re: Segfault on GNU/Linux 32bit

PostPosted: 02 Feb 2017 21:04
by Franck
ok, no problem.

Oforth has no dependencies (it uses pthread, math and dl, that's all).
There is a makefile.l32 to compile it (that you will have to copy to makefile file).
Into the CIBLE variable, you can change the -march option if you want.

I hope this will work. Otherwise, tell me what happen's...

Best regards,
Franck