[Webkit-unassigned] [Bug 282288] New: REGRESSION(282580 at main): Static assertions failing in CalculationTree.h and CSSCalcTree.h on i686

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Oct 29 15:07:46 PDT 2024


https://bugs.webkit.org/show_bug.cgi?id=282288

            Bug ID: 282288
           Summary: REGRESSION(282580 at main): Static assertions failing in
                    CalculationTree.h and CSSCalcTree.h on i686
           Product: WebKit
           Version: Other
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: CSS
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: mcatanzaro at redhat.com
                CC: berto at igalia.com, koivisto at iki.fi, sam at webkit.org

We are hitting a couple static assertion failures on i686 due to incorrect sizeof assumptions:

builddir/build/BUILD/webkitgtk-2.47.1-build/webkitgtk-2.47.1/Source/WebCore/platform/calc/CalculationTree.h:512:15: error: static assertion failed due to requirement 'sizeof(std::variant<WebCore::Calculation::Number, WebCore::Calculation::Percentage, WebCore::Calculation::Dimension, WebCore::Calculation::IndirectNode<WebCore::Calculation::Sum>, WebCore::Calculation::IndirectNode<WebCore::Calculation::Product>, WebCore::Calculation::IndirectNode<WebCore::Calculation::Negate>, WebCore::Calculation::IndirectNode<WebCore::Calculation::Invert>, WebCore::Calculation::IndirectNode<WebCore::Calculation::Min>, WebCore::Calculation::IndirectNode<WebCore::Calculation::Max>, WebCore::Calculation::IndirectNode<WebCore::Calculation::Clamp>, WebCore::Calculation::IndirectNode<WebCore::Calculation::RoundNearest>, WebCore::Calculation::IndirectNode<WebCore::Calculation::RoundUp>, WebCore::Calculation::IndirectNode<WebCore::Calculation::RoundDown>, WebCore::Calculation::IndirectNode<WebCore::Calculation::RoundToZero>, WebCore::Calculation::IndirectNode<WebCore::Calculation::Mod>, WebCore::Calculation::IndirectNode<WebCore::Calculation::Rem>, WebCore::Calculation::IndirectNode<WebCore::Calculation::Sin>, WebCore::Calculation::IndirectNode<WebCore::Calculation::Cos>, WebCore::Calculation::IndirectNode<WebCore::Calculation::Tan>, WebCore::Calculation::IndirectNode<WebCore::Calculation::Asin>, WebCore::Calculation::IndirectNode<WebCore::Calculation::Acos>, WebCore::Calculation::IndirectNode<WebCore::Calculation::Atan>, WebCore::Calculation::IndirectNode<WebCore::Calculation::Atan2>, WebCore::Calculation::IndirectNode<WebCore::Calculation::Pow>, WebCore::Calculation::IndirectNode<WebCore::Calculation::Sqrt>, WebCore::Calculation::IndirectNode<WebCore::Calculation::Hypot>, WebCore::Calculation::IndirectNode<WebCore::Calculation::Log>, WebCore::Calculation::IndirectNode<WebCore::Calculation::Exp>, WebCore::Calculation::IndirectNode<WebCore::Calculation::Abs>, WebCore::Calculation::IndirectNode<WebCore::Calculation::Sign>, WebCore::Calculation::IndirectNode<WebCore::Calculation::Progress>, WebCore::Calculation::IndirectNode<WebCore::Calculation::Blend>>) == 16'
  512 | static_assert(sizeof(Child) == 16);
      |               ^~~~~~~~~~~~~~~~~~~
/builddir/build/BUILD/webkitgtk-2.47.1-build/webkitgtk-2.47.1/Source/WebCore/platform/calc/CalculationTree.h:512:29: note: expression evaluates to '12 == 16'
  512 | static_assert(sizeof(Child) == 16);
      |               ~~~~~~~~~~~~~~^~~~~

And:

/builddir/build/BUILD/webkitgtk-2.47.1-build/webkitgtk-2.47.1/Source/WebCore/css/calc/CSSCalcTree.h:771:15: error: static assertion failed due to requirement 'sizeof(std::variant<WebCore::CSSCalc::Number, WebCore::CSSCalc::Percentage, WebCore::CSSCalc::CanonicalDimension, WebCore::CSSCalc::NonCanonicalDimension, WebCore::CSSCalc::Symbol, WebCore::CSSCalc::IndirectNode<WebCore::CSSCalc::Sum>, WebCore::CSSCalc::IndirectNode<WebCore::CSSCalc::Product>, WebCore::CSSCalc::IndirectNode<WebCore::CSSCalc::Negate>, WebCore::CSSCalc::IndirectNode<WebCore::CSSCalc::Invert>, WebCore::CSSCalc::IndirectNode<WebCore::CSSCalc::Min>, WebCore::CSSCalc::IndirectNode<WebCore::CSSCalc::Max>, WebCore::CSSCalc::IndirectNode<WebCore::CSSCalc::Clamp>, WebCore::CSSCalc::IndirectNode<WebCore::CSSCalc::RoundNearest>, WebCore::CSSCalc::IndirectNode<WebCore::CSSCalc::RoundUp>, WebCore::CSSCalc::IndirectNode<WebCore::CSSCalc::RoundDown>, WebCore::CSSCalc::IndirectNode<WebCore::CSSCalc::RoundToZero>, WebCore::CSSCalc::IndirectNode<WebCore::CSSCalc::Mod>, WebCore::CSSCalc::IndirectNode<WebCore::CSSCalc::Rem>, WebCore::CSSCalc::IndirectNode<WebCore::CSSCalc::Sin>, WebCore::CSSCalc::IndirectNode<WebCore::CSSCalc::Cos>, WebCore::CSSCalc::IndirectNode<WebCore::CSSCalc::Tan>, WebCore::CSSCalc::IndirectNode<WebCore::CSSCalc::Asin>, WebCore::CSSCalc::IndirectNode<WebCore::CSSCalc::Acos>, WebCore::CSSCalc::IndirectNode<WebCore::CSSCalc::Atan>, WebCore::CSSCalc::IndirectNode<WebCore::CSSCalc::Atan2>, WebCore::CSSCalc::IndirectNode<WebCore::CSSCalc::Pow>, WebCore::CSSCalc::IndirectNode<WebCore::CSSCalc::Sqrt>, WebCore::CSSCalc::IndirectNode<WebCore::CSSCalc::Hypot>, WebCore::CSSCalc::IndirectNode<WebCore::CSSCalc::Log>, WebCore::CSSCalc::IndirectNode<WebCore::CSSCalc::Exp>, WebCore::CSSCalc::IndirectNode<WebCore::CSSCalc::Abs>, WebCore::CSSCalc::IndirectNode<WebCore::CSSCalc::Sign>, WebCore::CSSCalc::IndirectNode<WebCore::CSSCalc::Progress>, WebCore::CSSCalc::IndirectNode<WebCore::CSSCalc::Anchor>, WebCore::CSSCalc::IndirectNode<WebCore::CSSCalc::AnchorSize>>) == 24'
  771 | static_assert(sizeof(Child) == 24);
      |               ^~~~~~~~~~~~~~~~~~~
/builddir/build/BUILD/webkitgtk-2.47.1-build/webkitgtk-2.47.1/Source/WebCore/css/calc/CSSCalcTree.h:771:29: note: expression evaluates to '16 == 24'
  771 | static_assert(sizeof(Child) == 24);
      |               ~~~~~~~~~~~~~~^~~~~

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20241029/31caeaa3/attachment-0001.htm>


More information about the webkit-unassigned mailing list