Bug 26344 - [gtk] crash when trying to hide then select an <input>
Summary: [gtk] crash when trying to hide then select an <input>
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC OS X 10.5
: P2 Normal
Assignee: Nobody
URL: http://www.fdn.fr/~arenevier/tmp/webk...
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-12 01:38 PDT by arno.
Modified: 2010-03-03 13:19 PST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description arno. 2009-06-12 01:38:25 PDT
Hi, GtkLauncher crashes when setting .style.display = "none"; then calling .select() method of an input.


#0  0x00007fb99025de35 in WebCore::RenderTextControl::setSelectionRange () from /home/arno/midori/WebKit/.libs/libwebkit-1.0.so.2
#1  0x00007fb99025e210 in WebCore::RenderTextControl::select () from /home/arno/midori/WebKit/.libs/libwebkit-1.0.so.2
#2  0x00007fb9904d8041 in WebCore::jsHTMLInputElementPrototypeFunctionSelect () from /home/arno/midori/WebKit/.libs/libwebkit-1.0.so.2
#3  0x00007fb9812b92f4 in ?? ()
#4  0x00007fb980a260f8 in ?? ()
#5  0x0000000000000000 in ?? ()
Comment 1 Gustavo Noronha (kov) 2009-07-19 04:14:44 PDT
Hey, can you post a more complete trace? Specially, the message that comes before #0 is very useful most of the times. This doesn't seem to be GTK+-specific, too.
Comment 2 arno. 2009-07-19 14:01:13 PDT
22:59 ~ % gdb ~/midori/WebKit/Programs/GtkLauncher                                                         
GNU gdb (GDB) 6.8.50.20090628-cvs-debian
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
(gdb) run http://www.fdn.fr/~arenevier/tmp/webkit_crash_select.html
Starting program: /home/arno/midori/WebKit/Programs/GtkLauncher http://www.fdn.fr/~arenevier/tmp/webkit_crash_select.html
[Thread debugging using libthread_db enabled]
[New Thread 0x7fffe8dd0950 (LWP 15116)]
[Thread 0x7fffe8dd0950 (LWP 15116) exited]

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7576e80 in WebCore::RenderTextControl::setSelectionRange(int, int) () from /home/arno/midori/WebKit/.libs/libwebkit-1.0.so.2
Current language:  auto; currently asm
(gdb) where
#0  0x00007ffff7576e80 in WebCore::RenderTextControl::setSelectionRange(int, int) () from /home/arno/midori/WebKit/.libs/libwebkit-1.0.so.2
#1  0x00007ffff75772b0 in WebCore::RenderTextControl::select() () from /home/arno/midori/WebKit/.libs/libwebkit-1.0.so.2
#2  0x00007ffff77e9101 in WebCore::jsHTMLInputElementPrototypeFunctionSelect(JSC::ExecState*, JSC::JSObject*, JSC::JSValue, JSC::ArgList const&) () from /home/arno/midori/WebKit/.libs/libwebkit-1.0.so.2
#3  0x00007fffeb0482e4 in ?? ()
#4  0x00007fffe39e90f8 in ?? ()
#5  0x0000000000000000 in ?? ()
Comment 3 arno. 2010-03-03 13:19:46 PST
bug does not happen any more with latest webkit.