Skip to content

Intermittent crashing using --long option #226

Open

Description

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

OS: FreeBSD 13.2
erdtree: 202fae1

Activity

  1. solidiquis commented on Jul 3, 2023

    @solidiquis
    Owner

    Interesting. I'll look into this today Ty!

  2. gbtec-markusmeier commented on Sep 25, 2023

    @gbtec-markusmeier

    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
    
  3. psicho2000 commented on Mar 8, 2024

    @psicho2000

    Update:

    • bug occurs on any Ubuntu 22.04 instance (bare metal and WSL).
    • erd --long works without problems on macOS 14
  4. eevmanu commented on Mar 30, 2024

    @eevmanu

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions