tvtime-scanner crashed with SIGSEGV in strncpy()

Bug #1215678 reported by Triniton Adam
20
This bug affects 2 people
Affects Status Importance Assigned to Milestone
tvtime (Debian)
Fix Released
Unknown
tvtime (Fedora)
Fix Released
Undecided
tvtime (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

tvtime-scanner 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: Fri Aug 23 00:13:04 2013
ExecutablePath: /usr/bin/tvtime-scanner
LiveMediaBuild: Ubuntu 13.10 "Saucy Salamander" - Alpha amd64 (20130822)
MarkForUpload: True
ProcEnviron:

SegvAnalysis:
 Segfault happened at: 0x7ff01915f82c <__strncpy_ssse3+28>: cmpb $0x0,(%rcx)
 PC (0x7ff01915f82c) ok
 source "$0x0" ok
 destination "(%rcx)" (0x00000000) not located in a known VMA region (needed writable region)!
SegvReason: writing NULL VMA
Signal: 11
SourcePackage: tvtime
StacktraceTop:
 ?? ()
 ?? ()
 __libc_start_main (main=0x401fa0, argc=3, ubp_av=0x7fffcbcda988, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffcbcda978) at libc-start.c:260
 ?? ()
Title: tvtime-scanner crashed with SIGSEGV in __libc_start_main()
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:
 strncpy (__len=235, __src=<optimized out>, __dest=0xf47db8 "") at /usr/include/x86_64-linux-gnu/bits/string3.h:120
 station_new (norm=0x411485 "NTSC", table=table@entry=0x412eed "Custom", us_cable_mode=us_cable_mode@entry=0, verbose=verbose@entry=0) at station.c:367
 main (argc=<optimized out>, argv=0x7fffcbcda988) at tvtime-scanner.c:95

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
summary: - tvtime-scanner crashed with SIGSEGV in __libc_start_main()
+ tvtime-scanner crashed with SIGSEGV in strncpy()
tags: removed: need-amd64-retrace
Revision history for this message
In , triniton (triniton-redhat-bugs) wrote :

Created attachment 789406
[1]

Description of problem:

tvtime-scanner 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 789407
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
Pojar Geo (geoubuntu) wrote :

This seems to be the problem:
If env HOME unset(not empty), getenv("HOME") return NULL pointer and then causes strncpy() error.

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

This seems to be the problem:
If env HOME unset(not empty), getenv("HOME") return NULL pointer and then causes strncpy() error.

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

Hi, thanks for the investigations. I'll take a look at the crash.

Changed in tvtime (Debian):
status: New → Fix Released
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 → Fix Released
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.