<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>290297</bug_id>
          
          <creation_ts>2025-03-23 22:16:20 -0700</creation_ts>
          <short_desc>[WebDriver][WPE] Crash in WPEWebDriver Session::performActions due to bad optional access</short_desc>
          <delta_ts>2025-05-28 14:50:21 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebDriver</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>293703</dup_id>
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=293703</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Lauro Moura">lmoura</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bburg</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2105493</commentid>
    <comment_count>0</comment_count>
    <who name="Lauro Moura">lmoura</who>
    <bug_when>2025-03-23 22:16:20 -0700</bug_when>
    <thetext>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=&lt;optimized out&gt;) at ./nptl/pthread_kill.c:44
#1  __pthread_kill_internal (signo=6, threadid=&lt;optimized out&gt;) at ./nptl/pthread_kill.c:78
#2  __GI___pthread_kill (threadid=&lt;optimized out&gt;, 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&lt;WTF::Vector&lt;WebDriver::Action, 0ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc&gt;, 0ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc&gt;&amp;&amp;, WTF::Function&lt;void (WebDriver::CommandResult&amp;&amp;)&gt;&amp;&amp;)::$_0::operator()(WebDriver::CommandResult&amp;&amp;) ()
#7  0x000061fdd6da2ed7 in WTF::Detail::CallableWrapper&lt;WebDriver::Session::handleUserPrompts(WTF::Function&lt;void (WebDriver::CommandResult&amp;&amp;)&gt;&amp;&amp;)::$_0, void, WebDriver::SessionHost::CommandResponse&amp;&amp;&gt;::call(WebDriver::SessionHost::CommandResponse&amp;&amp;) ()
#8  0x000061fdd6dd4e7d in WebDriver::SessionHost::dispatchMessage(WTF::String const&amp;) ()
#9  0x000061fdd6dfea2a in WebDriver::SessionHost::messageHandlers()::$_3::__invoke(WTF::SocketConnection&amp;, _GVariant*, void*) ()
#10 0x000061fdd6e4b917 in WTF::SocketConnection::readMessage() ()
#11 0x000061fdd6e4b538 in WTF::SocketConnection::read() ()
#12 0x000061fdd6e4be59 in WTF::Detail::CallableWrapper&lt;WTF::SocketConnection::SocketConnection(WTF::GRefPtr&lt;_GSocketConnection&gt;&amp;&amp;, WTF::HashMap&lt;WTF::CString, std::pair&lt;WTF::CString, void (*)(WTF::SocketConnection&amp;, _GVariant*, void*)&gt;, WTF::DefaultHash&lt;WTF::CString&gt;, WTF::HashTraits&lt;WTF::CString&gt;, WTF::HashTraits&lt;std::pair&lt;WTF::CString, void (*)(WTF::SocketConnection&amp;, _GVariant*, void*)&gt; &gt;, WTF::HashTableTraits, (WTF::ShouldValidateKey)0, WTF::FastMalloc&gt; const&amp;, void*)::$_0, int, GIOCondition&gt;::call(GIOCondition) ()
#13 0x000061fdd6e496b4 in WTF::GSocketMonitor::socketSourceCallback(_GSocket*, GIOCondition, WTF::GSocketMonitor*) ()
#14 0x00007257b94f9bb1 in socket_source_dispatch (source=source@entry=0x61fdeb290d40, callback=0x61fdd6e49680 &lt;WTF::GSocketMonitor::socketSourceCallback(_GSocket*, GIOCondition, WTF::GSocketMonitor*)&gt;, 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=&lt;optimized out&gt;) 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 &lt;RET&gt; for more, q to quit, c to continue without paging--c
#21 0x000061fdd6dd7e26 in main ()</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2120223</commentid>
    <comment_count>1</comment_count>
    <who name="Lauro Moura">lmoura</who>
    <bug_when>2025-05-28 14:50:21 -0700</bug_when>
    <thetext>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 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>