Bug 45033 - [GTK] Plugin crash when browsing Dailymotion.com
Summary: [GTK] Plugin crash when browsing Dailymotion.com
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords:
: 44408 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-09-01 05:10 PDT by Philippe Normand
Modified: 2011-08-29 00:48 PDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philippe Normand 2010-09-01 05:10:51 PDT
Will get a debug build and try to post a stack trace later on. For now I can see:


(GtkLauncher:16969): GLib-GIO-CRITICAL **: g_socket_set_blocking: assertion `G_IS_SOCKET (socket)' failed

(GtkLauncher:16969): GLib-GIO-CRITICAL **: g_socket_get_protocol: assertion `G_IS_SOCKET (socket)' failed

(GtkLauncher:16969): GLib-GIO-CRITICAL **: g_socket_get_socket_type: assertion `G_IS_SOCKET (socket)' failed

(GtkLauncher:16969): GLib-GIO-CRITICAL **: g_socket_get_family: assertion `G_IS_SOCKET (socket)' failed
**
GLib-GIO:ERROR:gsocketconnection.c:218:g_socket_connection_constructed: assertion failed: (connection->priv->socket != NULL)
Aborted (core dumped)
Comment 1 Philippe Normand 2010-09-01 07:56:42 PDT
ASSERTION FAILED: m_streamState == StreamStarted
(../../WebCore/plugins/PluginStream.cpp:458 virtual void WebCore::PluginStream::didFinishLoading(WebCore::NetscapePlugInStreamLoader*))

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff5a530a1 in WebCore::PluginStream::didFinishLoading (this=0x7fff580223e0, loader=0x7fff58020a20)
    at ../../WebCore/plugins/PluginStream.cpp:458
458	    ASSERT(m_streamState == StreamStarted);
(gdb) bt
#0  0x00007ffff5a530a1 in WebCore::PluginStream::didFinishLoading (this=0x7fff580223e0, loader=0x7fff58020a20)
    at ../../WebCore/plugins/PluginStream.cpp:458
#1  0x00007ffff58f9ee3 in WebCore::NetscapePlugInStreamLoader::didFinishLoading (this=0x7fff58020a20)
    at ../../WebCore/loader/NetscapePlugInStreamLoader.cpp:103
#2  0x00007ffff5904b7f in WebCore::ResourceLoader::didFinishLoading (this=0x7fff58020a20)
    at ../../WebCore/loader/ResourceLoader.cpp:444
#3  0x00007ffff5e1b25d in finishedCallback (session=0x678330, msg=0x128f850, data=0x7fff58002d40)
    at ../../WebCore/platform/network/soup/ResourceHandleSoup.cpp:339
#4  0x00007fffeffd342a in process_queue_item (item=0x183f160, should_prune=0x7fffffffd70c, loop=1)
    at soup-session-async.c:383
#5  0x00007fffeffd3691 in run_queue (sa=<value optimized out>) at soup-session-async.c:418
#6  0x00007fffeffd3743 in idle_run_queue (sa=0x678330) at soup-session-async.c:443
#7  0x00007ffff21bda32 in g_main_dispatch (context=0x63ddd0) at gmain.c:2119
#8  g_main_context_dispatch (context=0x63ddd0) at gmain.c:2672
#9  0x00007ffff21c1988 in g_main_context_iterate (context=0x63ddd0, block=<value optimized out>, 
    dispatch=<value optimized out>, self=<value optimized out>) at gmain.c:2750
#10 0x00007ffff21c1e95 in g_main_loop_run (loop=0xd5c4f0) at gmain.c:2958
#11 0x00007ffff4627977 in IA__gtk_main () at gtkmain.c:1237
#12 0x00000000004027e8 in main (argc=2, argv=0x7fffffffda68) at ../../WebKitTools/GtkLauncher/main.c:224
(gdb) t a a bt

