GNOME Bugzilla – Bug 305493
crashes while copying files/folders with arabic (UTF8) names
Last modified: 2005-06-06 20:45:59 UTC
Distribution/Version: gentoo 1-Copy files or folders with arabic (UTF8) names. 2-Crash
I think it happens only, when copying multiple items that have arabic names recursively. That is, folder with arabic name, having files with arabic names.
Thanks for the bug report. Without a stack trace from the crash it's very hard to determine what caused it. Can you provide us with one? Please see http://live.gnome.org/GettingTraces for more information on how to do so.
I am sorry about the sloppy bugreport, it was late. now I have recompiled nautilus with debug turned on, and removed -fomit-frame-pointer from my CFLAGS ( they were conservative don't worry ). they are now : "-Os -march=i686 -pipe" a small note. This crash has been happening since gnome-2.8 The problem now is that nautilus doesn't stay running in the same thread. So when I run it in gdb it just transfers to another thread and gdb says it exits. anyway here were the errors thrown: (nautilus:18682): Gtk-WARNING **: Failed to set label from markup due to error parsing markup: Error on line 1: Character ' ' is not valid inside an entity name Pango-ERROR **: file pango-layout.c: line 4861 (pango_layout_iter_get_char_extents): assertion failed: (p <= current) aborting... pango error ?!! What do I do now, please assist :)
you can use "gdb -p <pid>" to use gdb on the currently running nautilus, then "c" to continue running it
great now we're in business: I did as you said and then started copying one of the offending folders. Sure enough, crash, this time caught by gdb: Program received signal SIGABRT, Aborted. [Switching to Thread -1477106000 (LWP 23955)] 0x00415410 in ?? () (gdb) thread apply all bt
+ Trace 60209
I removed a lot of duplicate lines in the middle. I hope this is helpful.
I did a lot more testing and have come to the following conclusions: 1- My gdb backtrace is not helpful. Something is wrong, lots of symbols are missing. Can you tell what's wrong? 2- I narrowed down the problem to certain files. These files were copied from a windows vfat partition , mounted with the utf8 option. 3- Any operations on these files using nautilus, trigger the crash. 4- Some of them are mp3 and beep-media-player complains that their names are invalid UTF8. However it doesn't crash. Turning on the name rencoding option in the mp3 plugin and entering "cp1256" ( windows arabic encoding ) as the source enoding , fixes the name display. 5- Manipulating the files at the command line, with cp, mv or tar , will fix the names , and nautilus won't crash on manipulating them anymore. I hope this has clarified some points. Thanks in advance.
Hope this'll help: Pango-ERROR **: file pango-layout.c: line 4861 (pango_layout_iter_get_char_extents): assertion failed: (p <= current) aborting... Program received signal SIGABRT, Aborted.
+ Trace 60321
Thread NaN (LWP 27700)
$1 = (PangoLayoutIter *) 0xb7792253 (gdb) print logical_rect $2 = (PangoRectangle *) 0xbfffd9e0 (gdb)
I also noticed something: When I run nautilus with LANG=en_U.UTF-8 the crash happens but with LANG=en_US only nothing happens.
Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find. *** This bug has been marked as a duplicate of 89541 ***