fp ide crashes on launch with runtime error 106 at $00000000004D7E1D when running under tmux

Bug #1747824 reported by Raúl Soriano
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
fpc (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Bionic Beaver 18.04

fp-ide 3.0.4+dfsg-15ubuntu2

On a terminal, whether it's an empty directory or one containing an older project, launch "fp" to open the ide. It crashes like this every single time.

$  fp
Runtime error 106 at $00000000004D7E1D
  $00000000004D7E1D

$

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: fp-ide 3.0.4+dfsg-15ubuntu2
Uname: Linux 4.15.0-041500-generic x86_64
ApportVersion: 2.20.8-0ubuntu8
Architecture: amd64
CurrentDesktop: XFCE
Date: Wed Feb 7 05:01:57 2018
InstallationDate: Installed on 2013-05-23 (1720 days ago)
InstallationMedia: Xubuntu 13.04 "Raring Ringtail" - Release amd64 (20130423.1)
PackageArchitecture: all
SourcePackage: fpc
UpgradeStatus: Upgraded to bionic on 2018-01-29 (9 days ago)

Revision history for this message
Raúl Soriano (gatoloko) wrote :
Revision history for this message
Raúl Soriano (gatoloko) wrote :

Got the new fp-ide update, version 3.0.4+dfsg-15ubuntu3, still crashing just the same.

Revision history for this message
Raúl Soriano (gatoloko) wrote :

Just tried with the 3.0.4+dfsg-16 packages, still the exact same thing.

Revision history for this message
Raúl Soriano (gatoloko) wrote :

Made a clean installation of Ubuntu 18.04, fully updated, installed fp-ide, still crashes all the same.

Revision history for this message
Raúl Soriano (gatoloko) wrote :

Just tried with the 3.0.4+dfsg-18 packages, still the exact same thing.

Revision history for this message
Paul Gevers (paul-climbing) wrote :

Can you please give us the outcome of

ls -al $(readlink -f $(which fp))

Revision history for this message
Paul Gevers (paul-climbing) wrote :

And for me, on a Debian buster system, it works without issue.

Revision history for this message
Raúl Soriano (gatoloko) wrote :

I've just found the root cause for this is tmux. If fp ide is run on an xfce terminal it doesn't crash, but under tmux on the same xfce terminal it does.

I'll try to identify whether this is a "package problem" or an upstream one.

Revision history for this message
Raúl Soriano (gatoloko) wrote :

In reply to Paul, here is the output you asked for:

~ ls -al $(readlink -f $(which fp))
-rwxr-xr-x 1 root root 5266448 abr 22 16:10 /usr/bin/fp-3.0.4

Guess you wanted to verify I wasn't hitting a "third party" binary or something like that.

I've been combing through freepascal.org bug tracker and found that fp-ide is somewhat sensitive regarding terminals.

In their forum I've found a recent question regarding problems with tmux (no bug report though). The proposed workaround is to run fp ide inside screen inside tmux until a better solution can be found ( https://forum.lazarus.freepascal.org/index.php?topic=40299.0 ).

summary: fp ide crashes on launch with runtime error 106 at $00000000004D7E1D
+ when running under tmux
Revision history for this message
Gianfranco Costamagna (costamagnagianfranco) wrote :
Revision history for this message
Thao Le (thaolt) wrote :

Hi, I think problem is fp parses process stat files.

tmux process look like this:

26474 (tmux: server) S 1 26474 26474 ...

Please see https://asciinema.org/a/233446 for full strace run

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in fpc (Ubuntu):
status: New → Confirmed
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.