tvtime crashed with SIGSEGV in __GI___strdup()

Bug #1215656 reported by Triniton Adam
24
This bug affects 3 people
Affects Status Importance Assigned to Milestone
tvtime (Debian)
Fix Released
Unknown
tvtime (Fedora)
Won't Fix
Undecided
tvtime (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

tvtime crashes with exit status 139.

The attachment [1] contains a testcase (under ./crash) crashing the
program. It ensures that you can easily reproduce the bug. Additionally,
under ./crash_info/, we include more information about the crash such as
a core dump, the dmesg generated by the crash, and its output.

ProblemType: Crash
DistroRelease: Ubuntu 13.10
Package: tvtime 1.0.2-10ubuntu8
ProcVersionSignature: Ubuntu 3.11.0-3.7-generic 3.11.0-rc6
Uname: Linux 3.11.0-3-generic x86_64
ApportVersion: 2.12.1-0ubuntu2
Architecture: amd64
CasperVersion: 1.336
Date: Thu Aug 22 22:18:12 2013
ExecutablePath: /usr/bin/tvtime
LiveMediaBuild: Ubuntu 13.10 "Saucy Salamander" - Alpha amd64 (20130822)
MarkForUpload: True
ProcCmdline: /usr/bin/tvtime --configf '`
ProcEnviron:

SegvAnalysis:
 Segfault happened at: 0x7f2a68f9bba1 <__strlen_sse2+17>: movdqu (%rdi),%xmm1
 PC (0x7f2a68f9bba1) ok
 source "(%rdi)" (0x00000000) not located in a known VMA region (needed readable region)!
 destination "%xmm1" ok
SegvReason: reading NULL VMA
Signal: 11
SourcePackage: tvtime
StacktraceTop:
 __GI___strdup (s=0x0) at strdup.c:41
 ?? ()
 ?? ()
 ?? ()
 ?? ()
Title: tvtime crashed with SIGSEGV in __GI___strdup()
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo

Revision history for this message
Triniton Adam (trinitonadam) wrote :
information type: Private → Public
Revision history for this message
Apport retracing service (apport) wrote :

StacktraceTop:
 __GI___strdup (s=0x0) at strdup.c:41
 configsave_open (config_filename=0x0) at tvtimeconf.c:595
 config_parse_tvtime_command_line (ct=ct@entry=0x2121180, argc=argc@entry=3, argv=argv@entry=0x7fff104df408) at tvtimeconf.c:1038
 tvtime_main (rtctimer=rtctimer@entry=0x0, read_stdin=read_stdin@entry=1, realtime=realtime@entry=0, argc=argc@entry=3, argv=argv@entry=0x7fff104df408) at tvtime.c:1196
 main (argc=3, argv=0x7fff104df408) at tvtime.c:2803

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 tvtime (Ubuntu):
importance: Undecided → Medium
tags: removed: need-amd64-retrace
Revision history for this message
In , triniton (triniton-redhat-bugs) wrote :

Created attachment 789404
[1]

Description of problem:

tvtime crashes with exit status 139.

The attachment [1] contains a testcase (under ./crash) crashing the
program. It ensures that you can easily reproduce the bug. Additionally,
under ./crash_info/, we include more information about the crash such as
a core dump, the dmesg generated by the crash, and its output.

Revision history for this message
In , triniton (triniton-redhat-bugs) wrote :

Created attachment 789405
StacktraceSource

Changed in tvtime (Debian):
status: Unknown → New
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in tvtime (Ubuntu):
status: New → Confirmed
Revision history for this message
In , Tomas (tomas-redhat-bugs) wrote :

Looks like a similar case to the bug #1000210: tvtime wants to read from user's home directory and expects the HOME environment variable to be set.

Changed in tvtime (Debian):
status: New → Fix Released
Revision history for this message
In , POJAR (pojar-redhat-bugs) wrote :

An workaround for this bug and bug #1000210:

In files src/tvtime-command.c
         src/tvtime-configure.c
         src/tvtime-scanner.c
         src/tvtime.c

add this lines after int main( int argc, char **argv ):

 int main( int argc, char **argv )
 {
+ if( !getenv( "HOME" ) ) {
+ fprintf( stderr, _("tvtime requires environment variable HOME to be set.\n") );
+ exit( 1 );
+ }
+
+ if( strlen( getenv( "HOME" ) ) > 230 ) {
+ fprintf( stderr, _("The environment variable HOME is too long.\n") );
+ exit( 1 );
+ }
+

Revision history for this message
Launchpad Janitor (janitor) wrote :
Download full text (3.2 KiB)

This bug was fixed in the package tvtime - 1.0.2-12.1ubuntu1

---------------
tvtime (1.0.2-12.1ubuntu1) utopic; urgency=medium

  * Merge with Debian unstable (LP: #1215656, #1215678, #1264960), remaining
    Ubuntu changes:
    - debian/patches/tvtime-1.0.1-savematte.patch
    - debian/patches/desktop_file.patch
    - debian/patches/tvtime-1.0.2-alsa.patch
    - debian/patches/tvtime-1.0.2-alsamixer.patch
    - debian/patches/pal_audio_mode_persistence.patch
    - debian/patches/tvtime-1.0.2-screensaver.patch
    - debian/patches/tvtime-1.0.2-videoinput.patch
    - debian/patches/tvtime-1.0.2-osd.patch
    - debian/patches/tvtime-1.0.2-usage.patch
    - debian/patches/tvtime-1.0.2-command.patch
    - debian/patches/tvtime-1.0.2-cursor.patch
    - debian/patches/tvtime-1.0.2-metacity.patch
    - debian/patches/tvtime-1.0.2-x_size_hint.patch
    - debian/patches/tvtime-1.0.2-menu.patch
    - debian/patches/tvtime-1.0.2-focus_mouse.patch
    - debian/patches/tvtime-1.0.2-wmicon.patch
    - debian/patches/tvtime-1.0.2-tvtimeosd.patch
    - debian/patches/tvtime-1.0.2-cpuid.patch
    - debian/patches/tvtime-1.0.2-xmltv.patch
    - debian/patches/tvtime-1.0.2-vbidata.patch
    - debian/patches/tvtime-1.0.2-verbose.patch
    - debian/patches/tvtime-1.0.2-vbiscreen.patch
    - debian/patches/tvtime-1.0.2-closed_caption.patch
    - debian/patches/tvtime-1.0.2-vbi.patch
    - debian/patches/tvtime-1.0.2-xinerama.patch
    - debian/patches/tvtime-1.0.2-volume.patch
    - debian/patches/tvtime-1.0.2-xcommon.patch
    - debian/patches/tvtime-1.0.2-station_remap.patch
    - debian/patches/tvtime-1.0.2-channel_list.patch
    - debian/patches/tvtime-1.0.2_cppcheck.patch
    - debian/patches/tvtime-1.0.2-build.patch
    - debian/patches/tvtime-1.0.2-wmpid.patch
    - debian/patches/tvtime-1.0.2-libsupc++.patch
    - debian/control: Build-Depends on autoconf, automake, autopoint, libtool
      libasound2-dev and libxss instead of libxtst.
    - debian/rules: Call autoreconf to regenerate the configure script.
    - debian/source/format: Added file.
    Dropped Debian changes:
    - debian/control: Suggests: oss-compat.
    - debian/control: Build-Depends chrpath.
    - debian/rules: Fixed binary-or-shlib-defines-rpath.
  * debian/patches/tvtime-1.0.2-device.patch: Add feature to auto detect video
    and vbi devices. (LP: #153801)
  * debian/patches/tvtime-1.0.2-videodev.patch: Get rid of private versions of
    videodev.h and videodev2.h
  * Updated debian/patches/tvtime-1.0.2-alsa.patch: Improved alsa audio
    streaming code. (LP: #472770, #963036)
  * Removed debian/patches/tvtime-1.0.2-output_volume.patch
  * debian/rules: Make autoreconf not call autopoint since we ship a patch for
    po/Makefile.in.in
  * debian/control: Build-Depends on libv4l-dev.

tvtime (1.0.2-12.1) unstable; urgency=medium

  * Non-maintainer upload.
  * Update home.diff patch. (Closes: #732207)

tvtime (1.0.2-12) unstable; urgency=low

  * QA upload, orphaning this package, see #728576.

tvtime (1.0.2-11) unstable; urgency=low

  * Moved default.tvtime.xml from usr/share/doc/tvtime/examples to
    usr/share/tvtime. Closes: #709955.
  * debian/patches/home.diff: Added. Closes:...

Read more...

Changed in tvtime (Ubuntu):
status: Confirmed → Fix Released
Changed in tvtime (Fedora):
importance: Unknown → Undecided
status: Unknown → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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