[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-xnee] [bug #14629] Core dump from gnee
From: |
Peter Fales |
Subject: |
[Bug-xnee] [bug #14629] Core dump from gnee |
Date: |
Fri, 23 Sep 2005 22:04:19 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.11) Gecko/20050822 |
URL:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=14629>
Summary: Core dump from gnee
Project: Xnee
Submitted by: psfales
Submitted on: Fri 09/23/05 at 22:04
Category: gnee
Severity: 3 - Normal
Item Group: Error report
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
_______________________________________________________
Details:
Near the beginning of main.c in cnee, there is code to set the program name:
/* Set the program name */
xnee_set_program_name (xd, XNEE_CLI);
gnee does not have any similar logic, and as a result the program name is not
set. When a file "save" operation is invoked, this results in a null pointer
being passed to printf. On linux with glibc, this simply causes the line in
the output file to be:
ProjectCreationProgram: (null)
But on other platforms (such as solaris) with less friendly implmentations of
printf, this causes a core dump.
I used the following patch to fix it:
diff -ur Xnee-2.01/gnee/src/main.c Xnee-2.01.new/gnee/src/main.c
--- Xnee-2.01/gnee/src/main.c 2005-09-12 08:32:02.000000000 -0500
+++ Xnee-2.01.new/gnee/src/main.c 2005-09-23 15:56:16.000000000 -0500
@@ -157,6 +166,9 @@
xd = xnee_new_xnee_data();
ext_xd = xd;
+ /* Set the program name */
+ xnee_set_program_name (xd, GNEE);
+
/* Set the cli parameters */
xnee_set_application_parameters (xd, argv);
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=14629>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug-xnee] [bug #14629] Core dump from gnee,
Peter Fales <=