! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
exo-desktop-item-edit segfaults in pl_PL locale
Status:
CLOSED: INVALID
Severity:
critical

Comments

Description Damian 2006-11-13 21:10:21 CET
User-Agent:       Mozilla/5.0 (X11; U; Linux i686; chrome://global/locale/intl.properties; rv:1.8.0.8) Gecko/20061109 KateOS SeaMonkey/1.0.6
Build Identifier: 

exo-desktop-item-edit segfaults when trying to edit launcher, but only when using pl_PL locale. In other locales (i haven't tested all) it works fine. 

Reproducible: Always

Steps to Reproduce:
1.run exo-desktop-item-edit in pl_PL locale
2.
3.

Actual Results:  
(exo-desktop-item-edit:29244): GLib-CRITICAL **: g_utf8_casefold: assertion `str != NULL' failed
Naruszenie ochrony pamięci (segfault in Polish)
Comment 1 Benedikt Meurer editbugs 2006-11-14 07:58:50 CET
Dunno. Have you asked the polish translator?
Comment 2 Damian 2006-11-14 08:31:20 CET
(In reply to comment #1)
> Dunno. Have you asked the polish translator?
> 

No, becouse libexo .po file looks good and is well encoded, so it can't be his fault.  exo-desktop-item-edit dialog is showed for a second and then it segfaults. 
Comment 3 Damian 2006-11-16 20:09:45 CET
I've found the problem. Segfault occurs when at least one .desktop file in XDG_DATA_DIR/applications is not encoded in UTF-8. Maybe exo-desktop-item-edit should skip such a files?
Comment 4 Jasper Huijsmans editbugs 2006-12-09 16:32:42 CET
It looks to me like the problem could be in g_keyfile_*, so it could be a glib bug. Damian, could you attach a desktop file that shows the problem?

Comment 5 Damian 2006-12-10 09:13:21 CET
Created attachment 896 
Prepared .desktop file that causes segfault.
Comment 6 Damian 2006-12-10 09:16:53 CET
(In reply to comment #4)
> It looks to me like the problem could be in g_keyfile_*, so it could be a glib
> bug. Damian, could you attach a desktop file that shows the problem?
> 

I've prepared the .desktop file encoded in iso8859-2. I know it contains obsolete item (Encoding=LegacyMixed), but imho it shouldn't cause segfaults :) 
Comment 7 Jasper Huijsmans editbugs 2006-12-10 09:59:56 CET
(In reply to comment #6)
> (In reply to comment #4)
> > It looks to me like the problem could be in g_keyfile_*, so it could be a glib
> > bug. Damian, could you attach a desktop file that shows the problem?
> > 
> 
> I've prepared the .desktop file encoded in iso8859-2. I know it contains
> obsolete item (Encoding=LegacyMixed), but imho it shouldn't cause segfaults :) 
> 

Hmm, for me it simply refuses to read the file. This is at least better than crashing... 

Damian, could you perhaps get a backtrace from the crash with gdb?

Oh, and what is your glib version? That might make a difference.

Comment 8 Damian 2006-12-10 10:15:50 CET
(In reply to comment #7)
> Damian, could you perhaps get a backtrace from the crash with gdb?

In this moment i don't have binaries with debug symbols, so i need to recompile them first.
 
> Oh, and what is your glib version? That might make a difference.
> 

2.12.3
Comment 9 Dennis Hildebrandt 2007-05-19 10:22:42 CEST
same problem here, but with de_DE.utf8 locale. I figured out, that it depends on the name-field: deleting it, I get no segfaults, until I try to type in this field.

Im using:
OS: gentoo-linux
exo  0.3.2
glib 2.12.9
Comment 10 Benedikt Meurer editbugs 2007-05-20 13:56:04 CEST
It's a bug in glib. Build exo with --enable-debug=no or --enable-debug=minimum to disable the crash.
Comment 11 Dennis Hildebrandt 2007-05-27 14:14:11 CEST
sorry, but this does not work for me. I still get an segfault.

I tried out a newer version of glib (ver. 2.12.11), but without success.
Comment 12 Benedikt Meurer editbugs 2007-11-28 20:48:32 CET
File a bug report to GLib.

Bug #2577

Reported by:
Damian
Reported on: 2006-11-13
Last modified on: 2009-10-09

People

Assignee:
Nick Schermer
CC List:
1 user

Version

Version:
0.3.1.12rc2

Attachments

Prepared .desktop file that causes segfault. (328 bytes, application/octet-stream)
2006-12-10 09:13 CET , Damian
no flags

Additional information