Audacity Segfault after loading a project

Bug reports for Audacity 2.3.1 alpha
Forum rules
This forum is only for feedback and bug reports for the specified version of Audacity.

All bug reports must include the following information:
  • Exact version number of Audacity
  • Operating system version
  • Brief description of the problem
  • Detailed, step by step instructions for how to reproduce the problem
Bug reports that do not include the above information will be deleted

Additional information and / or screenshots should be included as necessary to adequately describe the problem.
Post Reply
Jean-Luc
Posts: 4
Joined: Wed Oct 03, 2018 7:54 am
Operating System: Linux Debian

Audacity Segfault after loading a project

Post by Jean-Luc » Wed Oct 03, 2018 8:13 am

Hi,
With latest git master version, I got a segfault (SIGSEGV).

I use Debian sid, linux 4.18

I load a wav file (from a Zoom H6 recorder).
It loads the file and just at the end of the loading process, before removing DC offset and Normalizing, it crashed.

I've done a bt in gdb and a git bisect.

The git bisect says:
511b810fdcb6bb418e915dc4295661c49dec3ec4 is the first bad commit

And you will find the backtrace attached.

Regards

Jean-Luc
Attachments
audacity-bt.txt
Audacity segfault, gdb bt
(6.7 KiB) Downloaded 11 times

steve
Site Admin
Posts: 48993
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Audacity Segfault after loading a project

Post by steve » Wed Oct 03, 2018 10:46 am

Thanks for the report, and for taking the trouble to debug.
The Audacity 2.3.0 tarball is, or will be marked as "experimental" as we are now aware that we have some problems with it.

We are planning a short release cycle for 2.3.1 which is focussed on stability, so I'll log this, and pass the information that you gave on to the developers.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Paul L
Posts: 890
Joined: Mon Mar 11, 2013 7:37 pm
Operating System: Please select

Re: Audacity Segfault after loading a project

Post by Paul L » Wed Oct 03, 2018 4:02 pm

Jean-Luc,

Thank you for help investigating this.

I suspect there is more than one crash bug happening here, and that it may not be deterministic, so your bisection may not be correct.

First, you should know that one known crash in Linux was lately fixed with this commit:

a17af37c1ef9a4611add492d8ba02d1dfb270210

So if you try to bisect again, I suggest you cherry-pick that commit each time, to eliminate the known problem.

Secondly, the commit you reported as the first bad one is in fact a merge commit. The difference between it and one of its two parent commits is empty.
Therefore, a correct bisection of a DETERMINISTIC bug would not have identified that commit. But perhaps this isn't deterministic. So, if you repeat the
bisection, I suggest you try to let the crash happen a few times.

Finally, please identify the commit you built when you generate a crash report.

The stack trace you gave mentions std::function, and many uses of that are new in 2.3.1 development, but were not present in the commit you identified
as the first bad commit. This makes me think there is more than one bug. If there really is some crash reliably reproducible at commit 511b810fdcb6bb418e915dc4295661c49dec3ec4, it may be a different bug and a different stack track for that will tell us something.

PRL

Jean-Luc
Posts: 4
Joined: Wed Oct 03, 2018 7:54 am
Operating System: Linux Debian

Re: Audacity Segfault after loading a project

Post by Jean-Luc » Wed Oct 03, 2018 6:16 pm

Okay.
I think I understood :)

I've just rebuilt the latest one:
commit 0a55b27d2dde0def0391c7b79c1811de22643d82 (HEAD -> master, origin/master, origin/HEAD)

I got a segfault.

See the bt attached for this one.

I will do the bissect later (it is quite time consuming).

Regards

Jean-Luc
Attachments
audacity-bt-20181003.txt
(4.72 KiB) Downloaded 12 times

Jean-Luc
Posts: 4
Joined: Wed Oct 03, 2018 7:54 am
Operating System: Linux Debian

Re: Audacity Segfault after loading a project

Post by Jean-Luc » Wed Oct 03, 2018 7:09 pm

I just (tried to) rebuilt 511b810fdcb6bb418e915dc4295661c49dec3ec4
But:
1 - I cannot cherry pick a17af37c1ef9a4611add492d8ba02d1dfb270210 on it
2 - There is a compile error (see attached file)

J-L
Attachments
audacity-3ec4-build-error.txt
(5.57 KiB) Downloaded 9 times

Jean-Luc
Posts: 4
Joined: Wed Oct 03, 2018 7:54 am
Operating System: Linux Debian

Re: Audacity Segfault after loading a project

Post by Jean-Luc » Fri Oct 05, 2018 1:36 pm

I've rebuilt the latest version. I didnt get a crash but a report from audacity. Please find it attached.
Attachments
Audacity_dbgrpt-19612-20181004T212751.zip
(22.15 KiB) Downloaded 11 times

steve
Site Admin
Posts: 48993
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Audacity Segfault after loading a project

Post by steve » Fri Oct 05, 2018 4:33 pm

Commit b5a7b67cb713462250557e0d189a7e910853e1e3 has fixes for crash issues (it's the latest version at time of writing).
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Post Reply