Gforth hangs forever when running "see +"

Bug #2004211 reported by Jerome Abela
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gforth (Ubuntu)
New
Undecided
Unassigned

Bug Description

Running "see +", gforth shows "Code +", and then hangs forever.

This is due to gforth relying on gdb to disassemble specified word, but the default value for /proc/sys/kernel/yama/ptrace_scope on Unbuntu is 1, which only allows a process to trace its children, so the attach fails, so the gdb script fails, so gdb never exits, and gforth waits forever for gdb to exit.

The upstream bug is https://savannah.gnu.org/bugs/?63730, and already contains a patch that fixes the issue for Ubuntu 22.04 (but fails for Debian 7, so it will probably not be fixed this way upstream).

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: gforth 0.7.3+dfsg-9build4.1
ProcVersionSignature: Ubuntu 5.15.0-58.64-generic 5.15.74
Uname: Linux 5.15.0-58-generic x86_64
ApportVersion: 2.20.11-0ubuntu82.3
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
Date: Mon Jan 30 20:03:38 2023
InstallationDate: Installed on 2021-09-23 (494 days ago)
InstallationMedia: Ubuntu 21.04 "Hirsute Hippo" - Release amd64 (20210420)
SourcePackage: gforth
UpgradeStatus: Upgraded to jammy on 2022-05-24 (251 days ago)

Revision history for this message
Jerome Abela (jeromelon) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.