Bug 752509 - gnome-shell crashes after ALT-F1 and enter something in the search field
Summary: gnome-shell crashes after ALT-F1 and enter something in the search field
Keywords:
Status: CLOSED DUPLICATE of bug 741964
Alias: None
Product: Fedora
Classification: Fedora
Component: gnome-shell
Version: 16
Hardware: x86_64
OS: Linux
unspecified
urgent
Target Milestone: ---
Assignee: Owen Taylor
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-11-09 17:57 UTC by Michael Lausch
Modified: 2011-12-16 20:18 UTC (History)
15 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-12-16 20:18:58 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Stacktrace of a gnome shell crash during search (22.46 KB, text/plain)
2011-11-09 17:57 UTC, Michael Lausch
no flags Details
patch to guard against deref of NULL casefolded_exec ptr (678 bytes, patch)
2011-11-09 17:58 UTC, Michael Lausch
no flags Details | Diff

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 ***


Note You need to log in before you can comment on or make changes to this bug.