I can't reproduce this, so I don't know the trigger, but from the backtrace:
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x000000000042fb9c in zoom_createZoom (w=0xd0d890,
call_data=call_data@entry=0x7fffb3cccdb0) at zoom.c:112
112 if (strcmp(gv_filename, "-")) {
Thread 1 (LWP 3049):
#0 0x000000000042fb9c in zoom_createZoom (w=0xd0d890,
call_data=call_data@entry=0x7fffb3cccdb0) at zoom.c:112
__s2 = 0x0
__result = <error reading variable __result (Cannot access memory at
address 0x0)>
__s2_len = 1
clearly strcmp(gv_filename, "-") is being called with gv_filename == NULL.
The attached check should alleviate the segfault, but perhaps something else
if wrong as well.
- Orion
-------- Original Message --------
Subject: [Bug 1071238] New: [abrt] gv: zoom_createZoom(): gv killed by SIGSEGV
Date: Fri, 28 Feb 2014 10:56:37 +0000
From: [email protected]
To: [email protected]
https://bugzilla.redhat.com/show_bug.cgi?id=1071238
Bug ID: 1071238
Summary: [abrt] gv: zoom_createZoom(): gv killed by SIGSEGV
Product: Fedora
Version: 20
Component: gv
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
CC: [email protected], [email protected]
Version-Release number of selected component:
gv-3.7.4-4.fc20
Additional info:
reporter: libreport-2.1.12
backtrace_rating: 4
cmdline: /usr/bin/gv
crash_function: zoom_createZoom
executable: /usr/bin/gv
kernel: 3.13.4-200.fc20.x86_64
runlevel: N 5
type: CCpp
uid: 1000
Truncated backtrace:
Thread no. 1 (10 frames)
#0 zoom_createZoom at zoom.c:112
#1 magmenu_a_magMenu at magmenu.c:368
#2 HandleActions at TMstate.c:645
#3 HandleSimpleState at TMstate.c:884
#4 _XtTranslateEvent at TMstate.c:1101
#5 XtDispatchEventToWidget at Event.c:906
#6 _XtDefaultDispatcher at Event.c:1367
#7 XtDispatchEvent at Event.c:1423
#8 XtAppProcessEvent at NextEvent.c:1397
#9 XtAppMainLoop at Event.c:1554
--
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.
diff -up gv-3.7.4/src/zoom.c.bug1071238 gv-3.7.4/src/zoom.c
--- gv-3.7.4/src/zoom.c.bug1071238 2012-03-29 10:03:50.000000000 -0600
+++ gv-3.7.4/src/zoom.c 2014-02-28 09:17:20.522332906 -0700
@@ -109,7 +109,7 @@ zoom_createZoom(Widget w _GL_UNUSED, XtP
return;
}
- if (strcmp(gv_filename, "-")) {
+ if (gv_filename != NULL && strcmp(gv_filename, "-")) {
stat(gv_filename, &sbuf);
if (mtime != sbuf.st_mtime) {
INFMESSAGE1(file has changed) ENDMESSAGE1(zoom_createZoom)return;