Segfault after "Quit Audacity"

Steps to reproduce:

  1. Open Audacity
  2. Open new Audacity window via Ctrl+N or Ctrl+O
  3. Add new stereo track in both windows (so Audacity will not quit silently)
  4. Quit Audacity from the first window (via menu or Ctrl+Q)
  5. Select “No” to discard the project for the first window
  6. Select “Cancel” to not close for the second window
  7. Segfault :expressionless:

The issue doesn’t reproduce if one quits Audacity from the second window.

Environment: Arch Linux, Xfce, Audacity 3.7.7

I am attaching Audacity generated dbgrpt and coredump.

Audacity_dbgrpt-166083-20260604T221847.zip (not sure why I can’t upload it directly here)

core.audacity.1000.d799ccf5b22b4d149a788ec28230e351.166083.1780604395000000.zst

Here is the backtrace from thread 1:

#0  0x000055b65a6e87d0 in ?? ()
#1  0x00007ffbc210c11c in wxMBConv::FromWChar (this=0x7ffbc1e57e40 <wxApp::Initialize(int&, wchar_t**)::fileconv>, dst=0x0, dstLen=0, src=0x55b65ba4c2e0 L"/home/michal/.confi
g/audacity/audacity.cfg.bkp", srcLen=46) at /usr/src/debug/wxwidgets/wxWidgets/src/common/strconv.cpp:307
#2  0x00007ffbc2112b33 in wxString::AsChar (this=0x7ffcb9e4ce10, conv=...) at /usr/src/debug/wxwidgets/wxWidgets/src/common/string.cpp:533
#3  0x00007ffbc20a2556 in wxString::AsCharBuf (this=0x7ffcb9e4ce10, conv=...) at /usr/src/debug/wxwidgets/wxWidgets/include/wx/string.h:3759
#4  0x00007ffbc20cea1c in wxString::mb_str (this=<optimized out>, conv=..., this=<optimized out>, conv=...) at /usr/src/debug/wxwidgets/wxWidgets/include/wx/string.h:1893
#5  wxString::fn_str (this=<optimized out>, this=<optimized out>) at /usr/src/debug/wxwidgets/wxWidgets/include/wx/string.h:1910
#6  wxStat (path=..., buf=0x7ffcb9e4ce40) at /usr/src/debug/wxwidgets/wxWidgets/include/wx/filefn.h:418
#7  (anonymous namespace)::DoStatAny (st=..., path=..., dereference=dereference@entry=true) at /usr/src/debug/wxwidgets/wxWidgets/src/common/filename.cpp:350
#8  0x00007ffbc20ceaf2 in (anonymous namespace)::StatAny (st=..., path=..., flags=1) at /usr/src/debug/wxwidgets/wxWidgets/src/common/filename.cpp:359
#9  (anonymous namespace)::wxFileSystemObjectExists (path=..., flags=1) at /usr/src/debug/wxwidgets/wxWidgets/src/common/filename.cpp:679
#10 0x000055b65305acf2 in AudacityFileConfig::Flush (this=0x55b65a78c2b0, bCurrentOnly=<optimized out>) at /usr/src/debug/audacity/audacity-Audacity-3.7.7/src/AudacityFileCon
fig.cpp:116
#11 0x00007ffbc38e2bd7 in SettingsWX::Flush() () from /usr/bin/../lib/audacity/lib-wx-init.so
#12 0x000055b65338cd20 in ToolManager::WriteConfig (this=this@entry=0x55b65bda5ed0) at /usr/src/debug/audacity/audacity-Audacity-3.7.7/src/toolbars/ToolManager.cpp:973
#13 0x000055b65338ce08 in ToolManager::Destroy (this=0x55b65bda5ed0) at /usr/src/debug/audacity/audacity-Audacity-3.7.7/src/toolbars/ToolManager.cpp:491
#14 0x000055b65338cff5 in ToolManager::~ToolManager (this=<optimized out>, this=<optimized out>) at /usr/src/debug/audacity/audacity-Audacity-3.7.7/src/toolbars/ToolManager.c
pp:512
#15 0x00007ffbc2507ca3 in AudacityProject::~AudacityProject() () from /usr/bin/../lib/audacity/lib-project.so
#16 0x00007ffbc2506742 in ?? () from /usr/bin/../lib/audacity/lib-project.so
#17 0x00007ffbc2506ab9 in ?? () from /usr/bin/../lib/audacity/lib-project.so
#18 0x00007ffbc0c40b0c in __cxa_finalize (d=0x7ffbc2513000) at cxa_finalize.c:97
#19 0x00007ffbc2506418 in ?? () from /usr/bin/../lib/audacity/lib-project.so
#20 0x00007ffcb9e4d350 in ?? ()
#21 0x00007ffbc3956012 in _dl_call_fini (closure_map=0x7ffbc2570050) at dl-call_fini.c:43

This topic was automatically closed after 30 days. New replies are no longer allowed.