Fedora 19, 2.0.3 free, non-free Segfaults using Equalization

Help for Audacity on GNU/Linux.
Forum rules
ImageThis forum is for Audacity on GNU/Linux.
Please state:
  • which version of Linux you are using,
  • the exact three-section version number of Audacity from Help menu > About Audacity,
  • whether you installed your distribution's release, PPA version, or compiled Audacity from source code.

Audacity 1.2.x and 1.3.x are obsolete and no longer supported. If you still have those versions, please upgrade (see https://www.audacityteam.org/download/).
The old forums for those versions are now closed, but you can still read the archives of the 1.2.x and 1.3.x forums.
awfar
Posts: 4
Joined: Mon Jul 22, 2013 12:36 pm
Operating System: Please select

Fedora 19, 2.0.3 free, non-free Segfaults using Equalization

Post by awfar » Mon Jul 22, 2013 2:49 pm

Hello; using Fedora 19 x64, recent install, May 2013 2.0.3 from repos.

Both free and non-free Audacity segfault when using Equalization function; other functions appear to work.

Per other reports, I visually checked, removed swapped in known good /usr/share/audacity/EQDefaultCurves.xml. No change.

Strace shows little except for opening font files before SIGSEGV.

Thank You.

awfar
Posts: 4
Joined: Mon Jul 22, 2013 12:36 pm
Operating System: Please select

Re: Fedora 19, 2.0.3 free, non-free Segfaults using Equaliza

Post by awfar » Mon Jul 22, 2013 6:17 pm

Looking further, I am adding this partial backtrace at the point of segfault...

#0 Add (userData=0x0, border=0, flag=10496, proportion=0, window=0x195ba60, this=0x0) at /usr/include/wx-2.8/wx/sizer.h:946
#1 EqualizationDialog::MakeEqualizationDialog ([email protected]=0x7fffffffc260) at effects/Equalization.cpp:1214
#2 0x00000000006513be in EqualizationDialog::EqualizationDialog (this=0x7fffffffc260, effect=0x1260760, loFreq=20, hiFreq=22050,
filterFuncR=0x12975e0, filterFuncI=0x12a75f0, windowSize=16384, curveName=..., disallowCustom=false, parent=0x1261410, id=-1, title=...,
position=..., size=..., style=536877056) at effects/Equalization.cpp:949
#3 0x000000000065165c in EffectEqualization::PromptUser (this=0x1260760) at effects/Equalization.cpp:279
<...>

Thank You

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: Fedora 19, 2.0.3 free, non-free Segfaults using Equaliza

Post by Gale Andrews » Mon Jul 22, 2013 10:39 pm

Try building the latest 2.0.4 alpha development code http://audacityteam.org/community/developers#svn .

I sometimes got segfaults using Save/Manage Curves in EQ on Ubuntu until we fixed a bug in EQ sometime after 2.0.3 release.

If the current code has the same problem, please provide steps to reproduce and the complete backtrace (wrap it inside code tags using the button in the message edit window).



Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

sunset06
Posts: 7
Joined: Sat Dec 05, 2009 11:52 pm
Operating System: OS X 10.6 Snow Leopard or earlier

Re: Fedora 19, 2.0.3 free, non-free Segfaults using Equaliza

Post by sunset06 » Sun Sep 15, 2013 9:31 am

I can confirm segmentation faults occurring on:
- Fedora 19
- both audacity-2.0.3-1.x86_64 and audacity-2.0.4-1.x86_64
- audacity-freeworld-2.0.4-1.x86_64

Reproducer:
Start audacity
Generate|Sine| defaults 30 seconds long.
Effect|Equalizer

What happens:
audacity disappears.
when run from command prompt:

Code: Select all

Program received signal SIGSEGV, Segmentation fault.
0x0000000000655e27 in EqualizationDialog::MakeEqualizationDialog() ()
Under gdb:

Code: Select all

(gdb) thread apply all bt

Thread 10 (Thread 0x7fffe9ed3700 (LWP 13251)):
#0  0x0000003f73a0e80d in nanosleep () at ../sysdeps/unix/syscall-template.S:81
#1  0x0000003f7beedc1c in wxMicroSleep(unsigned long) ()
   from /lib64/libwx_baseu-2.8.so.0
