Bug 44497 - [EFL] Crash while hiding popup
Summary: [EFL] Crash while hiding popup
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit EFL (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Linux
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks: 43324
  Show dependency treegraph
 
Reported: 2010-08-24 00:13 PDT by Krzysztof Czech
Modified: 2010-08-25 15:24 PDT (History)
9 users (show)

See Also:


Attachments
Patch corrects a crash while calling PopupMenuEfl destructor (1001 bytes, patch)
2010-08-24 00:13 PDT, Krzysztof Czech
no flags Details | Formatted Diff | Diff
This patch corrects crash while hiding popup (1.09 KB, patch)
2010-08-24 01:21 PDT, Krzysztof Czech
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Krzysztof Czech 2010-08-24 00:13:11 PDT
Created attachment 65221 [details]
Patch corrects a crash while calling PopupMenuEfl destructor

The attached patch prevents crash when PopupMenuEfl's destructor is called. It was noticed that in some
circumstances popup menu is not shown and while destroying it, destructor tries to use undefined view to hide popup
Comment 1 Gyuyoung Kim 2010-08-24 00:42:27 PDT
You have to write bug's title, url and summary in Changelog as below,

 2010-08-22  Rafael Antognolli  <antognolli@profusion.mobi>
  2 
  3         Reviewed by Antonio Gomes.
  4 
  5         [EFL] Remove duplicated include entry from default theme.
  6         https://bugs.webkit.org/show_bug.cgi?id=44345
  7 
  8         This used to create the group webkit/widget/entry twice in
  9         the theme. It's leading to a bug with the newer versions of
 10         EFL.
 11 
 12         * DefaultTheme/default.edc:


Please add "[EFL]" prefix to this bug's title.
Comment 2 Krzysztof Czech 2010-08-24 01:21:47 PDT
Created attachment 65230 [details]
This patch corrects crash while hiding popup
Comment 3 Lucas De Marchi 2010-08-25 07:35:35 PDT
(In reply to comment #2)
> Created an attachment (id=65230) [details]
> This patch corrects crash while hiding popup

As far as I remember, there's no way to destroy the Popup with no view defined (or the behavior changed in WebCore since its implementation). Could you provide a stack trace when it crashes?
Comment 4 Krzysztof Czech 2010-08-25 08:01:58 PDT
The trace is as follows:
1. Load www.wikipedia.org
2. Input text in search box (it was emphasized that "test" should be written), but it happens in any other
3. press "->" button next to the search

This is a part of debug backtrace:
#0  0x4069b90c in WebCore::PopupMenu::hide() () from /usr/lib/libewebkit.so.0
#1  0x4069b938 in WebCore::PopupMenu::~PopupMenu() ()
   from /usr/lib/libewebkit.so.0
#2  0x4065ab18 in WebCore::RenderTextControlSingleLine::~RenderTextControlSingleLine() () from /usr/lib/libewebkit.so.0
#3  0x406339d0 in WebCore::RenderObject::arenaDelete(WebCore::RenderArena*, void*) () from /usr/lib/libewebkit.so.0
#4  0x403195e0 in WebCore::Node::detach() () from /usr/lib/libewebkit.so.0
#5  0x40305208 in WebCore::Element::detach() () from /usr/lib/libewebkit.so.0
...
Comment 5 Lucas De Marchi 2010-08-25 12:49:59 PDT
(In reply to comment #4)
> The trace is as follows:
> 1. Load www.wikipedia.org
> 2. Input text in search box (it was emphasized that "test" should be written), but it happens in any other
> 3. press "->" button next to the search
> 
> This is a part of debug backtrace:
> #0  0x4069b90c in WebCore::PopupMenu::hide() () from /usr/lib/libewebkit.so.0
> #1  0x4069b938 in WebCore::PopupMenu::~PopupMenu() ()
>    from /usr/lib/libewebkit.so.0
> #2  0x4065ab18 in WebCore::RenderTextControlSingleLine::~RenderTextControlSingleLine() () from /usr/lib/libewebkit.so.0
> #3  0x406339d0 in WebCore::RenderObject::arenaDelete(WebCore::RenderArena*, void*) () from /usr/lib/libewebkit.so.0
> #4  0x403195e0 in WebCore::Node::detach() () from /usr/lib/libewebkit.so.0
> #5  0x40305208 in WebCore::Element::detach() () from /usr/lib/libewebkit.so.0
> ...

Humn... maybe it's something related to bug 43324.

I'm not a reviewer, just a informal r+. I'm CCing some reviewers.
Comment 6 WebKit Commit Bot 2010-08-25 14:28:09 PDT
Comment on attachment 65230 [details]
This patch corrects crash while hiding popup

Clearing flags on attachment: 65230

Committed r66042: <http://trac.webkit.org/changeset/66042>
Comment 7 WebKit Commit Bot 2010-08-25 14:28:14 PDT
All reviewed patches have been landed.  Closing bug.
Comment 8 WebKit Review Bot 2010-08-25 15:24:55 PDT
http://trac.webkit.org/changeset/66042 might have broken Qt Linux Release
The following changes are on the blame list:
http://trac.webkit.org/changeset/66041
http://trac.webkit.org/changeset/66042