Bug 290297
| Summary: | [WebDriver][WPE] Crash in WPEWebDriver Session::performActions due to bad optional access | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Lauro Moura <lmoura> |
| Component: | WebDriver | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | Normal | CC: | bburg |
| Priority: | P2 | ||
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| See Also: | https://bugs.webkit.org/show_bug.cgi?id=293703 | ||
Lauro Moura
Happens twice in a full test run, but could not pinpoint exactly where yet.
Trace:
#0 __pthread_kill_implementation (no_tid=0, signo=6, threadid=<optimized out>) at ./nptl/pthread_kill.c:44
#1 __pthread_kill_internal (signo=6, threadid=<optimized out>) at ./nptl/pthread_kill.c:78
#2 __GI___pthread_kill (threadid=<optimized out>, signo=signo@entry=6) at ./nptl/pthread_kill.c:89
#3 0x00007257b8c5126e in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#4 0x00007257b8c348ff in __GI_abort () at ./stdlib/abort.c:79
#5 0x000061fdd6d9f7a6 in std::__throw_bad_optional_access() ()
#6 0x000061fdd6dd1244 in WebDriver::Session::performActions(WTF::Vector<WTF::Vector<WebDriver::Action, 0ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc>, 0ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc>&&, WTF::Function<void (WebDriver::CommandResult&&)>&&)::$_0::operator()(WebDriver::CommandResult&&) ()
#7 0x000061fdd6da2ed7 in WTF::Detail::CallableWrapper<WebDriver::Session::handleUserPrompts(WTF::Function<void (WebDriver::CommandResult&&)>&&)::$_0, void, WebDriver::SessionHost::CommandResponse&&>::call(WebDriver::SessionHost::CommandResponse&&) ()
#8 0x000061fdd6dd4e7d in WebDriver::SessionHost::dispatchMessage(WTF::String const&) ()
#9 0x000061fdd6dfea2a in WebDriver::SessionHost::messageHandlers()::$_3::__invoke(WTF::SocketConnection&, _GVariant*, void*) ()
#10 0x000061fdd6e4b917 in WTF::SocketConnection::readMessage() ()
#11 0x000061fdd6e4b538 in WTF::SocketConnection::read() ()
#12 0x000061fdd6e4be59 in WTF::Detail::CallableWrapper<WTF::SocketConnection::SocketConnection(WTF::GRefPtr<_GSocketConnection>&&, WTF::HashMap<WTF::CString, std::pair<WTF::CString, void (*)(WTF::SocketConnection&, _GVariant*, void*)>, WTF::DefaultHash<WTF::CString>, WTF::HashTraits<WTF::CString>, WTF::HashTraits<std::pair<WTF::CString, void (*)(WTF::SocketConnection&, _GVariant*, void*)> >, WTF::HashTableTraits, (WTF::ShouldValidateKey)0, WTF::FastMalloc> const&, void*)::$_0, int, GIOCondition>::call(GIOCondition) ()
#13 0x000061fdd6e496b4 in WTF::GSocketMonitor::socketSourceCallback(_GSocket*, GIOCondition, WTF::GSocketMonitor*) ()
#14 0x00007257b94f9bb1 in socket_source_dispatch (source=source@entry=0x61fdeb290d40, callback=0x61fdd6e49680 <WTF::GSocketMonitor::socketSourceCallback(_GSocket*, GIOCondition, WTF::GSocketMonitor*)>, user_data=0x7257ae004330)
at ../../../gio/gsocket.c:4267
#15 0x00007257b930e48e in g_main_dispatch (context=0x61fdeb210450) at ../../../glib/gmain.c:3344
#16 0x00007257b936d717 in g_main_context_dispatch_unlocked (context=0x61fdeb210450) at ../../../glib/gmain.c:4152
#17 g_main_context_iterate_unlocked.isra.0 (context=0x61fdeb210450, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../../../glib/gmain.c:4217
#18 0x00007257b930ef77 in g_main_loop_run (loop=0x61fdeb210610) at ../../../glib/gmain.c:4419
#19 0x000061fdd6e49d7e in WTF::RunLoop::run() ()
#20 0x000061fdd6dd89f9 in WebDriver::WebDriverService::run(int, char**) ()
--Type <RET> for more, q to quit, c to continue without paging--c
#21 0x000061fdd6dd7e26 in main ()
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Lauro Moura
Welp, I had forgotten about this issue. Added more info and submitted a fix in bug293703.
*** This bug has been marked as a duplicate of bug 293703 ***