Thread 19 (Thread 0x7fff57fff710 (LWP 16273)):
#0  0x00007ffff1cc1103 in *__GI___poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=4889)
    at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007fffebc478ce in send_dg (statp=0x7fff57fffdc8, buf=<value optimized out>, 
    buflen=<value optimized out>, buf2=0x7fff57ffcedc "\244\356\001", buflen2=<value optimized out>, 
    ans=0x7fff57ffdaf0 "\317\022\201\200", anssiz=2048, ansp=0x7fff57ffe360, ansp2=0x7fff57ffe358, 
    nansp2=0x7fff57ffe37c, resplen2=0x7fff57ffe378) at res_send.c:1062
#2  __libc_res_nsend (statp=0x7fff57fffdc8, buf=<value optimized out>, buflen=<value optimized out>, 
    buf2=0x7fff57ffcedc "\244\356\001", buflen2=<value optimized out>, ans=0x7fff57ffdaf0 "\317\022\201\200", 
    anssiz=2048, ansp=0x7fff57ffe360, ansp2=0x7fff57ffe358, nansp2=0x7fff57ffe37c, resplen2=0x7fff57ffe378)
    at res_send.c:553
#3  0x00007fffebc45a75 in *__GI___libc_res_nquery (statp=0x7fff57fffdc8, name=<value optimized out>, 
    class=<value optimized out>, type=<value optimized out>, answer=0x7fff57ffdaf0 "\317\022\201\200", 
    anslen=<value optimized out>, answerp=0x7fff57ffe360, answerp2=0x7fff57ffe358, nanswerp2=0x7fff57ffe37c, 
    resplen2=0x7fff57ffe378) at res_query.c:225
#4  0x00007fffebc46031 in __libc_res_nquerydomain (statp=0x7fff57fffdc8, 
    name=0x17aaeb0 "erroracct.dailymotion.com", domain=0x18 <Address 0x18 out of bounds>, 
    class=<value optimized out>, type=62321, answer=0x7fff57ffdaf0 "\317\022\201\200", anslen=2048, 
    answerp=0x7fff57ffe360, answerp2=0x7fff57ffe358, nanswerp2=0x7fff57ffe37c, resplen2=0x7fff57ffe378)
    at res_query.c:576
#5  0x00007fffebc4643d in *__GI___libc_res_nsearch (statp=0x7fff57fffdc8, name=<value optimized out>, 
    class=<value optimized out>, type=<value optimized out>, answer=0x7fff57ffdaf0 "\317\022\201\200", 
    anslen=2048, answerp=0x7fff57ffe360, answerp2=0x7fff57ffe358, nanswerp2=0x7fff57ffe37c, 
    resplen2=0x7fff57ffe378) at res_query.c:377
#6  0x00007fffe0172c37 in _nss_dns_gethostbyname4_r (name=0x17aaeb0 "erroracct.dailymotion.com", 
    pat=0x7fff57ffe958, buffer=<value optimized out>, buflen=<value optimized out>, 
    errnop=<value optimized out>, herrnop=<value optimized out>, ttlp=0x0) at nss_dns/dns-host.c:314
#7  0x00007ffff1ca84ac in gaih_inet (name=<value optimized out>, service=<value optimized out>, 
    req=<value optimized out>, pai=<value optimized out>, naddrs=<value optimized out>)
    at ../sysdeps/posix/getaddrinfo.c:715
#8  0x00007ffff1caa7a2 in *__GI_getaddrinfo (name=0x17aaeb0 "erroracct.dailymotion.com", service=0x0, 
    hints=0x7ffff3ff8ae0, pai=0x7fff57ffeba8) at ../sysdeps/posix/getaddrinfo.c:2153
#9  0x00007ffff3d5329c in do_lookup_by_name (req=0x7fff58019180, error=0x7fff580191a8) at gthreadedresolver.c:373
#10 0x00007ffff3d52b8a in threaded_resolver_thread (thread_data=0x7fff57ffce20, pool_data=<value optimized out>)
    at gthreadedresolver.c:308