#2  0x000000000052c41c in AudioThread::Entry() ()
#3  0x0000003f7bee9573 in wxThreadInternal::PthreadStart(wxThread*) ()
   from /lib64/libwx_baseu-2.8.so.0
#4  0x0000003f73a07c53 in start_thread (arg=0x7fffe9ed3700)
    at pthread_create.c:308
#5  0x0000003f732f5d3d in clone ()
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 2 (Thread 0x7fffec635700 (LWP 13242)):
#0  0x0000003f732eb76d in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x0000003f75a480f4 in g_main_context_poll (priority=2147483647, n_fds=5, 
    fds=0x7fffe4009e30, timeout=-1, context=0xe27ac0) at gmain.c:3995
#2  g_main_context_iterate (context=0xe27ac0, [email protected]=1, 
    [email protected]=1, self=<optimized out>) at gmain.c:3696
#3  0x0000003f75a4855a in g_main_loop_run (loop=0xe27a50) at gmain.c:3895
#4  0x0000003f786c6d66 in gdbus_shared_thread_func (user_data=0xe27a90)
    at gdbusprivate.c:278
#5  0x0000003f75a6c185 in g_thread_proxy (data=0xe9d370) at gthread.c:798
#6  0x0000003f73a07c53 in start_thread (arg=0x7fffec635700)
    at pthread_create.c:308
#7  0x0000003f732f5d3d in clone ()
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 1 (Thread 0x7ffff7f9aac0 (LWP 13235)):
#0  0x0000000000655e27 in EqualizationDialog::MakeEqualizationDialog() ()
#1  0x00000000006601fe in EqualizationDialog::EqualizationDialog(EffectEqualization*, double, double, float*, float*, long, wxString, bool, wxWindow*, int, wxString const&, wxPoint const&, wxSize const&, long) ()
#2  0x000000000066049c in EffectEqualization::PromptUser() ()
#3  0x000000000062a7e9 in Effect::DoEffect(wxWindow*, int, double, TrackList*, TrackFactory*, double*, double*, wxString) ()
#4  0x0000000000586103 in AudacityProject::OnEffect(int, Effect*, wxString, bool) ()
#5  0x00000000005867cb in AudacityProject::OnEffect(int, int) ()
#6  0x0000000000619f48 in CommandManager::HandleCommandEntry(CommandListEntry*, unsigned int, unsigned int) ()
#7  0x0000000000596d17 in AudacityProject::OnMenu(wxCommandEvent&) ()
#8  0x0000003f7beea676 in wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) () from /lib64/libwx_baseu-2.8.so.0
#9  0x0000003f7beea71b in wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) () from /lib64/libwx_baseu-2.8.so.0
#10 0x0000003f7beeaa87 in wxEvtHandler::ProcessEvent(wxEvent&) ()
   from /lib64/libwx_baseu-2.8.so.0
#11 0x0000003eefa5b7f5 in gtk_menu_clicked_callback ()
   from /lib64/libwx_gtk2u_core-2.8.so.0
#12 0x0000003f7720fa28 in g_closure_invoke (closure=0x1229c70, 
    [email protected]=0x0, n_param_values=1, 
    [email protected]=0x7fffffffd400, 
    [email protected]=0x7fffffffd3a0) at gclosure.c:777
#13 0x0000003f77220a3d in signal_emit_unlocked_R ([email protected]=0xe31000, 
    [email protected]=0, [email protected]=0x12280c0, 
    [email protected]=0x0, 
    [email protected]=0x7fffffffd400)
    at gsignal.c:3584
#14 0x0000003f77228829 in g_signal_emit_valist (instance=<optimized out>, 
    signal_id=<optimized out>, detail=<optimized out>, 
    [email protected]=0x7fffffffd588) at gsignal.c:3328
#15 0x0000003f77228a72 in g_signal_emit ([email protected]=0x12280c0, 
    signal_id=<optimized out>, [email protected]=0) at gsignal.c:3384
#16 0x0000003eede6913c in IA__gtk_widget_activate (
    [email protected]=0x12280c0) at gtkwidget.c:5048
