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 738544 - Conflict when opening a file in gedit from terminal while the Save As dialog is opened
Conflict when opening a file in gedit from terminal while the Save As dialog ...
Status: RESOLVED OBSOLETE
Product: gedit
Classification: Applications
Component: file loading and saving
3.14.x
Other Linux
: Normal normal
: ---
Assigned To: sébastien lafargue
Gedit maintainers
Depends on:
Blocks:
 
 
Reported: 2014-10-14 18:41 UTC by Dmitry Matveev
Modified: 2020-11-24 09:57 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
segfault full back trace (8.75 KB, text/plain)
2014-10-14 19:12 UTC, sébastien lafargue
Details

Description Dmitry Matveev 2014-10-14 18:41:13 UTC
Scenario:

1. Open Gedit (new empty document);
2. Open "Save as" dialog and leave it opened;
3. Now, open a terminal and invoke:
3.1 $ echo Hello > /tmp/foo.txt
3.2 $ gedit /tmp/foo.txt
4. Return to Gedit (to its "Save as" dialog)
5. Save a file as "/tmp/bar.txt"

And now, your /tmp/bar.txt will contain "Hello" (initially there was an empty document).

In other words, while Gedit is awaiting a response from "Save as" dialog, and we send to it a new file to open, Gedit replaces our empty document with the contents of that file, and we saving it instead of saving an empty document.

The issue was initially discovered in version 3.10.4, and I was able to reproduce it with v3.14.0.
Comment 1 sébastien lafargue 2014-10-14 19:12:22 UTC
Created attachment 288545 [details]
segfault full back trace
Comment 2 sébastien lafargue 2014-10-14 19:12:39 UTC
hi, can't confirm, works for me but Gedit exits with a segfault
( bt attached )
Comment 3 Arthur Zalevsky 2014-10-15 08:26:41 UTC
I can confirm it with 3.10.4 from Ubuntu 14.04 repos.
Comment 4 Sébastien Wilmet 2020-11-24 09:57:41 UTC
Mass-closing of all gedit bugzilla tickets.

Special "code" to find again all those gedit bugzilla tickets that were open before the mass-closing:

2bfe1b0590a78457e1f1a6a90fb975f5878cb60064ccfe1d7db76ca0da52f0f3

By searching the above sha256sum in bugzilla, the gedit contributors can find again the tickets. We may be interested to do so when we work on a specific area of the code, to at least know the known problems and possible enhancements.

We do this mass-closing because bugzilla.gnome.org is being replaced by gitlab.gnome.org.