FS#78554 - [ncdu] v2.2.2 crashes on --follow-symlinks

Attached to Project: Community Packages
Opened by clonejo (clonejo) - Friday, 19 May 2023, 15:24 GMT
Last edited by Toolybird (Toolybird) - Saturday, 15 July 2023, 00:03 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To No-one
Architecture x86_64
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
For some of my directories, running `ncdu --follow-symlinks some/path` crashes with:

thread 281132 panic: reached unreachable code
zsh: IOT instruction (core dumped) ncdu -L some/path


Additional info:
* package version(s): 2.2.2-2
* all packages are up to date
* link to upstream bug report, if any: none found

Steps to reproduce:
I don't currently know what part of my home directory make it crash.

However, i have tried to reproduce the issue by building from v2.2.2 upstream sources, and it works just fine. Builds from PKGBUILD[0] fail. But as soon as i remove the `-Dcpu=baseline -Dtarget=native-linux.5.15-gnu` options, the crash does not occur!


[0]: https://github.com/archlinux/svntogit-community/blob/ec21b727652cea1da2c5ce2dbfca320a8367e275/trunk/PKGBUILD
This task depends upon

Closed by  Toolybird (Toolybird)
Saturday, 15 July 2023, 00:03 GMT
Reason for closing:  No response
Comment by Toolybird (Toolybird) - Friday, 19 May 2023, 22:20 GMT
> core dumped

Please post a backtrace with debug symbols [1]. It's usually as simple as this (but not always):

$ coredumpctl gdb (then answer y when it asks "Enable debuginfod for this session?")
(gdb) set logging enabled
(gdb) bt (or bt full)

Then post gdb.txt

[1] https://wiki.archlinux.org/title/Debugging/Getting_traces
Comment by Christian Heusel (gromit) - Thursday, 15 June 2023, 19:43 GMT
Works for me .. Can you reproduce the crash and post a backtrace as toolybird suggested?

Loading...