I downloaded the Dirbuster project from here https://www.owasp.org/index.php/Categor ... er_Project, extracted it and run "java -jar DirBuster-1.0-RC1.jar" command, which printed the problem presented below.
The hs_err_pid1311.log file contains the following:# java -jar DirBuster-1.0-RC1.jar
Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x00000324dff68000, 2555904, 1) failed; error='Operation not permitted' (errno=1)
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (malloc) failed to allocate 2555904 bytes for committing reserved memory.
# An error report file with more information is saved as:
# hs_err_pid1311.log
Signal 18 (CONT) caught by ps (procps-ng version 3.3.6).
ps:display.c:66: please report this bug
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (malloc) failed to allocate 2555904 bytes for committing reserved memory.
# Possible reasons:
# The system is out of physical RAM or swap space
# In 32 bit mode, the process size limit was hit
# Possible solutions:
# Reduce memory load on the system
# Increase physical memory or swap space
# Check if swap backing store is full
# Use 64 bit Java on a 64 bit OS
# Decrease Java heap size (-Xmx/-Xms)
# Decrease number of Java threads
# Decrease Java thread stack sizes (-Xss)
# Set larger code cache with -XX:ReservedCodeCacheSize=
# This output file may be truncated or incomplete.
#
# Out of Memory Error (os_linux.cpp:2718), pid=1311, tid=3457077262080
#
# JRE version: (7.0_45-b18) (build )
# Java VM: Java HotSpot(TM) 64-Bit Server VM (24.45-b08 mixed mode linux-amd64 compressed oops)
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
--------------- T H R E A D ---------------
Current thread (0x00000324e4009800): JavaThread "Unknown thread" [_thread_in_vm, id=1315, stack(0x00000324e9ccb000,0x00000324e9dcc000)]
Stack: [0x00000324e9ccb000,0x00000324e9dcc000], sp=0x00000324e9dca640, free space=1021k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V [libjvm.so+0x992c8a] VMError::report_and_die()+0x2ea
V [libjvm.so+0x49319b] report_vm_out_of_memory(char const*, int, unsigned long, char const*)+0x9b
V [libjvm.so+0x81310e] os::Linux::commit_memory_impl(char*, unsigned long, bool)+0xfe
V [libjvm.so+0x8135bf] os::Linux::commit_memory_impl(char*, unsigned long, unsigned long, bool)+0x4f
V [libjvm.so+0x81377c] os::pd_commit_memory(char*, unsigned long, unsigned long, bool)+0xc
V [libjvm.so+0x80d86a] os::commit_memory(char*, unsigned long, unsigned long, bool)+0x2a
V [libjvm.so+0x98e5d9] VirtualSpace::expand_by(unsigned long, bool)+0x1c9
V [libjvm.so+0x98e75d] VirtualSpace::initialize(ReservedSpace, unsigned long)+0xcd
V [libjvm.so+0x58a903] CodeHeap::reserve(unsigned long, unsigned long, unsigned long)+0x143
V [libjvm.so+0x420ce0] CodeCache::initialize()+0x80
V [libjvm.so+0x5a9625] init_globals()+0x45
V [libjvm.so+0x94ed1d] Threads::create_vm(JavaVMInitArgs*, bool*)+0x1ed
V [libjvm.so+0x630804] JNI_CreateJavaVM+0x74
C [libjli.so+0x2f8e] JavaMain+0x9e
--------------- P R O C E S S ---------------
Java Threads: ( => current thread )
Other Threads:
=>0x00000324e4009800 (exited) JavaThread "Unknown thread" [_thread_in_vm, id=1315, stack(0x00000324e9ccb000,0x00000324e9dcc000)]
VM state:not at safepoint (not fully initialized)
VM Mutex/Monitor currently owned by a thread: None
Deoptimization events (0 events):
No events
Internal exceptions (0 events):
No events
Events (0 events):
No events
Dynamic libraries:
00400000-00401000 r-xp 00000000 fd:02 3885520 /opt/oracle-jdk-bin-1.7.0.45/bin/java
00600000-00601000 rw-p 00000000 fd:02 3885520 /opt/oracle-jdk-bin-1.7.0.45/bin/java
00601000-020f7000 ---p 00000000 00:00 0
020f7000-02119000 rw-p 00000000 00:00 0 [heap]
324dfdfd000-324dff68000 rw-p 00000000 00:00 0
324dff68000-324e2f68000 rw-p 00000000 00:00 0
324e2f68000-324e2f82000 r-xp 00000000 fd:02 147332050 /opt/oracle-jdk-bin-1.7.0.45/jre/lib/amd64/libzip.so
324e2f82000-324e3182000 ---p 0001a000 fd:02 147332050 /opt/oracle-jdk-bin-1.7.0.45/jre/lib/amd64/libzip.so
324e3182000-324e3183000 rw-p 0001a000 fd:02 147332050 /opt/oracle-jdk-bin-1.7.0.45/jre/lib/amd64/libzip.so
324e3183000-324e318f000 r-xp 00000000 fd:02 201328841 /lib64/libnss_files-2.15.so
324e318f000-324e338f000 ---p 0000c000 fd:02 201328841 /lib64/libnss_files-2.15.so
324e338f000-324e3390000 r--p 0000c000 fd:02 201328841 /lib64/libnss_files-2.15.so
324e3390000-324e3391000 rw-p 0000d000 fd:02 201328841 /lib64/libnss_files-2.15.so
324e3391000-324e339b000 r-xp 00000000 fd:02 242381098 /lib64/libnss_nis-2.15.so
324e339b000-324e359b000 ---p 0000a000 fd:02 242381098 /lib64/libnss_nis-2.15.so
324e359b000-324e359c000 r--p 0000a000 fd:02 242381098 /lib64/libnss_nis-2.15.so
324e359c000-324e359d000 rw-p 0000b000 fd:02 242381098 /lib64/libnss_nis-2.15.so
324e359d000-324e35b2000 r-xp 00000000 fd:02 201328788 /lib64/libnsl-2.15.so
324e35b2000-324e37b1000 ---p 00015000 fd:02 201328788 /lib64/libnsl-2.15.so
324e37b1000-324e37b2000 r--p 00014000 fd:02 201328788 /lib64/libnsl-2.15.so
324e37b2000-324e37b3000 rw-p 00015000 fd:02 201328788 /lib64/libnsl-2.15.so
324e37b3000-324e37b5000 rw-p 00000000 00:00 0
324e37b5000-324e37bc000 r-xp 00000000 fd:02 201328784 /lib64/libnss_compat-2.15.so
324e37bc000-324e39bc000 ---p 00007000 fd:02 201328784 /lib64/libnss_compat-2.15.so
324e39bc000-324e39bd000 r--p 00007000 fd:02 201328784 /lib64/libnss_compat-2.15.so
324e39bd000-324e39be000 rw-p 00008000 fd:02 201328784 /lib64/libnss_compat-2.15.so
324e39be000-324e39e7000 r-xp 00000000 fd:02 147332055 /opt/oracle-jdk-bin-1.7.0.45/jre/lib/amd64/libjava.so
324e39e7000-324e3be7000 ---p 00029000 fd:02 147332055 /opt/oracle-jdk-bin-1.7.0.45/jre/lib/amd64/libjava.so
324e3be7000-324e3be9000 rw-p 00029000 fd:02 147332055 /opt/oracle-jdk-bin-1.7.0.45/jre/lib/amd64/libjava.so
324e3be9000-324e3bf6000 r-xp 00000000 fd:02 147332066 /opt/oracle-jdk-bin-1.7.0.45/jre/lib/amd64/libverify.so
324e3bf6000-324e3df5000 ---p 0000d000 fd:02 147332066 /opt/oracle-jdk-bin-1.7.0.45/jre/lib/amd64/libverify.so
324e3df5000-324e3df7000 rw-p 0000c000 fd:02 147332066 /opt/oracle-jdk-bin-1.7.0.45/jre/lib/amd64/libverify.so
324e3df7000-324e3dff000 r-xp 00000000 fd:02 242381096 /lib64/librt-2.15.so
324e3dff000-324e3ffe000 ---p 00008000 fd:02 242381096 /lib64/librt-2.15.so
324e3ffe000-324e3fff000 r--p 00007000 fd:02 242381096 /lib64/librt-2.15.so
324e3fff000-324e4000000 rw-p 00008000 fd:02 242381096 /lib64/librt-2.15.so
324e4000000-324e4021000 rw-p 00000000 00:00 0
324e4021000-324e8000000 ---p 00000000 00:00 0
324e807e000-324e8158000 rw-p 00000000 00:00 0
324e8158000-324e824d000 r-xp 00000000 fd:02 201328863 /lib64/libm-2.15.so
324e824d000-324e844c000 ---p 000f5000 fd:02 201328863 /lib64/libm-2.15.so
324e844c000-324e844d000 r--p 000f4000 fd:02 201328863 /lib64/libm-2.15.so
324e844d000-324e844e000 rw-p 000f5000 fd:02 201328863 /lib64/libm-2.15.so
324e844e000-324e8fb0000 r-xp 00000000 fd:02 71257992 /opt/oracle-jdk-bin-1.7.0.45/jre/lib/amd64/server/libjvm.so
324e8fb0000-324e91b0000 ---p 00b62000 fd:02 71257992 /opt/oracle-jdk-bin-1.7.0.45/jre/lib/amd64/server/libjvm.so
324e91b0000-324e9273000 rw-p 00b62000 fd:02 71257992 /opt/oracle-jdk-bin-1.7.0.45/jre/lib/amd64/server/libjvm.so
324e9273000-324e92b4000 rw-p 00000000 00:00 0
324e92b4000-324e9455000 r-xp 00000000 fd:02 242381102 /lib64/libc-2.15.so
324e9455000-324e9655000 ---p 001a1000 fd:02 242381102 /lib64/libc-2.15.so
324e9655000-324e9659000 r--p 001a1000 fd:02 242381102 /lib64/libc-2.15.so
324e9659000-324e965b000 rw-p 001a5000 fd:02 242381102 /lib64/libc-2.15.so
324e965b000-324e965f000 rw-p 00000000 00:00 0
324e965f000-324e9661000 r-xp 00000000 fd:02 242381089 /lib64/libdl-2.15.so
324e9661000-324e9861000 ---p 00002000 fd:02 242381089 /lib64/libdl-2.15.so
324e9861000-324e9862000 r--p 00002000 fd:02 242381089 /lib64/libdl-2.15.so
324e9862000-324e9863000 rw-p 00003000 fd:02 242381089 /lib64/libdl-2.15.so
324e9863000-324e9879000 r-xp 00000000 fd:02 6125374 /opt/oracle-jdk-bin-1.7.0.45/lib/amd64/jli/libjli.so
324e9879000-324e9a79000 ---p 00016000 fd:02 6125374 /opt/oracle-jdk-bin-1.7.0.45/lib/amd64/jli/libjli.so
324e9a79000-324e9a7a000 rw-p 00016000 fd:02 6125374 /opt/oracle-jdk-bin-1.7.0.45/lib/amd64/jli/libjli.so
324e9a7a000-324e9a92000 r-xp 00000000 fd:02 242381092 /lib64/libpthread-2.15.so
324e9a92000-324e9c91000 ---p 00018000 fd:02 242381092 /lib64/libpthread-2.15.so
324e9c91000-324e9c92000 r--p 00017000 fd:02 242381092 /lib64/libpthread-2.15.so
324e9c92000-324e9c93000 rw-p 00018000 fd:02 242381092 /lib64/libpthread-2.15.so
324e9c93000-324e9c97000 rw-p 00000000 00:00 0
324e9c97000-324e9cb9000 r-xp 00000000 fd:02 242381101 /lib64/ld-2.15.so
324e9ccb000-324e9cce000 ---p 00000000 00:00 0
324e9cce000-324e9dcc000 rw-p 00000000 00:00 0 [stack:1315]
324e9e70000-324e9e74000 rw-p 00000000 00:00 0
324e9eaa000-324e9eac000 rw-p 00000000 00:00 0
324e9eac000-324e9eb4000 rw-s 00000000 00:1e 12167307 /tmp/hsperfdata_user/1311
324e9eb4000-324e9eb5000 rw-p 00000000 00:00 0
324e9eb5000-324e9eb6000 r--p 00000000 00:00 0
324e9eb6000-324e9eb7000 rw-p 00000000 00:00 0
324e9eb7000-324e9eb8000 r-xp 00000000 00:00 0 [vdso]
324e9eb8000-324e9eb9000 r--p 00021000 fd:02 242381101 /lib64/ld-2.15.so
324e9eb9000-324e9eba000 rw-p 00022000 fd:02 242381101 /lib64/ld-2.15.so
324e9eba000-324e9ebb000 rw-p 00000000 00:00 0
3f4cf02e000-3f4cf050000 rw-p 00000000 00:00 0 [stack]
ffffffffff600000-ffffffffff601000 r--p 00000000 00:00 0 [vsyscall]
VM Arguments:
java_command: DirBuster-1.0-RC1.jar
Launcher Type: SUN_STANDARD
Environment Variables:
JAVA_HOME=/etc/java-config-2/current-system-vm
SHELL=/bin/zsh
DISPLAY=:0.0
Signal Handlers:
SIGSEGV: [libjvm.so+0x9935b0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGBUS: [libjvm.so+0x9935b0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGFPE: [libjvm.so+0x810330], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGPIPE: [libjvm.so+0x810330], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGXFSZ: [libjvm.so+0x810330], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGILL: [libjvm.so+0x810330], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGUSR1: SIG_DFL, sa_mask[0]=0x00000000, sa_flags=0x00000000
SIGUSR2: [libjvm.so+0x811820], sa_mask[0]=0x00000000, sa_flags=0x10000004
SIGHUP: SIG_DFL, sa_mask[0]=0x00000000, sa_flags=0x00000000
SIGINT: SIG_DFL, sa_mask[0]=0x00000000, sa_flags=0x00000000
SIGTERM: SIG_DFL, sa_mask[0]=0x00000000, sa_flags=0x00000000
SIGQUIT: SIG_DFL, sa_mask[0]=0x00000000, sa_flags=0x00000000
--------------- S Y S T E M ---------------
OS:Gentoo Base System release 2.2
uname:Linux 3.10.1-hardened-r1 #27 SMP PREEMPT Sat Nov 16 22:22:34 CET 2013 x86_64
libc:glibc 2.15 NPTL 2.15
rlimit: STACK 8192k, CORE 0k, NPROC 63048, NOFILE 4096, AS infinity
load average:3.01 2.67 1.72
/proc/meminfo:
MemTotal: 8073096 kB
MemFree: 53336 kB
Buffers: 36 kB
Cached: 3141512 kB
SwapCached: 0 kB
Active: 4732024 kB
Inactive: 2564684 kB
Active(anon): 3323528 kB
Inactive(anon): 899644 kB
Active(file): 1408496 kB
Inactive(file): 1665040 kB
Unevictable: 0 kB
Mlocked: 0 kB
SwapTotal: 4718588 kB
SwapFree: 4718588 kB
Dirty: 1124 kB
Writeback: 0 kB
AnonPages: 4155184 kB
Mapped: 282116 kB
Shmem: 68012 kB
Slab: 362276 kB
SReclaimable: 297656 kB
SUnreclaim: 64620 kB
KernelStack: 3600 kB
PageTables: 47652 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 8755136 kB
Committed_AS: 6938176 kB
VmallocTotal: 34359738367 kB
VmallocUsed: 304456 kB
VmallocChunk: 34359404524 kB
HugePages_Total: 0
HugePages_Free: 0
HugePages_Rsvd: 0
HugePages_Surp: 0
Hugepagesize: 2048 kB
DirectMap4k: 12952 kB
DirectMap2M: 8273920 kB
CPU:total 2
/proc/cpuinfo:
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 23
model name : Intel(R) Core(TM)2 Duo CPU P8800 @ 2.66GHz
stepping : 10
microcode : 0xa07
cpu MHz : 2659.967
cache size : 3072 KB
physical id : 0
siblings : 2
core id : 0
cpu cores : 2
apicid : 0
initial apicid : 0
fpu : yes
fpu_exception : yes
cpuid level : 13
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts nopl aperfmperf pni dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm sse4_1 xsave lahf_lm ida dtherm tpr_shadow vnmi flexpriority
bogomips : 5319.93
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:
processor : 1
vendor_id : GenuineIntel
cpu family : 6
model : 23
model name : Intel(R) Core(TM)2 Duo CPU P8800 @ 2.66GHz
stepping : 10
microcode : 0xa07
cpu MHz : 2659.967
cache size : 3072 KB
physical id : 0
siblings : 2
core id : 1
cpu cores : 2
apicid : 1
initial apicid : 1
fpu : yes
fpu_exception : yes
cpuid level : 13
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts nopl aperfmperf pni dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm sse4_1 xsave lahf_lm ida dtherm tpr_shadow vnmi flexpriority
bogomips : 5319.93
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:
Memory: 4k page, physical 8073096k(53336k free), swap 4718588k(4718588k free)
vm_info: Java HotSpot(TM) 64-Bit Server VM (24.45-b08) for linux-amd64 JRE (1.7.0_45-b18), built on Oct 8 2013 05:44:25 by "java_re" with gcc 4.3.0 20080428 (Red Hat 4.3.0-8)
time: Thu Nov 21 23:26:48 2013
elapsed time: 0 seconds
The system has enough free memory:
I'm running hardened gentoo, so maybe this might be a problem:# free -m
total used free shared buffers cached
Mem: 7883 7734 149 0 0 3069
-/+ buffers/cache: 4664 3219
Swap: 4607 0 4607
Any ideas about the error above and how to solve it?# uname -r
3.10.1-hardened-r1


