erdtree
erdtree copied to clipboard
Intermittent crashing using --long option
$ erd --long
fish: Job 1, 'erd --long' terminated by signal SIGSEGV (Address boundary error)
OS: FreeBSD 13.2 erdtree: 202fae1
Interesting. I'll look into this today Ty!
I can confirm. I'm also using erdtree 3.1.2, which includes the fix of https://github.com/solidiquis/erdtree/issues/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
Update:
- bug occurs on any Ubuntu 22.04 instance (bare metal and WSL).
erd --longworks without problems on macOS 14
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 😊