[MDEV-4153] Test case gis-precise fails on s390(x) and ppc(64) Created: 2013-02-08  Updated: 2015-06-09  Resolved: 2015-06-09

Status: Closed
Project: MariaDB Server
Component/s: GIS
Affects Version/s: 5.5.29
Fix Version/s: 5.5.44

Type: Bug Priority: Minor
Reporter: Honza Horak Assignee: Alexey Botchkov
Resolution: Fixed Votes: 0
Labels: powerpc
Environment:

linux, ppc, s390


Attachments: File s390x.log    
Issue Links:
Duplicate
duplicates MDEV-5708 perfschema.func_file_io perfschema.fu... Closed

 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))



 Comments   
Comment by Elena Stepanova [ 2013-02-08 ]

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.

Comment by Honza Horak [ 2013-02-08 ]

These are Fedora bug reports:
https://bugzilla.redhat.com/show_bug.cgi?id=906746
https://bugzilla.redhat.com/show_bug.cgi?id=906367

Comment by Colin Charles [ 2013-05-02 ]

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

Generated at Thu Feb 08 06:54:12 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.