GnuCash
Contact   Instructions
Bug 797335 - Crash on subsequent Open after accidentally Opening the current file
Summary: Crash on subsequent Open after accidentally Opening the current file
Status: RESOLVED INCOMPLETE
Alias: None
Product: GnuCash
Classification: Unclassified
Component: General (show other bugs)
Version: 3.5
Hardware: PC Mac OS
: Normal normal
Target Milestone: ---
Assignee: general
QA Contact: general
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-08-04 14:12 EDT by Michael Hendry
Modified: 2020-05-26 19:27 EDT (History)
4 users (show)

See Also:


Attachments
Mac crash report (80.18 KB, text/plain)
2019-08-04 14:12 EDT, Michael Hendry
no flags Details

Description Michael Hendry 2019-08-04 14:12:40 EDT
Created attachment 373343 [details]
Mac crash report

I had finished working on one GC file some time before, and the file had been auto-saved, when I went to the File menu to open another, accidentally selecting the file I already had open.

When I realised my error, I opened the file I really wanted, and the crash ensued.

Having saved the crash report, I restarted GC and received and overruled the “File Already Open” warning. I’ve gone on to record and edit numerous transactions since then.
Comment 1 Chris Good 2020-05-25 03:49:21 EDT
Cannot duplicate in Linux master (~3.10+).
Comment 2 John Ralls 2020-05-25 10:08:44 EDT
Chris, 3.10+ would be the last stable release, not master. Since from the stack trace it seems to be webkit related it's entirely possible that it can't be reproduced on Linux because of the wildly different webkit versions in use on Mac and Windows vs. Linux.
Comment 3 Chris Good 2020-05-25 21:56:10 EDT
Hi John, I should have said master (git 3.902-168-gc12ae077f+(2020-05-24)).
Comment 4 Michael Hendry 2020-05-26 04:31:15 EDT
I haven't managed to reproduce the error today on 3.9 (Mac Catalina).
Comment 5 John Ralls 2020-05-26 19:27:26 EDT
I dunno. I worked out from an assembly dump that the free that crashed was https://github.com/Gnucash/gnucash/blob/maint/gnucash/html/gnc-html-webkit1.c#L507, priv->html_string. It's correctly reassigned every time it's freed so I don't see how it could be double-freed. I guess you found some corner case that managed it, but I can't reproduce it following your instructions and it seems you can't either.

So I'll close this as "incomplete". If it happens again try to write down as many details about the circumstances, especially what reports were open in both files. Reopen the bug, add what information you can, and attach the tracefile.

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