GNOME Bugzilla – Bug 549986
crash in Help: I've tried to open items...
Last modified: 2008-09-01 20:01:14 UTC
Version: 2.22.1 What were you doing when the application crashed? I've tried to open items with txt extension in Debian Lenny help. This bug was also reported in Debian reportbug number 497086 Distribution: Debian lenny/sid Gnome Release: 2.22.3 2008-06-30 (Debian) BugBuddy Version: 2.22.0 System: Linux 2.6.26-1-amd64 #1 SMP Wed Aug 20 12:09:32 UTC 2008 x86_64 X Vendor: The X.Org Foundation X Vendor Release: 10402000 Selinux: No Accessibility: Enabled GTK+ Theme: Mist Icon Theme: Mist Memory status: size: 499089408 vsize: 499089408 resident: 65245184 share: 27041792 rss: 65245184 rss_rlim: 18446744073709551615 CPU usage: start_time: 1220126990 rtime: 1990 utime: 1246 stime: 744 cutime:25 cstime: 27 timeout: 0 it_real_value: 0 frequency: 100 Backtrace was generated from '/usr/bin/yelp' [Thread debugging using libthread_db enabled] [New Thread 0x7faf95f07780 (LWP 22577)] [New Thread 0x432e5950 (LWP 29711)] [New Thread 0x42ae4950 (LWP 22581)] [New Thread 0x422e3950 (LWP 22580)] [New Thread 0x41ae2950 (LWP 22579)] [New Thread 0x40d24950 (LWP 22578)] 0x00007faf928bd5ff in waitpid () from /lib/libpthread.so.0
+ Trace 205900
Thread 1 (Thread 0x7faf95f07780 (LWP 22577))
----------- .xsession-errors (6 sec old) --------------------- ** (yelp:22577): WARNING **: Exception in gr::RangeSegment ** (yelp:22577): WARNING **: Exception in gr::RangeSegment ** (yelp:22577): WARNING **: Exception in gr::RangeSegment ** (yelp:22577): WARNING **: Exception in gr::RangeSegment ** (yelp:22577): WARNING **: Exception in gr::RangeSegment ** (yelp:22577): WARNING **: Exception in gr::RangeSegment (yelp:22577): GLib-CRITICAL **: g_str_has_suffix: assertion `suffix != NULL' failed (yelp:22577): GLib-CRITICAL **: g_str_has_suffix: assertion `suffix != NULL' failed --------------------------------------------------
Created attachment 117680 [details] [review] Fix incorrect pointer check This patch fixes the crash (a wrong pointer check) but the text files will still refuse to open.
Created attachment 117682 [details] [review] Accept text/plain documents And these are the changes needed to make text/plain documents accessible.
Thanks for the bug report and thanks the patch. I've committed the first patch to SVN. I don't think it's yelp's job to open text files - we have a perfectly good text editor ;) I've instead made text documents default to opening in the users preferred application. Marking as Fixed. 2008-09-01 Don Scorgie <dscorgie@svn.gnome.org> * src/yelp-utils.c (resolve_is_man_path): Don't crash when trying to load text files bug #549986 - Josselin Mouette
(In reply to comment #3) > Thanks for the bug report and thanks the patch. I've committed the first patch > to SVN. I don't think it's yelp's job to open text files - we have a perfectly > good text editor ;) Well, we have a good web browser, yet yelp opens HTML documents. If they are registered in scrollkeeper, it means they are relevant for yelp, whether they are HTML, XML or text.