You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: