Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Intermittent crashing using --long option #226

Open
yonas opened this issue Jul 3, 2023 · 4 comments
Open

Intermittent crashing using --long option #226

yonas opened this issue Jul 3, 2023 · 4 comments

Comments

@yonas
Copy link

yonas commented Jul 3, 2023

$ erd --long
fish: Job 1, 'erd --long' terminated by signal SIGSEGV (Address boundary error)

OS: FreeBSD 13.2
erdtree: 202fae1

@solidiquis
Copy link
Owner

Interesting. I'll look into this today Ty!

@gbtec-markusmeier
Copy link

I can confirm.
I'm also using erdtree 3.1.2, which includes the fix of #189.
Bug also appears in erdtree 3.1.1, though.

Using Ubuntu 22.04.3 with bash/zsh.

The more files, the more often the error appears.

Often I get a bad run:

$ erd -l
[1]    1385527 segmentation fault  erd -l

Sometimes I get a good run:

$ erd -l
.rw-r--r--  markus 25 Sep 16:21 23 0 B ┌─ 3
.rw-r--r--  markus 25 Sep 16:37 23 0 B ├─ 1
.rw-r--r--  markus 25 Sep 16:21 23 0 B ├─ 4
.rw-r--r--  markus 25 Sep 16:21 23 0 B ├─ 8
.rw-r--r--  markus 25 Sep 16:21 23 0 B ├─ 9
.rw-r--r--  markus 25 Sep 16:21 23 0 B ├─ 2
.rw-r--r--  markus 25 Sep 16:21 23 0 B ├─ 5
.rw-r--r--  markus 25 Sep 16:21 23 0 B ├─ 7
.rw-r--r--  markus 25 Sep 16:21 23 0 B ├─ 6
drwxr-xr-x  markus 25 Sep 16:37 23  test

9 files

@psicho2000
Copy link

Update:

  • bug occurs on any Ubuntu 22.04 instance (bare metal and WSL).
  • erd --long works without problems on macOS 14

@eevmanu
Copy link

eevmanu commented Mar 30, 2024

update:

bug occurs on ubuntu 21.10 impish (or ubuntu-based or debian-based OS) as well

$ cat /etc/os-release
NAME="Pop!_OS"
VERSION="21.10"
ID=pop
ID_LIKE="ubuntu debian"
VERSION_ID="21.10"
VERSION_CODENAME=impish
UBUNTU_CODENAME=impish
$ erd --version
erdtree 3.1.2
$ ldd /path/to/erd
	statically linked

w/o --long command option

$ erd .
        -    ┌─ ...
        - ┌─ ...
16XXX24 B ├─ ...
16XXX80 B ...

w/ --long command option

$ erd --long .
Segmentation fault (core dumped)

I'm using erd-v3.1.2-x86_64-unknown-linux-musl.tar.gz

happy to provide more info if needed 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants