Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

gosmore fails to start on debian and ubuntu, C standard violations #4450

Closed
openstreetmap-trac opened this issue Jul 23, 2021 · 2 comments
Closed

Comments

@openstreetmap-trac
Copy link

Reporter: jtaylor.debian[at]googlemail.com
[Submitted to the original trac issue database at 7.47am, Sunday, 17th June 2012]

gosmore only uses all of the cpu and does not start on debian wheezy and ubuntu precise.
The version in debian is 20100711 but the code in svn head looks unchanged in regard to this bug.

From what I can tell this is due to the the compiler (gcc-4.6, gcc-4.7) assuming it can optimize based on the undefinedness of signed overflows.

disabling this with -fno-strict-overflow seems to fix the startup problem

the problematic code is probably libgosm.cpp:212
naively changing mask to unsigned fixes the startup but may break other stuff.

also that file probably contains casts violating the strict aliasing rule (which can be disabled with -fno-strict-aliasing)

please compile with -Wstrict-overflow and -Wstrict-aliasing=1 and try to fix the issues or disable these optimizations

@openstreetmap-trac
Copy link
Author

Author: jtaylor.debian[at]googlemail.com
[Added to the original trac issue at 10.08am, Sunday, 17th June 2012]

see:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=652084
https://bugs.launchpad.net/ubuntu/+source/gosmore/+bug/937088

@openstreetmap-trac
Copy link
Author

Author: mmd
[Added to the original trac issue at 6.52pm, Tuesday, 19th May 2020]

Gosmore project is no longer active, closing.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant