yelp crashed with SIGSEGV in strlen()

Bug #272477 reported by Michal Domzalski
22
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Yelp
Fix Released
Critical
yelp (Ubuntu)
Fix Released
Medium
Ubuntu Desktop Bugs

Bug Description

Binary package hint: yelp

it crashed while using "search" feature

ProblemType: Crash
Architecture: i386
DistroRelease: Ubuntu 8.10
ExecutablePath: /usr/bin/yelp
NonfreeKernelModules: ath_hal
Package: yelp 2.23.91-0ubuntu1
ProcAttrCurrent: unconfined
ProcCmdline: yelp
ProcEnviron:
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
 LANG=pl_PL.UTF-8
 SHELL=/bin/bash
Signal: 11
SourcePackage: yelp
StacktraceTop:
 strlen () from /lib/tls/i686/cmov/libc.so.6
 ?? ()
 ?? ()
 rrn_for_each () from /usr/lib/librarian.so.0
 ?? ()
Title: yelp crashed with SIGSEGV in strlen()
Uname: Linux 2.6.27-3-generic i686
UserGroups: adm admin audio cdrom dialout dip fuse lpadmin netdev plugdev sambashare video

Revision history for this message
Michal Domzalski (michaldom) wrote :
Revision history for this message
Apport retracing service (apport) wrote : Symbolic stack trace

StacktraceTop:?? ()
slow_search_process (reg=0xb2dbd198, data=0x948a280) at yelp-search-parser.c:1136
?? ()
slow_search_setup (parser=0x953d298) at yelp-search-parser.c:946
?? ()

Revision history for this message
Apport retracing service (apport) wrote : Symbolic threaded stack trace
Revision history for this message
Adam Jeżewski (echinos) wrote :

Confirming this bug.

Ubuntu 8.10 Beta
yelp 2.24.0-0ubuntu1

Only affect LANG=pl_PL.UTF-8
When I try to search "guest" or "network", program always crash. Everything is OK when I search for example "ubuntu".
On LANG=en_US.UTF-8 everything works fine.

Revision history for this message
Pedro Villavicencio (pedro) wrote :

Thanks for your bug report. Please try to obtain a backtrace http://wiki.ubuntu.com/DebuggingProgramCrash and attach the file to the bug report. This will greatly help us in tracking down your problem.

Changed in yelp:
assignee: nobody → desktop-bugs
importance: Undecided → Medium
status: New → Incomplete
Revision history for this message
Adam Jeżewski (echinos) wrote :

Backtrace added.

Revision history for this message
Adam Jeżewski (echinos) wrote :

Added backtrace

Changed in yelp:
status: Incomplete → New
Revision history for this message
Pedro Villavicencio (pedro) wrote :

thanks, it looks like bug http://bugzilla.gnome.org/show_bug.cgi?id=552947 which is known upstream, linking it thanks again.

Changed in yelp:
status: New → Triaged
Changed in yelp:
status: Unknown → New
Revision history for this message
Antonio Litterio (antonio-litterio-gmail) wrote :

Hi all
I noticed that when search the word "server" (without " character ) with yelp application this crash. I have reproduced this problem up two different computer with Ubuntu 8.10.

In the log file I noticed this string problem:
yelp[6690]: segfault at 0 ip b741e2c3 sp bff0551c error 4 in libc-2.8.90.so[b73a7000+158000]

Revision history for this message
Antonio Litterio (antonio-litterio-gmail) wrote :

I have solved this bug.
The error it is in function "search_clean_snippet" when search single word in this while chicle:

 while ((str = strstr (result, (iteration[i])))) {
     gboolean breaking = FALSE;
     gint i;
     str = strstr (str, (iteration[i]));
  if (!str) {
      breaking = TRUE;
      break;
  }
     }

first of all I have changed the variable i with k, and I have add the control in end iterator, that was the problem.

 while ((str = strstr (result, (iteration[i])))) {
     gboolean breaking = FALSE;
     gint k;
     for (k=0; k< count; k++) {
  str++;
  if(iteration[k] ==NULL){
      breaking = TRUE;
      break;
  }
  str = strstr (str, (iteration[k]));
  if (!str) {
      breaking = TRUE;
      break;
  }
     }

Revision history for this message
Antonio Litterio (antonio-litterio-gmail) wrote :

Sorry this patch it is correct

Revision history for this message
Antonio Litterio (antonio-litterio-gmail) wrote :

Now in the Ubuntu 9.04 it is fix

Revision history for this message
Pēteris Krišjānis (pecisk-gmail) wrote :

I got this one in Jaunty with up to date updates 25.02.2009. Is this fix coming?

Changed in yelp:
status: New → Fix Released
Revision history for this message
Robert Ancell (robert-ancell) wrote :

This was fixed in 2.25.1 (in Jaunty from 2009-03-05)

Changed in yelp (Ubuntu):
status: Triaged → Fix Released
Changed in yelp:
importance: Unknown → Critical
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.