After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 117657 - GNUcash crashes on save - losing all changes
GNUcash crashes on save - losing all changes
Status: VERIFIED FIXED
Product: GnuCash
Classification: Other
Component: User Interface General
1.8.x
Other Linux
: Normal normal
: ---
Assigned To: Derek Atkins
Derek Atkins
: 117700 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2003-07-17 07:54 UTC by Vincent Valvona
Modified: 2018-06-29 20:35 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Vincent Valvona 2003-07-17 07:54:14 UTC
The summary says it all.
The good news is that the problem is easily reproducible so tracking down
the bug should be possible. I discovered it by accident when moving my
company accounts files from my home PC to my new office PC, I did this by
burning them onto CD and copying them from that. Unfortunately I did it as
root and forgot to select 'Preserve permissions' in K3B so the copied files
were all owned by root but had global read permissions. I am running
Mandrake 9.1, but I don't think this has anything to do with the bug.

To reproduce the bug:
Make the directory which contains the accounts file and the files within it
read-only (I have been told only the folder needs to be read only)

Start GNUcash from the menu and open the file (if it automatically opens
the file at start up the result is the same)

You get the message:
           GNUcash could not obtain the lock
Select 'Open Anyway '
Make some changes - actually you don't need to make any changes to get the bug
Save the file, you get the message:
         Error: An error occurred while processing  /path/filename
Select OK then Cancel on the File Save dialogue that appears
Save again (originally I did Save As), you get the message:
   Application "/usr/bin/guile-1.41" (process 16239) has crashed due to a
fatal error. (Segmentation fault)
Select Close

And that's it, GNUcash terminates without saving your changes


Vince
Comment 1 Derek Atkins 2003-07-17 22:27:22 UTC
*** Bug 117700 has been marked as a duplicate of this bug. ***
Comment 2 Derek Atkins 2003-07-26 23:50:46 UTC
I'll take this.
Comment 3 Derek Atkins 2003-07-27 00:00:33 UTC
Yep, it's definitely reproducible, thanks.  I'll try to track this
down.  Thanks.
Comment 4 Derek Atkins 2003-07-27 04:02:19 UTC
This is now fixed in CVS (HEAD and 1.8).  Thanks for the report.

The problem was that the session "save" code was closing the existing
session if the save failed.  There was a comment asking if this is a
bit harsh -- I added to the commend and answered that yes, it was too
harsh and added a pointer to this bug report.
Comment 5 John Ralls 2018-06-29 20:35:17 UTC
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=117657. Please update any external references or bookmarks.