#17 0x0000003eedd572ed in IA__gtk_menu_shell_activate_item (
    menu_shell=0x120d250, menu_item=0x12280c0, 
    force_deactivate=<optimized out>) at gtkmenushell.c:1303
#18 0x0000003eedd5769c in gtk_menu_shell_button_release (widget=0x120d250, 
    event=<optimized out>) at gtkmenushell.c:730
#19 0x0000003eedd426ec in _gtk_marshal_BOOLEAN__BOXED (closure=0xe21fb0, 
    return_value=0x7fffffffd840, n_param_values=<optimized out>, 
    param_values=0x7fffffffd8f0, invocation_hint=<optimized out>, 
    marshal_data=<optimized out>) at gtkmarshalers.c:86
#20 0x0000003f7720fa28 in g_closure_invoke ([email protected]=0xe21fb0, 
    [email protected]=0x7fffffffd840, n_param_values=2, 
    [email protected]=0x7fffffffd8f0, 
    [email protected]=0x7fffffffd890) at gclosure.c:777
#21 0x0000003f772207fb in signal_emit_unlocked_R ([email protected]=0xe22000, 
    [email protected]=0, [email protected]=0x120d250, 
    [email protected]=0x7fffffffd9c0, 
    [email protected]=0x7fffffffd8f0)
    at gsignal.c:3622
#22 0x0000003f77228462 in g_signal_emit_valist (instance=<optimized out>, 
    signal_id=<optimized out>, detail=<optimized out>, 
    [email protected]=0x7fffffffda88) at gsignal.c:3338
#23 0x0000003f77228a72 in g_signal_emit ([email protected]=0x120d250, 
    signal_id=<optimized out>, [email protected]=0) at gsignal.c:3384
#24 0x0000003eede6a474 in gtk_widget_event_internal (
    [email protected]=0x120d250, [email protected]=0x1396ee0)
    at gtkwidget.c:5017
#25 0x0000003eede6a749 in IA__gtk_widget_event ([email protected]=0x120d250, 
    [email protected]=0x1396ee0) at gtkwidget.c:4814
#26 0x0000003eedd40934 in IA__gtk_propagate_event (widget=0x120d250, 
    event=0x1396ee0) at gtkmain.c:2490
#27 0x0000003eedd40cfb in IA__gtk_main_do_event (event=0x1396ee0)
    at gtkmain.c:1685
#28 0x0000003eee45e2dc in gdk_event_dispatch ([email protected]=0xdef340, 
    callback=<optimized out>, user_data=<optimized out>)
    at gdkevents-x11.c:2403
#29 0x0000003f75a47e06 in g_main_dispatch (context=0xdef430) at gmain.c:3054
#30 g_main_context_dispatch ([email protected]=0xdef430) at gmain.c:3630
#31 0x0000003f75a48158 in g_main_context_iterate (context=0xdef430, 
    [email protected]=1, [email protected]=1, self=<optimized out>)
    at gmain.c:3701
#32 0x0000003f75a4855a in g_main_loop_run (loop=0x12ec7e0) at gmain.c:3895
#33 0x0000003eedd3fdb7 in IA__gtk_main () at gtkmain.c:1257
#34 0x0000003eef9f624a in wxEventLoop::Run() ()
   from /lib64/libwx_gtk2u_core-2.8.so.0
#35 0x0000003eefa70e4c in wxAppBase::MainLoop() ()
   from /lib64/libwx_gtk2u_core-2.8.so.0
#36 0x0000003f7be9722d in wxEntry(int&, wchar_t**) ()
   from /lib64/libwx_baseu-2.8.so.0
#37 0x0000000000500042 in main ()
At this point, audacity is not playing/recording audio, so seems UI / processing related.

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: Fedora 19, 2.0.3 free, non-free Segfaults using Equaliza

Post by Gale Andrews » Sun Sep 15, 2013 12:48 pm

This does not happen with Audacity sources on Ubuntu.

Please try building Audacity from our source http://audacityteam.org/download/source .

We are not responsible for Fedora builds, so if their builds segfault but Audacity source doesn't, then you must complain to Fedora. Have you looked at the Fedora bug tracker for other reports?


Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

