Bug 1000208 - tvtime crashed with SIGSEGV in __GI___strdup()
Summary: tvtime crashed with SIGSEGV in __GI___strdup()
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: tvtime
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Tomas Smetana
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-08-23 00:33 UTC by triniton
Modified: 2014-04-16 07:38 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-04-16 07:38:13 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
[1] (120.14 KB, application/x-bzip)
2013-08-23 00:33 UTC, triniton
no flags Details
StacktraceSource (2.18 KB, text/plain)
2013-08-23 00:36 UTC, triniton
no flags Details

Description triniton 2013-08-23 00:33:45 UTC
Created attachment 789404 [details]
[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.

Comment 1 triniton 2013-08-23 00:36:45 UTC
Created attachment 789405 [details]
StacktraceSource

Comment 2 Tomas Smetana 2013-09-04 11:58:27 UTC
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.

Comment 3 POJAR GEORGE 2013-12-16 04:26:11 UTC
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 );
+    }
+


Note You need to log in before you can comment on or make changes to this bug.