#11 0x00007ffff21e8def in g_thread_pool_thread_proxy (data=<value optimized out>) at gthreadpool.c:314
#12 0x00007ffff21e6f24 in g_thread_create_proxy (data=0x148acc0) at gthread.c:1897
#13 0x00007ffff1f648ba in start_thread (arg=<value optimized out>) at pthread_create.c:300
#14 0x00007ffff1ccc01d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#15 0x0000000000000000 in ?? ()

Thread 18 (Thread 0x7fff5caba710 (LWP 16272)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:211
#1  0x00007ffff2686402 in g_cond_timed_wait_posix_impl (cond=0x682fa4, entered_mutex=0x189, 
    abs_time=<value optimized out>) at gthread-posix.c:242
#2  0x00007ffff21945b1 in g_async_queue_pop_intern_unlocked (queue=0x6d4460, try=0, end_time=0x7fff5cab9bf0)
    at gasyncqueue.c:423
#3  0x00007ffff21e8e21 in g_thread_pool_wait_for_new_task (data=<value optimized out>) at gthreadpool.c:269
#4  g_thread_pool_thread_proxy (data=<value optimized out>) at gthreadpool.c:303
#5  0x00007ffff21e6f24 in g_thread_create_proxy (data=0x7fff5805fb40) at gthread.c:1897
#6  0x00007ffff1f648ba in start_thread (arg=<value optimized out>) at pthread_create.c:300
#7  0x00007ffff1ccc01d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#8  0x0000000000000000 in ?? ()

Thread 17 (Thread 0x7fff56e3c710 (LWP 16271)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:211
#1  0x00007ffff2686402 in g_cond_timed_wait_posix_impl (cond=0x682fa4, entered_mutex=0x189, 
    abs_time=<value optimized out>) at gthread-posix.c:242
#2  0x00007ffff21945b1 in g_async_queue_pop_intern_unlocked (queue=0x6d4460, try=0, end_time=0x7fff56e3bbf0)
    at gasyncqueue.c:423
#3  0x00007ffff21e8e21 in g_thread_pool_wait_for_new_task (data=<value optimized out>) at gthreadpool.c:269
#4  g_thread_pool_thread_proxy (data=<value optimized out>) at gthreadpool.c:303
#5  0x00007ffff21e6f24 in g_thread_create_proxy (data=0x1549470) at gthread.c:1897
---Type <return> to continue, or q <return> to quit---
#6  0x00007ffff1f648ba in start_thread (arg=<value optimized out>) at pthread_create.c:300
#7  0x00007ffff1ccc01d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#8  0x0000000000000000 in ?? ()

Thread 16 (Thread 0x7fff5663b710 (LWP 16270)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:211
#1  0x00007ffff2686402 in g_cond_timed_wait_posix_impl (cond=0x682fa4, entered_mutex=0x189, 
    abs_time=<value optimized out>) at gthread-posix.c:242
#2  0x00007ffff21945b1 in g_async_queue_pop_intern_unlocked (queue=0x6d4460, try=0, end_time=0x7fff5663abf0)
    at gasyncqueue.c:423
#3  0x00007ffff21e8e21 in g_thread_pool_wait_for_new_task (data=<value optimized out>) at gthreadpool.c:269
#4  g_thread_pool_thread_proxy (data=<value optimized out>) at gthreadpool.c:303
#5  0x00007ffff21e6f24 in g_thread_create_proxy (data=0x1670500) at gthread.c:1897
#6  0x00007ffff1f648ba in start_thread (arg=<value optimized out>) at pthread_create.c:300
#7  0x00007ffff1ccc01d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#8  0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7fffe0b76710 (LWP 16248)):
#0  0x00007ffff1cc1103 in *__GI___poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=4764)
    at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007fffebc478ce in send_dg (statp=0x7fffe0b76dc8, buf=<value optimized out>, 
    buflen=<value optimized out>, buf2=0x7fffe0b73ed4 "\340\253\001", buflen2=<value optimized out>, 
    ans=0x7fffe0b74af0 "ુ\200", anssiz=2048, ansp=0x7fffe0b75360, ansp2=0x7fffe0b75358, nansp2=0x7fffe0b7537c, 
    resplen2=0x7fffe0b75378) at res_send.c:1062
