gnome-text-editor crashed with SIGSEGV in editor_text_buffer_spell_adapter_invalidate_all() from editor_document_load_notify_completed_cb() from g_closure_invoke() from g_hash_table_lookup_node() from g_hash_table_lookup()

Bug #2075553 reported by errors.ubuntu.com bug bridge
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gnome-text-editor (Ubuntu)
Status tracked in Oracular
Noble
Fix Released
Medium
Alessandro Astone
Oracular
Fix Released
Medium
Unassigned

Bug Description

[ Impact ]

When launching gnome-text-editor by opening a file the window appears briefly before crashing if there was an unsaved draft.

This was fixed upstream by adding a NULL check.

[ Test Case ]

 * In the terminal run `gnome-text-editor`

 * Create a new tab

 * Type anything in the document, without saving.

 * In the terminal press Ctrl+C to terminate the process.

 * In the terminal run `gnome-text-editor foo.txt`

 * Verify that Text Editor launches without crashing.

[ What could go wrong ]

gnome-text-editor is the default text editor in Ubuntu Desktop; if it is not working the user could look for alternative text editors in the application store.

The patch is very unintrusive, it just adds two NULL checks.
We do not expect any possible regression.

[ Other info ]

The previous SRU phasing was halted due to this bug.
This will allow the previous SRU to procede. bug 2070283

[ Original Description ]

The Ubuntu Error Tracker has been receiving reports about a problem regarding gnome-text-editor. This problem was most recently seen with package version 46.3-0ubuntu1, the problem page at https://errors.ubuntu.com/problem/063173db77d5a1e75861c722c17d11118b76b960 contains more details, including versions of packages affected, stacktrace or traceback, and individual crash reports.
If you do not have access to the Ubuntu Error Tracker and are a software developer, you can request it at http://forms.canonical.com/reports/.

summary: - /usr/bin/gnome-text-
- editor:11:editor_text_buffer_spell_adapter_invalidate_all:editor_document_load_notify_completed_cb:g_closure_invoke:g_hash_table_lookup_node:g_hash_table_lookup
+ gnome-text-editor crashed with SIGSEGV in
+ editor_text_buffer_spell_adapter_invalidate_all() from
+ editor_document_load_notify_completed_cb() from g_closure_invoke() from
+ g_hash_table_lookup_node() from g_hash_table_lookup()
Changed in gnome-text-editor (Ubuntu):
assignee: nobody → Alessandro Astone (aleasto)
tags: added: fixed-in-gnome-text-editor-46.4 fixed-in-gnome-text-editor-47.beta fixed-upstream
Changed in gnome-text-editor (Ubuntu):
status: New → Fix Released
assignee: Alessandro Astone (aleasto) → nobody
Changed in gnome-text-editor (Ubuntu Noble):
assignee: nobody → Alessandro Astone (aleasto)
Changed in gnome-text-editor (Ubuntu Noble):
status: New → Confirmed
Changed in gnome-text-editor (Ubuntu Noble):
status: Confirmed → Triaged
Changed in gnome-text-editor (Ubuntu Noble):
milestone: none → noble-updates
Changed in gnome-text-editor (Ubuntu Oracular):
importance: Undecided → Medium
Changed in gnome-text-editor (Ubuntu Noble):
importance: Undecided → Medium
description: updated
Revision history for this message
Timo Aaltonen (tjaalton) wrote : Please test proposed package

Hello errors.ubuntu.com, or anyone else affected,

Accepted gnome-text-editor into noble-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/gnome-text-editor/46.3-0ubuntu2 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-noble to verification-done-noble. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-noble. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Changed in gnome-text-editor (Ubuntu Noble):
status: Triaged → Fix Committed
tags: added: verification-needed verification-needed-noble
Revision history for this message
Alessandro Astone (aleasto) wrote :

Verified `gnome-text-editor=46.3-0ubuntu2` in Ubuntu 24.04 LTS against the test plan.
No crash seen anymore.

tags: added: verification-done verification-done-noble
removed: verification-needed verification-needed-noble
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gnome-text-editor - 46.3-0ubuntu2

---------------
gnome-text-editor (46.3-0ubuntu2) noble; urgency=medium

  * debian: Backport patches to fix crash on launch (lp: #2075553)

 -- Alessandro Astone <email address hidden> Tue, 13 Aug 2024 13:29:03 +0200

Changed in gnome-text-editor (Ubuntu Noble):
status: Fix Committed → Fix Released
Revision history for this message
Łukasz Zemczak (sil2100) wrote : Update Released

The verification of the Stable Release Update for gnome-text-editor has completed successfully and the package is now being released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.