Bug 752509

Summary: gnome-shell crashes after ALT-F1 and enter something in the search field
Product: [Fedora] Fedora Reporter: Michael Lausch <mick.lausch>
Component: gnome-shellAssignee: Owen Taylor <otaylor>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 16CC: alex, browning48ky, ca.grajesh, clasohm, fedora, fedora, hhlouzao, maxamillion, otaylor, patrick, rudd-o, samkraju, theseer, thomas.pochetat, walters
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-12-16 20:18:58 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Stacktrace of a gnome shell crash during search
none
patch to guard against deref of NULL casefolded_exec ptr none

Description Michael Lausch 2011-11-09 17:57:27 UTC
Created attachment 532626 [details]
Stacktrace of a gnome shell crash during search

Description of problem:
After pressing ALT-F1 I enter a search term in the right upper field to start and application. gnome-shell crashes with SIGSEGV.

Version-Release number of selected component (if applicable):
gnome-shell-3.2.1-2.fc16.x86_64

How reproducible:
Everytime

Steps to Reproduce:
1. Press ALT-F1
2. goto search field (right upper corner)
3.enter something
  
Actual results:
gnome-shell crashes

Expected results:
application icons open

Additional info:
The crash is caused by dereferencing a NULL pointer in function _shell_app_match_search_term when it is used at line 1405 in the strstr() call.
I implemented a band aid, attached as patch to this ticket which resolved the problem. I'm not sure if I really caught the root cause.

Comment 1 Michael Lausch 2011-11-09 17:58:40 UTC
Created attachment 532627 [details]
patch to guard against deref of NULL casefolded_exec ptr

Comment 2 CA G Rajesh 2011-11-10 08:19:24 UTC
Confirmed in fedora-16 too. Starting to search using system key crashes the shell.

Comment 3 Patrick Reinhart 2011-11-23 17:00:06 UTC
I got the same problem here after upgrading from Fedora-15 to Fedora-16. The following messages entries where created after hitting the first key in the activities view:

Nov 23 17:51:55 bisonws0043 kernel: [27053.047119] gnome-shell[16207]: segfault at 0 ip 00007f5b4c83f028 sp 00007fff2883cd08 error 4 in libc-2.14.90.so[7f5b4c711000+1aa000]
Nov 23 17:51:55 bisonws0043 gnome-session[16019]: WARNING: Application 'gnome-shell.desktop' killed by signal

Using gnome-shell-3.2.1-2.fc16.x86_64

Comment 4 ThomasP 2011-11-25 13:49:23 UTC
Using gnome-shell-3.2.1-2.fc16.x86_64 too, I got the same problem today after installing some Nautilus extensions ( nautilus-search-tool, nautilus-sendto, nautilus-pastebin ).

I removed them and now no more crashes when I enter something in the search field.

Maybe nothing to do.

Comment 5 Arne Blankerts 2011-11-28 23:36:40 UTC
Indeed, removing nautilus-pastebin fixes the crashes for me as well. The other two plugins seem to not cause any trouble here. As soon as the pastebin-plugin is installed though, gnome-shell dies (and restarts) when i try to use the search functionality.

Comment 6 Russell Harrison 2011-11-29 00:16:57 UTC
I also found that removing nautilus-pastebin seems to have fixed the issue for me.

Comment 7 Patrick Reinhart 2011-12-04 14:19:44 UTC
Removing nautilus-pastebin fixed it for me too.

Comment 8 Rudd-O DragonFear 2011-12-05 10:59:31 UTC
Nautilus-pastebin has a desktop file that makes shell choke.

there are other bugs similar to this:

https://bugzilla.redhat.com/show_bug.cgi?id=760042

Comment 9 Owen Taylor 2011-12-16 20:18:58 UTC

*** This bug has been marked as a duplicate of bug 741964 ***