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 87276 - Saving an untitled document crashes
Saving an untitled document crashes
Status: RESOLVED FIXED
Product: gedit
Classification: Applications
Component: general
git master
Other Linux
: Normal normal
: ---
Assigned To: Gedit maintainers
gedit QA volunteers
Depends on:
Blocks:
 
 
Reported: 2002-07-03 18:38 UTC by Havoc Pennington
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: 2.0



Description Havoc Pennington 2002-07-03 18:38:06 UTC
Run MALLOC_CHECK_=2, "save as" the empty document, note crash on closing
the file dialog.

Probably is that sometimes fname == uri but both are always freed, so
there's a double free sometimes. This is in gedit_file_save_as(). Fix is
trivial
so I won't bother with a patch.
Comment 1 Havoc Pennington 2002-07-04 03:51:58 UTC
Can close https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=67496
when this is closed.
Comment 2 Paolo Maggi 2002-07-04 12:31:43 UTC
Havoc: excuse for my ignorance, but what do you mean exacly with "Run
MALLOC_CHECK_=2"? Do you mean "export MALLOC_CHECK_=2"?

BTW, I think to have fixed the bug in the post-gnome-2 branch of gedit.

Comment 3 Paolo Maggi 2002-07-04 13:06:24 UTC
Havoc: I've found what MALLOC_CHECK_=2 is supposed to do in the malloc
man page. 

I will close this bug as soon as I will merge the post-gnome-2 branch
with HEAD.
Comment 4 Paolo Maggi 2002-07-04 23:08:10 UTC
Fixed in CVS HEAD too