floft
Posts: 8
Joined: Sun Sep 15, 2013 9:25 pm
Operating System: Please select

Re: Fedora 19, 2.0.3 free, non-free Segfaults using Equaliza

Post by floft » Sun Sep 15, 2013 9:36 pm

This also happens under Arch Linux with the Arch 2.0.4 package and when building revision 12559 from the SVN.

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: Fedora 19, 2.0.3 free, non-free Segfaults using Equaliza

Post by Gale Andrews » Mon Sep 16, 2013 12:03 am

floft wrote:This also happens under Arch Linux with the Arch 2.0.4 package and when building revision 12559 from the SVN.
OK, thanks, I am much more interested if it occurs in the latest code.

Is your computer 64-bit, like the others?

Can you and others post your EQCurves.xml from ~/.audacity-data/ ?

Then I'll try it on 64-bit Ubuntu with default curves and any others that are posted.


Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

floft
Posts: 8
Joined: Sun Sep 15, 2013 9:25 pm
Operating System: Please select

Re: Fedora 19, 2.0.3 free, non-free Segfaults using Equaliza

Post by floft » Mon Sep 16, 2013 5:52 am

Gale Andrews wrote:
floft wrote:This also happens under Arch Linux with the Arch 2.0.4 package and when building revision 12559 from the SVN.
OK, thanks, I am much more interested if it occurs in the latest code.

Is your computer 64-bit, like the others?

Can you and others post your EQCurves.xml from ~/.audacity-data/ ?

Then I'll try it on 64-bit Ubuntu with default curves and any others that are posted.


Gale
Yes, I'm also using 64-bit. Here's ~/.audacity-data/EQCurves.xml: http://sprunge.us/jLHG.

floft
Posts: 8
Joined: Sun Sep 15, 2013 9:25 pm
Operating System: Please select

Re: Fedora 19, 2.0.3 free, non-free Segfaults using Equaliza

Post by floft » Mon Sep 16, 2013 6:58 am

So, here's a backtrace from SVN 12561 when the binary isn't stripped. I have wxgtk 2.8.12.1, if this matters.

Code: Select all

Program received signal SIGSEGV, Segmentation fault.
Add (userData=0x0, border=0, flag=10496, proportion=0, window=0x16e44f0, this=0x0) at /usr/include/wx-2.8/wx/sizer.h:946
946	    return Add( new wxSizerItem( window, proportion, flag, border, userData ) );
(gdb) bt
#0  Add (userData=0x0, border=0, flag=10496, proportion=0, window=0x16e44f0, this=0x0) at /usr/include/wx-2.8/wx/sizer.h:946
#1  EqualizationDialog::MakeEqualizationDialog ([email protected]=0x7fffffffbc80) at effects/Equalization.cpp:1205
#2  0x0000000000662e2c in EqualizationDialog::EqualizationDialog (this=0x7fffffffbc80, effect=0xff9cc0, loFreq=20, hiFreq=24000, 
    filterFuncR=0x1022450, filterFuncI=0x1032460, windowSize=16384, curveName=..., disallowCustom=false, parent=0x10b0ef0, id=-1, title=..., 
    position=..., size=..., style=536877056) at effects/Equalization.cpp:949
#3  0x00000000006630d9 in EffectEqualization::PromptUser (this=0xff9cc0) at effects/Equalization.cpp:279
#4  0x000000000062b801 in Effect::DoEffect ([email protected]=0xff9cc0, [email protected]=0x10b0ef0, [email protected]=38, 
    projectRate=<optimized out>, list=<optimized out>, factory=<optimized out>, [email protected]=0x10b1230, [email protected]=0x10b1238, params=...)
    at effects/Effect.cpp:134
#5  0x00000000005803ba in AudacityProject::OnEffect ([email protected]=0x10b0ef0, [email protected]=38, [email protected]=0xff9cc0, params=..., 
    [email protected]=true) at Menus.cpp:2723
#6  0x0000000000580afb in AudacityProject::OnEffect (this=0x10b0ef0, type=38, index=<optimized out>) at Menus.cpp:2669
#7  0x000000000061a4f8 in CommandManager::HandleCommandEntry (this=<optimized out>, entry=0x12fe8e0, flags=108051119, mask=<optimized out>)
    at commands/CommandManager.cpp:1015
