{"action":"created","issue":{"url":"https://api.github.com/repos/google/sanitizers/issues/607","labels_url":"https://api.github.com/repos/google/sanitizers/issues/607/labels{/name}","comments_url":"https://api.github.com/repos/google/sanitizers/issues/607/comments","events_url":"https://api.github.com/repos/google/sanitizers/issues/607/events","html_url":"https://github.com/google/sanitizers/issues/607","id":110064953,"number":607,"title":"Out of Memory error while running address sanitizer","user":{"login":"jrobert1","id":1414817,"avatar_url":"https://avatars.githubusercontent.com/u/1414817?v=3","gravatar_id":"","url":"https://api.github.com/users/jrobert1","html_url":"https://github.com/jrobert1","followers_url":"https://api.github.com/users/jrobert1/followers","following_url":"https://api.github.com/users/jrobert1/following{/other_user}","gists_url":"https://api.github.com/users/jrobert1/gists{/gist_id}","starred_url":"https://api.github.com/users/jrobert1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrobert1/subscriptions","organizations_url":"https://api.github.com/users/jrobert1/orgs","repos_url":"https://api.github.com/users/jrobert1/repos","events_url":"https://api.github.com/users/jrobert1/events{/privacy}","received_events_url":"https://api.github.com/users/jrobert1/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-06T17:58:24Z","updated_at":"2015-10-08T16:16:13Z","closed_at":"2015-10-07T05:06:49Z","body":"I am running a C++ program that will allocate about 50-60GB RAM on a server that has 96GB of RAM.  I we get the error below when our process allocates about 30GB of resident memory:\r\n\r\nOut of memory. Dying.\r\nThe process has exhausted 8192MB for size class 2304.\r\n\r\n\r\nBelow are various system settings:\r\n\r\nGCC version:\r\n$ gcc -v\r\nUsing built-in specs.\r\nCOLLECT_GCC=gcc\r\nCOLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.8/lto-wrapper\r\nTarget: x86_64-linux-gnu\r\nConfigured with: ../src/configure -v --with-pkgversion='Ubuntu 4.8.4-2ubuntu1~14.04' --with-bugurl=file:///usr/share/doc/gcc-4.8/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.8 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.8 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-libmudflap --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.8-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu\r\nThread model: posix\r\ngcc version 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04)\r\n\r\n\r\n$ ulimit -a\r\ncore file size          (blocks, -c) unlimited\r\ndata seg size           (kbytes, -d) unlimited\r\nscheduling priority             (-e) 0\r\nfile size               (blocks, -f) unlimited\r\npending signals                 (-i) 71679\r\nmax locked memory       (kbytes, -l) 64\r\nmax memory size         (kbytes, -m) unlimited\r\nopen files                      (-n) 32000\r\npipe size            (512 bytes, -p) 8\r\nPOSIX message queues     (bytes, -q) 819200\r\nreal-time priority              (-r) 0\r\nstack size              (kbytes, -s) 10240\r\ncpu time               (seconds, -t) unlimited\r\nmax user processes              (-u) 770126\r\nvirtual memory          (kbytes, -v) unlimited\r\nfile locks                      (-x) unlimited\r\n\r\n$ sudo sysctl -a | grep vm\r\nfs.binfmt_misc.llvm-3/4-runtime/binfmt = enabled\r\nfs.binfmt_misc.llvm-3/4-runtime/binfmt = interpreter /usr/bin/lli-3.4\r\nfs.binfmt_misc.llvm-3/4-runtime/binfmt = flags:\r\nfs.binfmt_misc.llvm-3/4-runtime/binfmt = offset 0\r\nfs.binfmt_misc.llvm-3/4-runtime/binfmt = magic 4243\r\nfs.binfmt_misc.jar = interpreter /usr/lib/jvm/java-7-oracle-1.7.0.80/jre/lib/jexec\r\nvm.admin_reserve_kbytes = 8192\r\nvm.block_dump = 0\r\nvm.dirty_background_bytes = 0\r\nvm.dirty_background_ratio = 10\r\nvm.dirty_bytes = 0\r\nvm.dirty_expire_centisecs = 3000\r\nvm.dirty_ratio = 20\r\nvm.dirty_writeback_centisecs = 500\r\nvm.drop_caches = 0\r\nvm.extfrag_threshold = 500\r\nvm.hugepages_treat_as_movable = 0\r\nvm.hugetlb_shm_group = 0\r\nvm.laptop_mode = 0\r\nvm.legacy_va_layout = 0\r\nvm.lowmem_reserve_ratio = 256   256     32\r\nvm.max_map_count = 65530\r\nvm.memory_failure_early_kill = 0\r\nvm.memory_failure_recovery = 1\r\nvm.min_free_kbytes = 90112\r\nvm.min_slab_ratio = 5\r\nvm.min_unmapped_ratio = 1\r\nvm.mmap_min_addr = 65536\r\nvm.nr_hugepages = 0\r\nvm.nr_hugepages_mempolicy = 0\r\nvm.nr_overcommit_hugepages = 0\r\nvm.nr_pdflush_threads = 0\r\nvm.numa_zonelist_order = default\r\nvm.oom_dump_tasks = 1\r\nvm.oom_kill_allocating_task = 0\r\nvm.overcommit_memory = 0\r\nvm.overcommit_ratio = 300\r\nvm.page-cluster = 3\r\nvm.panic_on_oom = 1\r\nvm.percpu_pagelist_fraction = 0\r\nvm.scan_unevictable_pages = 0\r\nvm.stat_interval = 1\r\nvm.swappiness = 1\r\nvm.user_reserve_kbytes = 131072\r\nvm.vfs_cache_pressure = 100\r\nvm.zone_reclaim_mode = 0\r\n"},"comment":{"url":"https://api.github.com/repos/google/sanitizers/issues/comments/146598176","html_url":"https://github.com/google/sanitizers/issues/607#issuecomment-146598176","issue_url":"https://api.github.com/repos/google/sanitizers/issues/607","id":146598176,"user":{"login":"jrobert1","id":1414817,"avatar_url":"https://avatars.githubusercontent.com/u/1414817?v=3","gravatar_id":"","url":"https://api.github.com/users/jrobert1","html_url":"https://github.com/jrobert1","followers_url":"https://api.github.com/users/jrobert1/followers","following_url":"https://api.github.com/users/jrobert1/following{/other_user}","gists_url":"https://api.github.com/users/jrobert1/gists{/gist_id}","starred_url":"https://api.github.com/users/jrobert1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrobert1/subscriptions","organizations_url":"https://api.github.com/users/jrobert1/orgs","repos_url":"https://api.github.com/users/jrobert1/repos","events_url":"https://api.github.com/users/jrobert1/events{/privacy}","received_events_url":"https://api.github.com/users/jrobert1/received_events","type":"User","site_admin":false},"created_at":"2015-10-08T16:16:13Z","updated_at":"2015-10-08T16:16:13Z","body":"Yes migrated to clang3.6 and that fixed the issue"}}