<?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>189758</bug_id>
          
          <creation_ts>2018-09-19 11:26:15 -0700</creation_ts>
          <short_desc>Packed Variant violates alignment on ARM and MIPS</short_desc>
          <delta_ts>2018-10-02 09:13:56 -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>New Bugs</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Other</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=188559</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Blocker</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Dominik Inführ">dominik.infuehr</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>achristensen</cc>
    
    <cc>fujii</cc>
    
    <cc>koivisto</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1461055</commentid>
    <comment_count>0</comment_count>
    <who name="Dominik Inführ">dominik.infuehr</who>
    <bug_when>2018-09-19 11:26:15 -0700</bug_when>
    <thetext>Hi,

recent patch https://bugs.webkit.org/show_bug.cgi?id=188559 broke tests in JSC on ARM and MIPS because data isn&apos;t aligned anymore. Not sure what&apos;s the best way to fix that: if we should just disable pack&apos;ing on at least ARM and MIPS.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1461312</commentid>
    <comment_count>1</comment_count>
    <who name="Dominik Inführ">dominik.infuehr</who>
    <bug_when>2018-09-20 06:05:00 -0700</bug_when>
    <thetext>Some more additional information: JSC has now 26k test failures due to this change on ARM: https://build.webkit.org/builders/JSCOnly%20Linux%20ARMv7%20Thumb2%20Release. Reason for that is the lexer uses a type std::optional&lt;Variant&lt;double,int*&gt;&gt; which breaks probably all tests (see Source/JavaScriptCore/parser/Lexer.(h|cpp)).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1461331</commentid>
    <comment_count>2</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2018-09-20 07:34:57 -0700</bug_when>
    <thetext>How do you know Lexer is the crash point? Did you get the coredump and the backtrace?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1461753</commentid>
    <comment_count>3</comment_count>
    <who name="Dominik Inführ">dominik.infuehr</who>
    <bug_when>2018-09-21 00:35:34 -0700</bug_when>
    <thetext>I got the backtrace from testing it locally on my board. It also makes sense since the Lexer uses a Variant in an std::optional and the corresponding assembly code fails on storing a floating point register to a memory location that&apos;s not 8-byte aligned.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>