Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8333277

ubsan: mlib_ImageScanPoly.c:292:43: runtime error: division by zero

XMLWordPrintable

    • 2d
    • b03
    • x86
    • linux

        When running the jdk jtreg tests with ubsan enabled binaries on Linux x86_64, I get the warning below.
        This shows up in a couple of tests, for example
        java/awt/image/mlib/MlibOpsTest.jtr
        java/awt/image/Raster/TestChildRasterOp.jtr

        src/java.desktop/share/native/libmlib_image/mlib_ImageScanPoly.c:292:43: runtime error: division by zero
            #0 0x7fe6d958b862 in mlib_AffineEdges src/java.desktop/share/native/libmlib_image/mlib_ImageScanPoly.c:292
            #1 0x7fe6d958bb5d in mlib_ImageAffine_alltypes src/java.desktop/share/native/libmlib_image/mlib_ImageAffine.c:179
            #2 0x7fe6d9e9b398 in Java_sun_awt_image_ImagingLib_transformBI src/java.desktop/share/native/libawt/awt/medialib/awt_ImagingLib.c:922
            #3 0x7fe76f00ae7b (<unknown module>)

              mbaesken Matthias Baesken
              mbaesken Matthias Baesken
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: