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

Segfault on planet rebuild #2386

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

Segfault on planet rebuild #2386

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

Comments

@openstreetmap-trac
Copy link

Reporter: styno[at]hotmail.com
[Submitted to the original trac issue database at 4.18pm, Friday, 23rd October 2009]

While rebuilding a new database using my Eurasia planet extract Gosmore crashed (version 18268). Testing with the Benelux extract [1] Gosmore also crashes with a segmentation fault quite early in the process.

[1] http://planet.openstreetmap.nl/planet-benelux-latest.osm.gz

@openstreetmap-trac
Copy link
Author

Author: styno[at]hotmail.com
[Added to the original trac issue at 9.50am, Tuesday, 10th November 2009]

Gosmore also crashes while parsing the unmodified planet file, so it's not caused by Osmosis on bbox extraction. GDB reports segfault in RebuildPak(). This appears to be a type definition problem which triggers segfaults in 64bit systems.

Types like long long are not really portable.

@openstreetmap-trac
Copy link
Author

Author: woidrick
[Added to the original trac issue at 8.08pm, Thursday, 12th November 2009]

For me it segfaults in line 1606 of libgosm.cpp

i did add
if (l != 0) {
before that line
and
} else newln = 0;
after that line

i'm not a programmer, so i'm is not sure if it will produce a broken database
but gosmore runs for 10 minutes without segfaults - longest time ever
sorry, can't check for longer - it is late

programmers should check why variable l is sometimes zero

@openstreetmap-trac
Copy link
Author

Author: styno[at]hotmail.com
[Added to the original trac issue at 5.31pm, Monday, 1st February 2010]

One problem is solved by reinstating line 1958 in libgosm.cpp:

// Block lost nodes with
if (ndItr->lat == INT_MIN) continue;

But now it seems to enter an infinite loop in step 6.

@openstreetmap-trac
Copy link
Author

Author: mmd
[Added to the original trac issue at 6.47pm, 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