Bug#1068474: yforth segfaults immediately on launching
On Sat, 6 Apr 2024 at 00:50, Bdale Garbee wrote: > > Sudip Mukherjee 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
Bug#1068474: yforth segfaults immediately on launching
Sudip Mukherjee 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! 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... Honestly, I'm not sure this is worth fixing? The upstream site has disappeared entirely. If someone wants to step through the source and fix all the cast issues, I'd be happy to have a patch. But given the availability of gforth and pforth in Debian, just removing yforth from Debian might be the best plan. Bdale signature.asc Description: PGP signature
Bug#1068474: yforth segfaults immediately on launching
Source: yforth Version: 0.2.1-1 Severity: important X-Debbugs-Cc: sudipm.mukher...@gmail.com Dear Maintainer, yforth is causing a segfault immediately on startup. $ yforth yForth? v0.2 Copyright (C) 2012 Luca Padovani This program comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it under certain conditions; see LICENSE for details. error(17): segmentation fault. Segmentation fault Though "yforth -h" works and shows the help message. -- Regards Sudip