GNOME Bugzilla – Bug 454799
crash in strstr / ?? / ?? ...
Last modified: 2008-05-31 11:02:29 UTC
What were you doing when the application crashed? Eine suche ausgeführt auf einem NTFS Datenträger von 250GB Distribution: Unknown Gnome Release: 2.18.3 2007-07-07 (Archlinux) BugBuddy Version: 2.18.1 System: Linux 2.6.21-ARCH #1 SMP PREEMPT Sat Jul 7 09:57:11 UTC 2007 i686 X Vendor: The X.Org Foundation X Vendor Release: 70200000 Selinux: No Accessibility: Disabled GTK+ Theme: Glossy Icon Theme: Rodent Memory status: size: 107659264 vsize: 107659264 resident: 26718208 share: 16535552 rss: 26718208 rss_rlim: 4294967295 CPU usage: start_time: 1183889700 rtime: 537 utime: 438 stime: 99 cutime:0 cstime: 0 timeout: 0 it_real_value: 0 frequency: 100 Backtrace was generated from '/usr/bin/nautilus' (no debugging symbols found) Using host libthread_db library "/lib/libthread_db.so.1". (no debugging symbols found) [Thread debugging using libthread_db enabled] [New Thread -1227426112 (LWP 6774)] [New Thread -1281274992 (LWP 7278)] (no debugging symbols found) 0xb7f04410 in __kernel_vsyscall ()
+ Trace 146473
Thread 2 (Thread -1281274992 (LWP 7278))
----------- .xsession-errors --------------------- 2007-07-08 12:32:13 [tags/tags.c] metaID3v1: Found Album! 2007-07-08 12:32:13 [tags/tags.c] metaID3v1: Found Year! 2007-07-08 12:32:13 [tags/tags.c] metaID3v1: Found Genre! 2007-07-08 12:32:13 [tags/tags.c] metaID3v2: Found Title! 2007-07-08 12:32:13 [tags/tags.c] metaID3v2: Found Album! 2007-07-08 12:32:13 [tags/tags.c] metaID3v2: Found Year! 2007-07-08 12:32:13 [tags/tags.c] metaID3v2: Found Artist! 2007-07-08 12:32:13 [xmms_scrobbler.c] xs_thread: submitting artist: www.dynamedion.com, title: Karash 2007-07-08 12:32:13 [scrobbler.c] sc_submitentry: a[0]=www%2Edynamedion%2Ecom t[0]=Karash l[0]=68 i[0]=2007%2D07%2D08%2010%3A32%3A13 m[0]= b[0]=SpellForce%20%2D%20Shadow%20Wars 2007-07-08 12:32:13 [scrobbler.c] sc_parse_sb_res: got new interval: 1 2007-07-08 12:32:13 [scrobbler.c] sc_parse_sb_res: submission ok: OK INTERVAL 1 (nautilus:6774): GLib-CRITICAL **: g_utf8_strdown: assertion `str != NULL' failed --------------------------------------------------
*** Bug 455957 has been marked as a duplicate of this bug. ***
*** Bug 458236 has been marked as a duplicate of this bug. ***
Thanks for taking the time to report this bug. Unfortunately, the stack trace is missing some elements that will help a lot to solve the problem, so it will be hard for the developers to fix that crash. Could you please help fixing this by installing some debugging packages [1], start the application as normal, and try to reproduce the crash, if possible? Once bug-buddy pops up, you can find the stacktrace in the 'Details', now containing way more information. Please copy that stacktrace and paste it as a comment here. Thanks in advance! [1] Please install debug packages for nautilus, glib2, gtk2, pango, gnome-vfs2, libgnome, and libgnomeui. More details can be found here: http://live.gnome.org/GettingTraces
*** Bug 457764 has been marked as a duplicate of this bug. ***
*** Bug 460035 has been marked as a duplicate of this bug. ***
*** Bug 456233 has been marked as a duplicate of this bug. ***
*** Bug 454979 has been marked as a duplicate of this bug. ***
*** Bug 460393 has been marked as a duplicate of this bug. ***
unfortunately on archlinux we don't have any fast way to get the debugging symbols without recompiling the packages, so I've reported the bug with a description into the archlinux bug tracking system too, at: http://bugs.archlinux.org/task/7695 hoping that it will be useful thanks
This is what I get when searching for files in nautilus on 2.19.5. All gnome packages are compiled with debug symbols on my system. Nautilus: 2.19.5 Gnome-vfs: 2.19.2 Distribution: Unknown Gnome Release: 2.19.5 2007-07-09 (Archlinux) BugBuddy Version: 2.18.1 System: Linux 2.6.22-ARCH #1 SMP PREEMPT Mon Jul 23 21:13:22 CEST 2007 i686 X Vendor: The X.Org Foundation X Vendor Release: 10300000 Selinux: No Accessibility: Disabled GTK+ Theme: Mist Icon Theme: gnome Memory status: size: 99061760 vsize: 99061760 resident: 28508160 share: 17293312 rss: 28508160 rss_rlim: 4294967295 CPU usage: start_time: 1185605596 rtime: 1530 utime: 1177 stime: 353 cutime:439 cstime: 83 timeout: 0 it_real_value: 0 frequency: 100 Backtrace was generated from '/usr/bin/nautilus' Using host libthread_db library "/lib/libthread_db.so.1". [Thread debugging using libthread_db enabled] [New Thread -1228302656 (LWP 5458)] [New Thread -1263195248 (LWP 9161)] 0xb7f00410 in __kernel_vsyscall ()
+ Trace 151161
Thread 2 (Thread -1263195248 (LWP 9161))
----------- .xsession-errors (7 sec old) --------------------- ** Message: drive = 0 ** Message: volume = 0 ** Message: drive = 0 ** Message: volume = 0 ** Message: drive = 0 ** Message: volume = 0 ** Message: drive = 0 ** Message: volume = 0 ** Message: drive = 0 ** Message: volume = 0 (nautilus:5458): GLib-CRITICAL **: g_utf8_strdown: assertion `str != NULL' failed Xlib: unexpected async reply (sequence 0x865b)! ***MEMORY-WARNING***: gnome-terminal[9199]: GSlice: g_thread_init() must be called before all other GLib functions; memory corruption due to late invocation of g_thread_init() has been detected; this --------------------------------------------------
It seems something fishy is going on here with unicode functions in glib: (nautilus-search-engine-simple.c:216,217): normalized = g_utf8_normalize (info->name, -1, G_NORMALIZE_NFD); lower_name = g_utf8_strdown (normalized, -1); From gdb: (gdb) print info->name $12 = 0xb4206f90 "W\203ldNet.url" info->name is invalid unicode. It was placed on the filesystem copied from a windows NTFS volume with a rescue cd. (gdb) print normalized $13 = 0x0 after processing info->name, normalized is 0x0, AKA NULL. This causes the assertion you see at line 217. Because of this, lower_name is also initialized as NULL. Later on in the same file, lower_name is passed to strstr, which doesn't like NULL either and crashes. IMHO the best thing we can do is to run g_utf8_validate() on info->name, if that returns true, we normalize and lowercase the string using the functions on line 216 and 217 as shown above. If it returns false, we use g_strdown to lowercase the invalid string and run the strstr over it. I'll attach a patch that does this.
Created attachment 92616 [details] [review] Patch against 2.19.5 Patch that implements behaviour as described above.
Thanks - I cleaned up the formatting, replaced the deprecated g_strdown with g_ascii_strdown and put it on both branches: 2007-07-30 Martin Wehner <martin.wehner@gmail.com> * libnautilus-private/nautilus-search-engine-simple.c: (search_visit_func): Don't try to lowercase non-unicode filenames with g_utf8_strdown. Fixes #454799. Patch from Jan de Groot <jan@jgc.homeip.net>
*** Bug 456445 has been marked as a duplicate of this bug. ***
*** Bug 456131 has been marked as a duplicate of this bug. ***
*** Bug 461960 has been marked as a duplicate of this bug. ***
*** Bug 462279 has been marked as a duplicate of this bug. ***
*** Bug 462043 has been marked as a duplicate of this bug. ***
*** Bug 461930 has been marked as a duplicate of this bug. ***
*** Bug 462795 has been marked as a duplicate of this bug. ***
*** Bug 462908 has been marked as a duplicate of this bug. ***
*** Bug 462987 has been marked as a duplicate of this bug. ***
*** Bug 462949 has been marked as a duplicate of this bug. ***
*** Bug 464164 has been marked as a duplicate of this bug. ***
*** Bug 464510 has been marked as a duplicate of this bug. ***
*** Bug 464674 has been marked as a duplicate of this bug. ***
*** Bug 464582 has been marked as a duplicate of this bug. ***
*** Bug 464583 has been marked as a duplicate of this bug. ***
*** Bug 464938 has been marked as a duplicate of this bug. ***
*** Bug 465717 has been marked as a duplicate of this bug. ***
*** Bug 466441 has been marked as a duplicate of this bug. ***
*** Bug 466961 has been marked as a duplicate of this bug. ***
*** Bug 467222 has been marked as a duplicate of this bug. ***
*** Bug 467655 has been marked as a duplicate of this bug. ***
*** Bug 467741 has been marked as a duplicate of this bug. ***
*** Bug 468116 has been marked as a duplicate of this bug. ***
*** Bug 468025 has been marked as a duplicate of this bug. ***
*** Bug 468024 has been marked as a duplicate of this bug. ***
*** Bug 467963 has been marked as a duplicate of this bug. ***
*** Bug 467828 has been marked as a duplicate of this bug. ***
*** Bug 468647 has been marked as a duplicate of this bug. ***
*** Bug 468592 has been marked as a duplicate of this bug. ***
*** Bug 468802 has been marked as a duplicate of this bug. ***
*** Bug 468763 has been marked as a duplicate of this bug. ***
*** Bug 468680 has been marked as a duplicate of this bug. ***
*** Bug 466365 has been marked as a duplicate of this bug. ***
*** Bug 467730 has been marked as a duplicate of this bug. ***
*** Bug 468568 has been marked as a duplicate of this bug. ***
*** Bug 468566 has been marked as a duplicate of this bug. ***
*** Bug 468180 has been marked as a duplicate of this bug. ***
*** Bug 468606 has been marked as a duplicate of this bug. ***
*** Bug 468342 has been marked as a duplicate of this bug. ***
*** Bug 469010 has been marked as a duplicate of this bug. ***
*** Bug 469008 has been marked as a duplicate of this bug. ***
*** Bug 469195 has been marked as a duplicate of this bug. ***
*** Bug 471558 has been marked as a duplicate of this bug. ***
*** Bug 471661 has been marked as a duplicate of this bug. ***
*** Bug 473607 has been marked as a duplicate of this bug. ***
*** Bug 472957 has been marked as a duplicate of this bug. ***
*** Bug 473104 has been marked as a duplicate of this bug. ***
*** Bug 473407 has been marked as a duplicate of this bug. ***
*** Bug 473897 has been marked as a duplicate of this bug. ***
*** Bug 473840 has been marked as a duplicate of this bug. ***
*** Bug 469808 has been marked as a duplicate of this bug. ***
*** Bug 470043 has been marked as a duplicate of this bug. ***
*** Bug 470208 has been marked as a duplicate of this bug. ***
*** Bug 470361 has been marked as a duplicate of this bug. ***
*** Bug 470427 has been marked as a duplicate of this bug. ***
*** Bug 470669 has been marked as a duplicate of this bug. ***
*** Bug 470759 has been marked as a duplicate of this bug. ***
*** Bug 472217 has been marked as a duplicate of this bug. ***
*** Bug 472592 has been marked as a duplicate of this bug. ***
*** Bug 473505 has been marked as a duplicate of this bug. ***
*** Bug 473526 has been marked as a duplicate of this bug. ***
*** Bug 473609 has been marked as a duplicate of this bug. ***
*** Bug 473824 has been marked as a duplicate of this bug. ***
*** Bug 473852 has been marked as a duplicate of this bug. ***
*** Bug 460285 has been marked as a duplicate of this bug. ***
*** Bug 474138 has been marked as a duplicate of this bug. ***
*** Bug 475658 has been marked as a duplicate of this bug. ***
*** Bug 475604 has been marked as a duplicate of this bug. ***
*** Bug 477114 has been marked as a duplicate of this bug. ***
*** Bug 478006 has been marked as a duplicate of this bug. ***
*** Bug 477940 has been marked as a duplicate of this bug. ***
*** Bug 480935 has been marked as a duplicate of this bug. ***
*** Bug 480761 has been marked as a duplicate of this bug. ***
*** Bug 480308 has been marked as a duplicate of this bug. ***
*** Bug 480305 has been marked as a duplicate of this bug. ***
*** Bug 480246 has been marked as a duplicate of this bug. ***
*** Bug 481992 has been marked as a duplicate of this bug. ***
*** Bug 478525 has been marked as a duplicate of this bug. ***
*** Bug 481579 has been marked as a duplicate of this bug. ***
*** Bug 478266 has been marked as a duplicate of this bug. ***
*** Bug 483535 has been marked as a duplicate of this bug. ***
*** Bug 479023 has been marked as a duplicate of this bug. ***
*** Bug 479228 has been marked as a duplicate of this bug. ***
*** Bug 479251 has been marked as a duplicate of this bug. ***
*** Bug 482113 has been marked as a duplicate of this bug. ***
*** Bug 482915 has been marked as a duplicate of this bug. ***
*** Bug 483008 has been marked as a duplicate of this bug. ***
*** Bug 483125 has been marked as a duplicate of this bug. ***
*** Bug 483607 has been marked as a duplicate of this bug. ***
*** Bug 484170 has been marked as a duplicate of this bug. ***
*** Bug 484172 has been marked as a duplicate of this bug. ***
*** Bug 487267 has been marked as a duplicate of this bug. ***
*** Bug 487929 has been marked as a duplicate of this bug. ***
*** Bug 485392 has been marked as a duplicate of this bug. ***
*** Bug 485690 has been marked as a duplicate of this bug. ***
*** Bug 485946 has been marked as a duplicate of this bug. ***
*** Bug 487859 has been marked as a duplicate of this bug. ***
*** Bug 488616 has been marked as a duplicate of this bug. ***
*** Bug 489309 has been marked as a duplicate of this bug. ***
*** Bug 489185 has been marked as a duplicate of this bug. ***
*** Bug 489482 has been marked as a duplicate of this bug. ***
*** Bug 477003 has been marked as a duplicate of this bug. ***
*** Bug 485015 has been marked as a duplicate of this bug. ***
*** Bug 488260 has been marked as a duplicate of this bug. ***
*** Bug 490656 has been marked as a duplicate of this bug. ***
*** Bug 491081 has been marked as a duplicate of this bug. ***
*** Bug 491135 has been marked as a duplicate of this bug. ***
*** Bug 491058 has been marked as a duplicate of this bug. ***
*** Bug 491616 has been marked as a duplicate of this bug. ***
*** Bug 492283 has been marked as a duplicate of this bug. ***
*** Bug 492381 has been marked as a duplicate of this bug. ***
*** Bug 492802 has been marked as a duplicate of this bug. ***
*** Bug 492688 has been marked as a duplicate of this bug. ***
*** Bug 492803 has been marked as a duplicate of this bug. ***
*** Bug 492804 has been marked as a duplicate of this bug. ***
*** Bug 492829 has been marked as a duplicate of this bug. ***
*** Bug 492878 has been marked as a duplicate of this bug. ***
*** Bug 494933 has been marked as a duplicate of this bug. ***
*** Bug 495266 has been marked as a duplicate of this bug. ***
*** Bug 495647 has been marked as a duplicate of this bug. ***
*** Bug 497010 has been marked as a duplicate of this bug. ***
*** Bug 497112 has been marked as a duplicate of this bug. ***
*** Bug 496642 has been marked as a duplicate of this bug. ***
*** Bug 496878 has been marked as a duplicate of this bug. ***
*** Bug 497655 has been marked as a duplicate of this bug. ***
*** Bug 498122 has been marked as a duplicate of this bug. ***
*** Bug 498160 has been marked as a duplicate of this bug. ***
*** Bug 499171 has been marked as a duplicate of this bug. ***
*** Bug 498792 has been marked as a duplicate of this bug. ***
*** Bug 498961 has been marked as a duplicate of this bug. ***
*** Bug 497542 has been marked as a duplicate of this bug. ***
*** Bug 498596 has been marked as a duplicate of this bug. ***
*** Bug 499455 has been marked as a duplicate of this bug. ***
*** Bug 499978 has been marked as a duplicate of this bug. ***
*** Bug 500269 has been marked as a duplicate of this bug. ***
*** Bug 500594 has been marked as a duplicate of this bug. ***
*** Bug 500595 has been marked as a duplicate of this bug. ***
*** Bug 500420 has been marked as a duplicate of this bug. ***
*** Bug 501594 has been marked as a duplicate of this bug. ***
*** Bug 501743 has been marked as a duplicate of this bug. ***
*** Bug 501995 has been marked as a duplicate of this bug. ***
*** Bug 502212 has been marked as a duplicate of this bug. ***
*** Bug 502252 has been marked as a duplicate of this bug. ***
*** Bug 502321 has been marked as a duplicate of this bug. ***
*** Bug 501837 has been marked as a duplicate of this bug. ***
*** Bug 502656 has been marked as a duplicate of this bug. ***
*** Bug 502845 has been marked as a duplicate of this bug. ***
*** Bug 503145 has been marked as a duplicate of this bug. ***
*** Bug 502897 has been marked as a duplicate of this bug. ***
*** Bug 503594 has been marked as a duplicate of this bug. ***
*** Bug 503499 has been marked as a duplicate of this bug. ***
*** Bug 503866 has been marked as a duplicate of this bug. ***
*** Bug 504097 has been marked as a duplicate of this bug. ***
*** Bug 475211 has been marked as a duplicate of this bug. ***
*** Bug 483149 has been marked as a duplicate of this bug. ***
*** Bug 482843 has been marked as a duplicate of this bug. ***
*** Bug 504715 has been marked as a duplicate of this bug. ***
*** Bug 504800 has been marked as a duplicate of this bug. ***
*** Bug 505407 has been marked as a duplicate of this bug. ***
*** Bug 505465 has been marked as a duplicate of this bug. ***
*** Bug 505971 has been marked as a duplicate of this bug. ***
*** Bug 505970 has been marked as a duplicate of this bug. ***
*** Bug 506548 has been marked as a duplicate of this bug. ***
*** Bug 506734 has been marked as a duplicate of this bug. ***
*** Bug 506758 has been marked as a duplicate of this bug. ***
*** Bug 506886 has been marked as a duplicate of this bug. ***
*** Bug 508243 has been marked as a duplicate of this bug. ***
*** Bug 508344 has been marked as a duplicate of this bug. ***
*** Bug 508983 has been marked as a duplicate of this bug. ***
*** Bug 508999 has been marked as a duplicate of this bug. ***
*** Bug 509213 has been marked as a duplicate of this bug. ***
*** Bug 509282 has been marked as a duplicate of this bug. ***
*** Bug 509569 has been marked as a duplicate of this bug. ***
*** Bug 509573 has been marked as a duplicate of this bug. ***
*** Bug 511186 has been marked as a duplicate of this bug. ***
*** Bug 511366 has been marked as a duplicate of this bug. ***
*** Bug 512191 has been marked as a duplicate of this bug. ***
*** Bug 512386 has been marked as a duplicate of this bug. ***
*** Bug 512597 has been marked as a duplicate of this bug. ***
*** Bug 512729 has been marked as a duplicate of this bug. ***
*** Bug 513221 has been marked as a duplicate of this bug. ***
*** Bug 514231 has been marked as a duplicate of this bug. ***
*** Bug 515070 has been marked as a duplicate of this bug. ***
*** Bug 516068 has been marked as a duplicate of this bug. ***
*** Bug 516586 has been marked as a duplicate of this bug. ***
*** Bug 516775 has been marked as a duplicate of this bug. ***
*** Bug 518520 has been marked as a duplicate of this bug. ***
*** Bug 518850 has been marked as a duplicate of this bug. ***
*** Bug 477792 has been marked as a duplicate of this bug. ***
*** Bug 519837 has been marked as a duplicate of this bug. ***
*** Bug 520721 has been marked as a duplicate of this bug. ***
*** Bug 520586 has been marked as a duplicate of this bug. ***
*** Bug 520425 has been marked as a duplicate of this bug. ***
*** Bug 520520 has been marked as a duplicate of this bug. ***
*** Bug 521621 has been marked as a duplicate of this bug. ***
*** Bug 521580 has been marked as a duplicate of this bug. ***
*** Bug 521770 has been marked as a duplicate of this bug. ***
*** Bug 521965 has been marked as a duplicate of this bug. ***
*** Bug 484773 has been marked as a duplicate of this bug. ***