On Sat, 6 Apr 2024 at 00:50, Bdale Garbee <bd...@gag.com> wrote: > > Sudip Mukherjee <sudipm.mukher...@gmail.com> writes: > > > yforth is causing a segfault immediately on startup. > > Thanks for the bug report. I haven't had reason to use yforth in many > years, (the package was last updated on 11 October 2012), so I hadn't > noticed!
I dont use forth, just happened to notice the bug reported in Ubuntu. > > My guess is that this is a simple 64-bit system incompatibility, as a > quick rebuild of the package on my current 64-bit laptop yields a large > number of warnings about casts of pointer from integer of different size... I tried to debug it, the first segfault is at https://sources.debian.org/src/yforth/0.2.1-1/search.c/#L84 and is caused by "_align();" at https://sources.debian.org/src/yforth/0.2.1-1/search.c/#L81 which completely changed the address and so it now tried to set NULL to an invalid location. I stopped after seeing there are many such macros like "_align()" which are modifying the pointers and imho, it will be a nightmare to fix it. -- Regards Sudip