Git Product home page Git Product logo

Comments (1)

nyurik avatar nyurik commented on July 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.