#2  __libc_res_nsend (statp=0x7fffe0b76dc8, buf=<value optimized out>, buflen=<value optimized out>, 
    buf2=0x7fffe0b73ed4 "\340\253\001", buflen2=<value optimized out>, ans=0x7fffe0b74af0 "ુ\200", 
    anssiz=2048, ansp=0x7fffe0b75360, ansp2=0x7fffe0b75358, nansp2=0x7fffe0b7537c, resplen2=0x7fffe0b75378)
    at res_send.c:553
#3  0x00007fffebc45a75 in *__GI___libc_res_nquery (statp=0x7fffe0b76dc8, name=<value optimized out>, 
    class=<value optimized out>, type=<value optimized out>, answer=0x7fffe0b74af0 "ુ\200", 
    anslen=<value optimized out>, answerp=0x7fffe0b75360, answerp2=0x7fffe0b75358, nanswerp2=0x7fffe0b7537c, 
    resplen2=0x7fffe0b75378) at res_query.c:225
#4  0x00007fffebc46031 in __libc_res_nquerydomain (statp=0x7fffe0b76dc8, name=0xfd0d00 "www.BrettNovak.com", 
    domain=0x11 <Address 0x11 out of bounds>, class=<value optimized out>, type=62321, 
    answer=0x7fffe0b74af0 "ુ\200", anslen=2048, answerp=0x7fffe0b75360, answerp2=0x7fffe0b75358, 
    nanswerp2=0x7fffe0b7537c, resplen2=0x7fffe0b75378) at res_query.c:576
#5  0x00007fffebc4643d in *__GI___libc_res_nsearch (statp=0x7fffe0b76dc8, name=<value optimized out>, 
    class=<value optimized out>, type=<value optimized out>, answer=0x7fffe0b74af0 "ુ\200", anslen=2048, 
    answerp=0x7fffe0b75360, answerp2=0x7fffe0b75358, nanswerp2=0x7fffe0b7537c, resplen2=0x7fffe0b75378)
    at res_query.c:377
#6  0x00007fffe0172c37 in _nss_dns_gethostbyname4_r (name=0xfd0d00 "www.BrettNovak.com", pat=0x7fffe0b75958, 
    buffer=<value optimized out>, buflen=<value optimized out>, errnop=<value optimized out>, 
    herrnop=<value optimized out>, ttlp=0x0) at nss_dns/dns-host.c:314
#7  0x00007ffff1ca84ac in gaih_inet (name=<value optimized out>, service=<value optimized out>, 
    req=<value optimized out>, pai=<value optimized out>, naddrs=<value optimized out>)
    at ../sysdeps/posix/getaddrinfo.c:715
#8  0x00007ffff1caa7a2 in *__GI_getaddrinfo (name=0xfd0d00 "www.BrettNovak.com", service=0x0, 
    hints=0x7ffff3ff8ae0, pai=0x7fffe0b75ba8) at ../sysdeps/posix/getaddrinfo.c:2153
#9  0x00007ffff3d5329c in do_lookup_by_name (req=0x7c62a0, error=0x7c62c8) at gthreadedresolver.c:373
#10 0x00007ffff3d52b8a in threaded_resolver_thread (thread_data=0x7fffe0b73e20, pool_data=<value optimized out>)
    at gthreadedresolver.c:308
#11 0x00007ffff21e8def in g_thread_pool_thread_proxy (data=<value optimized out>) at gthreadpool.c:314
#12 0x00007ffff21e6f24 in g_thread_create_proxy (data=0xdbde30) at gthread.c:1897
#13 0x00007ffff1f648ba in start_thread (arg=<value optimized out>) at pthread_create.c:300
#14 0x00007ffff1ccc01d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#15 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7fffe902b710 (LWP 16212)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007ffff6363872 in WTF::ThreadCondition::wait (this=0x6d19b0, mutex=...)
    at ../../JavaScriptCore/wtf/ThreadingPthreads.cpp:359