#8  0x0000000000591e07 in AudacityProject::OnMenu (this=0x10b0ef0, event=...) at Project.cpp:1751
#9  0x00007ffff6daa646 in wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) ()
   from /usr/lib/libwx_baseu-2.8.so.0
#10 0x00007ffff6daa6eb in wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) () from /usr/lib/libwx_baseu-2.8.so.0
#11 0x00007ffff6daaa57 in wxEvtHandler::ProcessEvent(wxEvent&) () from /usr/lib/libwx_baseu-2.8.so.0
#12 0x00007ffff7495b15 in ?? () from /usr/lib/libwx_gtk2u_core-2.8.so.0
#13 0x00007ffff3d98458 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#14 0x00007ffff3da940d in ?? () from /usr/lib/libgobject-2.0.so.0
#15 0x00007ffff3db1219 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#16 0x00007ffff3db1462 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#17 0x00007ffff44c489c in gtk_widget_activate () from /usr/lib/libgtk-x11-2.0.so.0
#18 0x00007ffff43c7a4d in gtk_menu_shell_activate_item () from /usr/lib/libgtk-x11-2.0.so.0
#19 0x00007ffff43c7d9c in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#20 0x00007ffff43b6345 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#21 0x00007ffff3d98458 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#22 0x00007ffff3da91cb in ?? () from /usr/lib/libgobject-2.0.so.0
#23 0x00007ffff3db0e52 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#24 0x00007ffff3db1462 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#25 0x00007ffff44c5a14 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#26 0x00007ffff43b4af4 in gtk_propagate_event () from /usr/lib/libgtk-x11-2.0.so.0
#27 0x00007ffff43b4eab in gtk_main_do_event () from /usr/lib/libgtk-x11-2.0.so.0
#28 0x00007ffff4030b1c in ?? () from /usr/lib/libgdk-x11-2.0.so.0
#29 0x00007ffff3ad1d96 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#30 0x00007ffff3ad20e8 in ?? () from /usr/lib/libglib-2.0.so.0
#31 0x00007ffff3ad24ea in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#32 0x00007ffff43b3f97 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#33 0x00007ffff7435fda in wxEventLoop::Run() () from /usr/lib/libwx_gtk2u_core-2.8.so.0
#34 0x00007ffff74ab15c in wxAppBase::MainLoop() () from /usr/lib/libwx_gtk2u_core-2.8.so.0
#35 0x00007ffff6d57e9d in wxEntry(int&, wchar_t**) () from /usr/lib/libwx_baseu-2.8.so.0
#36 0x00000000004fa7d2 in main (argc=1, argv=<optimized out>) at AudacityApp.cpp:645
It appears to have the same issue when I remove ~/.audacity-data. As a test, when I change if( i == NUMBER_OF_BANDS ) in src/effects/Equalization.cpp to if( i == NUMBER_OF_BANDS-1 ), EQ opens without issue. At i==46, m_sliders[46] is null, which seems somewhat odd along with the "this=0x0" in the backtrace.

And, sorry for the double post...

sunset06
Posts: 7
Joined: Sat Dec 05, 2009 11:52 pm
Operating System: OS X 10.6 Snow Leopard or earlier

Re: Fedora 19, 2.0.3 free, non-free Segfaults using Equaliza

Post by sunset06 » Mon Sep 16, 2013 12:36 pm

Hey Gale, it looks like Arch is not applying any patches that I (as one of the fedora/rpmfusion package maintainers) am using in the fedora package.

Bugs on Fedora:
https://bugzilla.redhat.com/show_bug.cgi?id=987837
https://bugzilla.redhat.com/show_bug.cgi?id=999145 captured by abrt with backtrace.

Biggest changes in fedora package appear to be: enabling libsoxr, using system portaudio, changes to use ffmpeg-compat. Do any of these interact with Equalizer effect ?
Attachments
EQCurves.xml
/home/davidt/.audacity-data/EQCurves.xml mod date: Sun, Oct 14 2012 16:31:25
(4.54 KiB) Downloaded 84 times

Post Reply