-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
osrm-extract fails with "double free or corruption" error. Version v5.3.3 #2832
Comments
When i run the preprocessing with a debug build i get the same error with this stacktrace:
Running the preprocessing in gdb produces this:
It seems like there is a assertion that's failing when running in a debugger. Maybe that can help finding the error. |
The error is happening inside STXXL during array sorting. Possibly related: In that case, it looks like pre-allocating STXXL space by doing:
to create an STXXL file and pre-configure 50GB of swap space for it. Try that. We pre-assign 250GB for the OSRM demo server on the OSM planet file, so use that as a guide for sizing. |
I just discovered that we have two stxxl log files in the preprocessing directory. stxxl.errlog:
stxxl.log:
|
I preprocessed now again the europe map with 150G pre-allocated space. The error is the same. When i use an older OSRM version (4.8.1) it works. |
@pongo710 Can you link to the exact map file you're using so we can try to reproduce this? |
@danpat The map file with which we can reliably reproduce this issue is this one: http://maps.contargo.net/maps/2016/unprocessed-osm.pbf It's a copy from the europe-latest.osm.pbf from download.geofabrik.de from november last year. |
We did some further testing. So it seems to be an issue with the map we linked. Sadly older maps are not present on geofabrik so we could not test it with older maps. |
I've made a copy of the file you liked, it's exposed a few issues that were working on. Haven't reproduced this exact error yet. |
Ok, using the latest @rkcpi @pongo710 Can you try again with 7a52371 ? It seems to work OK for me on your older map. If it still fails, then I'll need to try to reproduce on CentOS - I've currently only tried with Ubuntu 14.04, which has a different version of STXXL and various other libs (I'm linking against STXXL 1.3.1). |
We now tried out the master version with commit d3a6b5a. It seems to fix some problems but not everything. But we have another map which still produces the double free or corruption error. You can find the map here: http://maps.contargo.net/maps/2016/processed.osm.pbf. |
I set up a CentOS 7.2.1511 Docker container, and installed packages that @pongo710 provided out-of-band. I can reproduce the problem. Here's the backtrace I get:
The error is happening during teardown of the @pongo710 Please try re-building against a different version of STXXL - the one you have may be buggy. STXXL 1.3.1 that's packaged with Ubuntu seems to work just fine, I cannot reproduce the problem when building the same version of OSRM against the Ubuntu supplied libraries. |
I have now a working processing of the map @rkcpi linked above. I just started a second preprocessing to be sure it's now working. |
Using master version of STXXl did not fix all problems. We now use STXXL Version 1.3.1. In this configuration every processing we have done is working now. Thanks for all the help. |
When i use
osrm-extract
on the europe map downloaded from geofabrik, i get a "double free or corruption" error. Using a smaller map mostly works fine. The issue also sometimes appears using the german map. For extracting i used thecar.lua
included in the project.I tested this behaviour with the current master and version v5.3.3.
My setup:
CentOS Linux release 7.2.1511
Lua 5.1.4 Copyright (C) 1994-2008 Lua.org, PUC-Rio
Full stack trace:
The text was updated successfully, but these errors were encountered: