tvtime crashed with SIGSEGV in videoinput_get_audio

Bug #630793 reported by Mikhail Gavrilov
222
This bug affects 11 people
Affects Status Importance Assigned to Milestone
tvtime (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: tvtime

Crash on program start

ProblemType: Crash
DistroRelease: Ubuntu 10.10
Package: tvtime 1.0.2-6.1ubuntu1
ProcVersionSignature: Ubuntu 2.6.35-19.28-generic-pae 2.6.35.3
Uname: Linux 2.6.35-19-generic-pae i686
NonfreeKernelModules: nvidia
Architecture: i386
Date: Sun Sep 5 18:07:16 2010
ExecutablePath: /usr/bin/tvtime
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Alpha i386 (20100803.1)
ProcCmdline: tvtime
ProcEnviron:
 LANG=ru_RU.utf8
 SHELL=/bin/bash
SegvAnalysis:
 Segfault happened at: 0x804cf64: mov 0x6b0(%eax),%eax
 PC (0x0804cf64) ok
 source "0x6b0(%eax)" (0x000006b0) not located in a known VMA region (needed readable region)!
 destination "%eax" ok
SegvReason: reading NULL VMA
Signal: 11
SourcePackage: tvtime
Stacktrace:
 #0 0x0804cf64 in ?? ()
 No symbol table info available.
StacktraceTop: ?? ()
ThreadStacktrace:
 .
 Thread 1 (Thread 20742):
 #0 0x0804cf64 in ?? ()
 No symbol table info available.
Title: tvtime crashed with SIGSEGV
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare

Related branches

Revision history for this message
Mikhail Gavrilov (mikegav) wrote :
visibility: private → public
Revision history for this message
Chris Sherlock (ta-bu-shi-da-yu) wrote :

I don't think it's wise to be showing a CoreDump.gz file in public view...

visibility: public → private
Revision history for this message
Apport retracing service (apport) wrote :

StacktraceTop:
 videoinput_get_audio (vidin=0x0) at videoinput.c:240
 tvtime_main (rtctimer=0x0, read_stdin=1, realtime=0,
 main (argc=1, argv=0xbfe1a534) at tvtime.c:2751

Revision history for this message
Apport retracing service (apport) wrote : Stacktrace.txt
Revision history for this message
Apport retracing service (apport) wrote : ThreadStacktrace.txt
Changed in tvtime (Ubuntu):
importance: Undecided → Medium
tags: removed: need-i386-retrace
Daniel Hahler (blueyed)
visibility: private → public
Changed in tvtime (Ubuntu):
status: New → Triaged
importance: Medium → High
summary: - tvtime crashed with SIGSEGV
+ tvtime crashed with SIGSEGV in videoinput_get_audio
Revision history for this message
Eliah Kagan (degeneracypressure) wrote :

I'm able to reproduce this bug on a Natty i386 system with tvtime 1.0.2-6.1ubuntu2. It occurs immediately after launching tvtime, though the tvtime window is drawn first. My machine does not actually have a TV tuner--I was only installing and running tvtime in order to find this bug, while looking into some of the issues raised in https://answers.launchpad.net/ubuntu/+source/tvtime/+question/152673. So perhaps the absence of a TV tuner (or a TV tuner that is recognized by the system or by tvtime) is related. I ran tvtime from the Terminal and got this output:

Running tvtime 1.0.2.
Reading configuration from /etc/tvtime/tvtime.xml
I/O warning : failed to load external entity "/home/ek/.tvtime/tvtime.xml"
I/O error : Permission denied
I/O error : Permission denied
Cannot change owner of /home/ek/.tvtime/tvtime.xml: Permission denied.
videoinput: Cannot open capture device /dev/video0: No such file or directory
mixer: find error: Success
mixer: Can't open mixer default, mixer volume and mute unavailable.
mixer: Can't open device default/Line, mixer volume and mute unavailable.
I/O error : Permission denied
I/O error : Permission denied
Segmentation fault (core dumped)

Since duplicates include natty as well as amd64, I'm adding those tags.

By the way, does anybody know why this bug is rated High importance in Ubuntu? Other bugs that seem much more important to Ubuntu have been rated much lower. Does this bug render tvtime totally nonfunctional for all users all of the time, or something?

tags: added: amd64 natty
Revision history for this message
Daniel Hahler (blueyed) wrote :

My impression has been that it would crash all of the time, for a lot of users (including me).
However, it is working for me currently (despite me not using it because of the signal being too weak/bad).

Changed in tvtime (Ubuntu):
importance: High → Medium
Revision history for this message
FeNUMe (fenumed) wrote :

This bug occurs when tuner modules don't load right. For me it was solved when i rearranged tuner-card to second PCI slot

Revision history for this message
MarkusRechberger (mrechberger) wrote :

--- tvtime.c.old 2011-06-28 11:02:53.000000000 +0200
+++ tvtime.c 2011-06-28 11:01:31.000000000 +0200
@@ -2071,7 +2071,7 @@
             if( osd ) tvtime_osd_signal_present( osd, 1 );
         } else if( tuner_state == TUNER_STATE_NO_SIGNAL ) {
             if( osd ) tvtime_osd_signal_present( osd, 0 );
- if (videoinput_get_audio(vidin)) {
+ if (vidin && videoinput_get_audio(vidin)) {
                     alsa_join_threaded_loop(videoinput_get_audio(vidin));
                     alsa_close(videoinput_get_audio_p(vidin));
                     videoinput_set_audio(vidin, NULL);

please apply this bugfix asap.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package tvtime - 1.0.2-6.1ubuntu3

---------------
tvtime (1.0.2-6.1ubuntu3) oneiric; urgency=low

  * debian/patches/tvtime-1.0.2-videoinput_get_audio-check-vidin.patch:
    Guard against vidin being NULL, which was causing a crash. Patch
    from Markus Rechberger, thanks! (LP: #509314, #630793)
 -- Daniel T Chen <email address hidden> Wed, 29 Jun 2011 02:03:59 -0600

Changed in tvtime (Ubuntu):
status: Triaged → Fix Released
tags: added: bugpattern-needed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

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