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 411586 - gnome-control-center crashed with SIGSEGV in g_markup_escape_text()
gnome-control-center crashed with SIGSEGV in g_markup_escape_text()
Status: RESOLVED FIXED
Product: gnome-main-menu
Classification: Other
Component: libslab
unspecified
Other Linux
: Normal critical
: ---
Assigned To: GNOME main menu maintainers
GNOME main menu maintainers
Depends on:
Blocks:
 
 
Reported: 2007-02-24 15:30 UTC by Sebastien Bacher
Modified: 2011-06-02 22:39 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Fixes i18n issue with libslab (1.83 KB, patch)
2011-05-27 23:59 UTC, Stephen Shaw
none Details | Review
Updated patch (1.85 KB, patch)
2011-06-02 18:23 UTC, Stephen Shaw
accepted-commit_now Details | Review

Description Sebastien Bacher 2007-02-24 15:30:56 UTC
That bug has been opened on https://launchpad.net/bugs/86557

"7.04 Feisty Fawn Herd-4

Control Center crashes on launch when /etc/environment is set to:

LANG="sv_SE.ISO-8859-15"

... but not when

LANG="sv_SE.UTF-8"
...
Package: gnome-control-center 1:2.17.91-0ubuntu4
...
Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
Core was generated by `gnome-control-center'.
Program terminated with signal 11, Segmentation fault.

Thread 1 (process 9036)

  • #0 IA__g_markup_escape_text
    at gmarkup.c line 1903
  • #1 IA__g_markup_vprintf_escaped
    at gmarkup.c line 2215
  • #2 IA__g_markup_printf_escaped
    at gmarkup.c line 2272
  • #3 application_tile_new_full
    at application-tile.c line 351
  • #4 insert_launcher_into_category
    at app-shell.c line 1218
  • #5 generate_launchers
    at app-shell.c line 1022
  • #6 generate_categories
    at app-shell.c line 870
  • #7 main
    at control-center.c line 156

8859-15 does not seem to like that. Not sure if this is a GTK bug and the chars should get converted somehow.
..."
Comment 1 Sebastien Bacher 2007-02-28 21:21:19 UTC
Debug valgrind from a duplicate:

==7647== Invalid read of size 1
==7647==    at 0x45A7B00: g_markup_escape_text (gmarkup.c:1903)
==7647==    by 0x45A869C: g_markup_vprintf_escaped (gmarkup.c:2215)
==7647==    by 0x45A876A: g_markup_printf_escaped (gmarkup.c:2272)
==7647==    by 0x404CEBE: application_tile_new_full (application-tile.c:356)
==7647==    by 0x4048E8E: insert_launcher_into_category (app-shell.c:1231)
==7647==    by 0x40491B6: generate_launchers (app-shell.c:1032)
==7647==    by 0x40494C5: generate_categories (app-shell.c:877)
==7647==    by 0x8049223: main (control-center.c:156)
==7647==  Address 0x77E1919 is 0 bytes after a block of size 9 alloc'd
==7647==    at 0x4021380: malloc (vg_replace_malloc.c:149)
==7647==    by 0x468188A: vasprintf (in /lib/tls/i686/cmov/libc-2.5.so)
==7647==    by 0x45CCE86: g_vasprintf (gprintf.c:311)
==7647==    by 0x45BEE65: g_strdup_vprintf (gstrfuncs.c:188)
==7647==    by 0x45A85B3: g_markup_vprintf_escaped (gmarkup.c:2173)
==7647==    by 0x45A876A: g_markup_printf_escaped (gmarkup.c:2272)
==7647==    by 0x404CEBE: application_tile_new_full (application-tile.c:356)
==7647==    by 0x4048E8E: insert_launcher_into_category (app-shell.c:1231)
==7647==    by 0x40491B6: generate_launchers (app-shell.c:1032)
==7647==    by 0x40494C5: generate_categories (app-shell.c:877)
==7647==    by 0x8049223: main (control-center.c:156)
Comment 2 Denis Washington 2007-05-18 17:20:08 UTC
This should probably be moved to glib.
Comment 3 Stephen Shaw 2011-05-27 23:59:12 UTC
Created attachment 188793 [details] [review]
Fixes i18n issue with libslab
Comment 4 Stephen Shaw 2011-06-02 18:23:17 UTC
Created attachment 189106 [details] [review]
Updated patch

Updated patch to be more in line with libslab's coding style
Comment 5 Scott Reeves 2011-06-02 22:32:40 UTC
Review of attachment 189106 [details] [review]:

looks good.
Comment 6 Stephen Shaw 2011-06-02 22:36:36 UTC
pushed
commit f1d131f7e2e898b41c55b5c89dcdf920d16a56e7