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

unchecked memory allocation leading to segmentationfault #4497

Closed
openstreetmap-trac opened this issue Jul 23, 2021 · 1 comment
Closed

unchecked memory allocation leading to segmentationfault #4497

openstreetmap-trac opened this issue Jul 23, 2021 · 1 comment

Comments

@openstreetmap-trac
Copy link

Reporter: datendelphin
[Submitted to the original trac issue database at 8.00am, Saturday, 28th July 2012]

Someone tried to run nominatim on an amazon ec2 micro instance, which has only 800MB ram. osm2pgsql segfaults, because the allocation of blocks (hardcoded to 1GB in the default cache strategy) fails.

I made a patch making it fail gracefully in that case

Of course, less than 1GB ram is extremely few, but I guess there are others trying to run it on such a tiny cloud instance.

@openstreetmap-trac
Copy link
Author

Author: amm
[Added to the original trac issue at 6.55pm, Saturday, 4th August 2012]

I have applied a similar patch and also checked some other allocations for failure. Thanks for reporting

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