Comments (1)
This is not the only silent failure mode -- in some (not all) cases, the program exits with an error message but exit status = 0 on out of memory. Here are two runs on a 1CPU, 5GB machine. First one seems to have exited with status 0, the second one exited as expected with a non-0:
$ /usr/bin/time -v osmborder -o tmp.csv filtered.osm.pbf
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
Command terminated by signal 6
Command being timed: "osmborder -o tmp.csv filtered.osm.pbf"
User time (seconds): 54.42
System time (seconds): 7.02
Percent of CPU this job got: 99%
Elapsed (wall clock) time (h:mm:ss or m:ss): 1:02.02
Average shared text size (kbytes): 0
Average unshared data size (kbytes): 0
Average stack size (kbytes): 0
Average total size (kbytes): 0
Maximum resident set size (kbytes): 3419712
Average resident set size (kbytes): 0
Major (requiring I/O) page faults: 0
Minor (reclaiming a frame) page faults: 1828400
Voluntary context switches: 74256
Involuntary context switches: 73693
Swaps: 0
File system inputs: 1456120
File system outputs: 0
Socket messages sent: 0
Socket messages received: 0
Signals delivered: 0
Page size (bytes): 4096
Exit status: 0 <<<< I would expect this to not be 0
another run - exits with status 134, as expected:
running using `/usr/bin/time` and a script:
Create border lines in /data/osmborder_lines.csv
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
./create_osmborder_lines.sh: line 7: 305 Aborted (core dumped) osmborder -o "$csv_file" "$filtered_file"
Command exited with non-zero status 134
from osmborder.
Related Issues (10)
- Add another output format HOT 1
- Deal with partial diff's HOT 1
- Support of disputed_by and claimed_by
- core dump using a pbf from osmconvert
- GitHub releases with downloadable data HOT 1
- Question: How long does processing a full planet file usually take? HOT 1
- Remove epsg dead code
- Update help copyright
- Unable to compile - cannot find osmium HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from osmborder.