Compiling src/test/test-test_addr.o consumes lots of memory
Running my tor relay on raspberry with 512 megs of memory. Os is raspbian stretch. Running tor consumes around 35-50 percent of memory according to the top.
Whenever new tor is announced, I fetch it and compile it on the same machine, while older tor version runs. Used to be no problem with that. But latest x releases, I end up with build error message and usually dead running-tor also. It always happens in the same point in build process: compiling test-test_addr.o.
If it absolutely positively has to consume lots of memory, ok. But maybe its a mistake that can be fixed.
End of build process below, latest 4.5.6. When it happened, previous tor, running on the same machine, was also trying to allocate some memory and died.
... CC src/test/test-log_test_helpers.o CC src/test/test-hs_test_helpers.o CC src/test/test-opts_test_helpers.o CC src/test/test-rend_test_helpers.o CC src/test/test-resolve_test_helpers.o CC src/test/test-rng_test_helpers.o CC src/test/test-test.o CC src/test/test-test_accounting.o CC src/test/test-test_addr.o cc1: out of memory allocating 6837600 bytes after a total of 42938368 bytes Makefile:20143: recipe for target 'src/test/test-test_addr.o' failed make: *** [src/test/test-test_addr.o] Error 1 make: Leaving directory '/home/debian-tor/tor-0.4.5.6' Makefile:7342: recipe for target 'all' failed make: *** [all] Error 2
At this point, I usually kill running tor, if its not dead already and just finish build process, which now has plenty of free memory and gets its job done.