fldigi crashed with SIGSEGV in strcpy()

Bug #1058298 reported by Frank
14
This bug affects 1 person
Affects Status Importance Assigned to Milestone
fldigi (Ubuntu)
Fix Released
Medium
Kamal Mostafa

Bug Description

When adjusting transmit audio levels in fldigi I get a system crash. This has happened 5 times in a row.

ProblemType: Crash
DistroRelease: Ubuntu 12.10
Package: fldigi 3.21.50-1
ProcVersionSignature: Ubuntu 3.5.0-15.23-generic 3.5.4
Uname: Linux 3.5.0-15-generic i686
ApportVersion: 2.5.3-0ubuntu1
Architecture: i386
Date: Fri Sep 28 15:17:47 2012
ExecutablePath: /usr/bin/fldigi
InstallationMedia: Kubuntu 11.10 "Oneiric Ocelot" - Release i386 (20111012)
ProcCmdline: /usr/bin/fldigi
ProcEnviron:
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SegvAnalysis:
 Segfault happened at: 0xb6ef2ef4: mov 0x8(%edx),%edx
 PC (0xb6ef2ef4) ok
 source "0x8(%edx)" (0x8e6f7f18) not located in a known VMA region (needed readable region)!
 destination "%edx" ok
SegvReason: reading unknown VMA
Signal: 11
SourcePackage: fldigi
StacktraceTop:
 ?? ()
 ?? ()
 ?? ()
 Fl_Widget::do_callback(Fl_Widget*, void*) () from /usr/lib/i386-linux-gnu/libfltk.so.1.3
 Fl_Button::handle(int) () from /usr/lib/i386-linux-gnu/libfltk.so.1.3
Title: fldigi crashed with SIGSEGV in Fl_Widget::do_callback()
UpgradeStatus: Upgraded to quantal on 2012-09-28 (0 days ago)
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare
XsessionErrors:
 (gst-plugin-scanner:2091): GLib-CRITICAL **: g_strv_length: assertion `str_array != NULL' failed
 (dropbox:2088): Gtk-WARNING **: /home/frank/.dropbox-dist/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /usr/lib/i386-linux-gnu/gtk-2.0/2.10.0/engines/liboxygen-gtk.so)
 (dropbox:2088): Gtk-WARNING **: /home/frank/.dropbox-dist/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /usr/lib/i386-linux-gnu/gtk-2.0/2.10.0/engines/liboxygen-gtk.so)

Related branches

Revision history for this message
Frank (fgrantham) wrote :
Revision history for this message
Apport retracing service (apport) wrote :

StacktraceTop:
 strcpy (__src=<error reading variable: Cannot access memory at address 0xc3316a28>, __dest=0xbff56a8c "Vol") at /usr/include/i386-linux-gnu/bits/string3.h:105
 MixerOSS::InputSourceNbr (this=0x87b5978, source=0x822286b "Mic") at soundcard/mixer.cxx:323
 setMixerInput (dev=2) at dialogs/fl_digi.cxx:6447
 cb_btnMicIn (o=0x874db48) at dialogs/confdialog.cxx:2699
 Fl_Widget::do_callback (this=0x874db48, o=0x874db48, arg=0x0) at Fl_Widget.cxx:337

Revision history for this message
Apport retracing service (apport) wrote : Stacktrace.txt
Revision history for this message
Apport retracing service (apport) wrote : StacktraceSource.txt
Revision history for this message
Apport retracing service (apport) wrote : ThreadStacktrace.txt
Changed in fldigi (Ubuntu):
importance: Undecided → Medium
summary: - fldigi crashed with SIGSEGV in Fl_Widget::do_callback()
+ fldigi crashed with SIGSEGV in strcpy()
tags: removed: need-i386-retrace
visibility: private → public
Revision history for this message
Dave Gilbert (ubuntu-treblig) wrote :

Hi Frank,
  Can you confirm for me how you've got the audio on fldigi set up - are you telling it to use OSS or something else for the sound?
If you start fldigi in a terminal does it print any other diagnostics before it crashes?

It might also be good to follow the instructions here:
https://wiki.ubuntu.com/Audio/AlsaInfo

to get some info on your sound system.

Dave

Revision history for this message
Kamal Mostafa (kamalmostafa) wrote :

Thanks for reporting this, Frank. As Dave has correctly surmised, you appear to have at least one of fldigi's configuration settings set to use the old OSS sound system. OSS is deprecated -- you should be using PulseAudio instead -- but regardless of that, you have identified a bug in fldigi.

I can reproduce the crash also, by trying to enable OSS mixer control in fldigi as follows:

1. From the fldigi menu, select Configure-->Sound Card-->Mixer to bring up the OSS mixer panel.
2. Enable the "Manage mixer" checkbox.
3. Click "Mic in" to try to enable that selection (alternately click "Line in" to disable, then click it again to try to re-enable it).

I've verified that this results in the same crash you're getting -- I'll work on fixing the crash.

However, Frank, you should just stop trying to use the OSS Mixer control. Please do the following -- it should let you avoid the crash:

1. On the Configure-->Sound Card-->Mixer panel, uncheck the "Manage mixer" option.
2. On the Configure-->Sound Card-->Devices panel, select "PulseAudio".

Changed in fldigi (Ubuntu):
assignee: nobody → Kamal Mostafa (kamalmostafa)
status: New → Confirmed
Changed in fldigi (Ubuntu):
status: Confirmed → In Progress
Revision history for this message
Kamal Mostafa (kamalmostafa) wrote :

I've fixed the crash in the upstream fldigi source, by this patch:
http://git.berlios.de/cgi-bin/gitweb.cgi?p=fldigi;a=commitdiff;h=e203c4e520583a8bd3460604cbe5c642f1d71bee

This fix will appear in the next released version of fldigi (versions 3.21.53 or higher). Thanks again for reporting it, Frank.

Changed in fldigi (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package fldigi - 3.21.56-1

---------------
fldigi (3.21.56-1) unstable; urgency=low

  * New upstream release

 -- Kamal Mostafa <email address hidden> Wed, 10 Oct 2012 06:50:38 -0700

Changed in fldigi (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.