Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-4153

Test case gis-precise fails on s390(x) and ppc(64)

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.5.29
    • Fix Version/s: 5.5.44
    • Component/s: GIS
    • Labels:
    • Environment:
      linux, ppc, s390

      Description

      Test case gis-precise fails on ppc, ppc64, s390 and s390x platforms (diff attached). Generally some integer values are not print as integers again, but as a very similar real number.

      The minimal reproducer can be:

      select astext(ST_UNION(GeomFromText('POLYGON((0 0, 50 45, 40 50, 0 0))'), GeomFromText('LINESTRING(-10 -10, 200 200, 199 201, -11 -9)')));
      

      This has the following output on x86_64:

      GEOMETRYCOLLECTION(LINESTRING(-10 -10,0 0),LINESTRING(-11 -9,8 10),POLYGON((0 0,40 50,50 45,0 0)),LINESTRING(46.666666666666664 46.666666666666664,200 200,199 201,45.33333333333333 47.33333333333333))
      

      but on other arches:

      GEOMETRYCOLLECTION(LINESTRING(-10 -10,0 0),LINESTRING(-11 -9,7.999999999999999 10),POLYGON((0 0,40 50,50 45,0 0)),LINESTRING(46.666666666666664 46.666666666666664,200 200,199 201,45.33333333333333 47.33333333333333))
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

              Hide
              elenst Elena Stepanova added a comment - - edited

              I don't have the platform to confirm, but the idea is clear.
              Assigning to Alexey to decide what can and should be done about it.
              I've also left initial priority, as set by the reporter, intact; please adjust if needed.

              Show
              elenst Elena Stepanova added a comment - - edited I don't have the platform to confirm, but the idea is clear. Assigning to Alexey to decide what can and should be done about it. I've also left initial priority, as set by the reporter, intact; please adjust if needed.
              Show
              hhorak Honza Horak added a comment - These are Fedora bug reports: https://bugzilla.redhat.com/show_bug.cgi?id=906746 https://bugzilla.redhat.com/show_bug.cgi?id=906367
              Hide
              colin Colin Charles added a comment -

              these tests are currently disabled on Fedora 19, but its still something that is worth fixing

              Show
              colin Colin Charles added a comment - these tests are currently disabled on Fedora 19, but its still something that is worth fixing

                People

                • Assignee:
                  holyfoot Alexey Botchkov
                  Reporter:
                  hhorak Honza Horak
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Time Tracking

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - 0 minutes
                    0m
                    Logged:
                    Time Spent - 1 day, 3 hours
                    1d 3h