#2  0x00007ffff5c24007 in WebCore::IconDatabase::syncThreadMainLoop (this=0x6d18e0)
    at ../../WebCore/loader/icon/IconDatabase.cpp:1419
#3  0x00007ffff5c22530 in WebCore::IconDatabase::iconDatabaseSyncThread (this=0x6d18e0)
---Type <return> to continue, or q <return> to quit---
    at ../../WebCore/loader/icon/IconDatabase.cpp:1043
#4  0x00007ffff5c22076 in WebCore::IconDatabase::iconDatabaseSyncThreadStart (vIconDatabase=0x6d18e0)
    at ../../WebCore/loader/icon/IconDatabase.cpp:946
#5  0x00007ffff6362b71 in threadEntryPoint (contextData=0x6cd180) at ../../JavaScriptCore/wtf/Threading.cpp:65
#6  0x00007ffff1f648ba in start_thread (arg=<value optimized out>) at pthread_create.c:300
#7  0x00007ffff1ccc01d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#8  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7ffff7fbe980 (LWP 16209)):
#0  0x00007ffff5a530a1 in WebCore::PluginStream::didFinishLoading (this=0x7fff580223e0, loader=0x7fff58020a20)
    at ../../WebCore/plugins/PluginStream.cpp:458
#1  0x00007ffff58f9ee3 in WebCore::NetscapePlugInStreamLoader::didFinishLoading (this=0x7fff58020a20)
    at ../../WebCore/loader/NetscapePlugInStreamLoader.cpp:103
#2  0x00007ffff5904b7f in WebCore::ResourceLoader::didFinishLoading (this=0x7fff58020a20)
    at ../../WebCore/loader/ResourceLoader.cpp:444
#3  0x00007ffff5e1b25d in finishedCallback (session=0x678330, msg=0x128f850, data=0x7fff58002d40)
    at ../../WebCore/platform/network/soup/ResourceHandleSoup.cpp:339
#4  0x00007fffeffd342a in process_queue_item (item=0x183f160, should_prune=0x7fffffffd70c, loop=1)
    at soup-session-async.c:383
#5  0x00007fffeffd3691 in run_queue (sa=<value optimized out>) at soup-session-async.c:418
#6  0x00007fffeffd3743 in idle_run_queue (sa=0x678330) at soup-session-async.c:443
#7  0x00007ffff21bda32 in g_main_dispatch (context=0x63ddd0) at gmain.c:2119
#8  g_main_context_dispatch (context=0x63ddd0) at gmain.c:2672
#9  0x00007ffff21c1988 in g_main_context_iterate (context=0x63ddd0, block=<value optimized out>, 
    dispatch=<value optimized out>, self=<value optimized out>) at gmain.c:2750
#10 0x00007ffff21c1e95 in g_main_loop_run (loop=0xd5c4f0) at gmain.c:2958
#11 0x00007ffff4627977 in IA__gtk_main () at gtkmain.c:1237
#12 0x00000000004027e8 in main (argc=2, argv=0x7fffffffda68) at ../../WebKitTools/GtkLauncher/main.c:224
Comment 2 Xan Lopez 2010-09-01 08:08:44 PDT
This is a glib bug, already fixed in master.
Comment 3 Philippe Normand 2010-09-01 08:17:50 PDT
I use glib master.
Just try the launcher with http://www.dailymotion.com/video/xehfry_joe-flemke-a-short-skate-film_sport#hp-sc-p-1

You need a webkitgtk2 build, won't work with gtk3 because that page uses the flash plugin.
Comment 4 Alejandro G. Castro 2010-09-01 08:54:11 PDT
*** Bug 44408 has been marked as a duplicate of this bug. ***
Comment 5 Martin Robinson 2011-06-24 15:20:10 PDT
I no longer see this assertion failure with master. Can you confirm?
Comment 6 Philippe Normand 2011-08-29 00:48:55 PDT
Works fine now!