Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Java - insufficient memory
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
eleanor
l33t
l33t


Joined: 01 Nov 2004
Posts: 661

PostPosted: Thu Nov 21, 2013 10:32 pm    Post subject: [SOLVED] Java - insufficient memory Reply with quote

Hi,

I downloaded the Dirbuster project from here https://www.owasp.org/index.php/Category:OWASP_DirBuster_Project, extracted it and run "java -jar DirBuster-1.0-RC1.jar" command, which printed the problem presented below.

Quote:

# 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


The hs_err_pid1311.log file contains the following:

Quote:

#
# 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:

Quote:

# free -m
total used free shared buffers cached
Mem: 7883 7734 149 0 0 3069
-/+ buffers/cache: 4664 3219
Swap: 4607 0 4607


I'm running hardened gentoo, so maybe this might be a problem:

Quote:

# uname -r
3.10.1-hardened-r1


Any ideas about the error above and how to solve it?


Last edited by eleanor on Sat Nov 23, 2013 3:31 pm; edited 1 time in total
Back to top
View user's profile Send private message
jonnevers
Veteran
Veteran


Joined: 02 Jan 2003
Posts: 1592
Location: Gentoo64 land

PostPosted: Fri Nov 22, 2013 12:44 am    Post subject: Reply with quote

does setting a reasonable JAVA_OPTS help?

Code:
export JAVA_OPTS=-XX:MaxPermSize=512m -XX:PermSize=128m -Xms1024m -Xmx1524m
Back to top
View user's profile Send private message
eleanor
l33t
l33t


Joined: 01 Nov 2004
Posts: 661

PostPosted: Fri Nov 22, 2013 6:31 pm    Post subject: Reply with quote

Hi,

No it doesn't help, the same error occurs:

Quote:

# export JAVA_OPTS="-XX:MaxPermSize=512m -XX:PermSize=128m -Xms1024m -Xmx1524m"
# java -jar DirBuster-1.0-RC1/DirBuster-1.0-RC1.jar
Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x000002c754de5000, 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_pid5831.log
Signal 18 (CONT) caught by ps (procps-ng version 3.3.6).
ps:display.c:66: please report this bug

Back to top
View user's profile Send private message
landdie
n00b
n00b


Joined: 10 Sep 2013
Posts: 25
Location: Southern Sweden

PostPosted: Sat Nov 23, 2013 12:16 am    Post subject: Reply with quote

Not sure if I can help you on this but If you haven't got it sorted yet maybe you could post the output of emerge -v --info.
Back to top
View user's profile Send private message
eleanor
l33t
l33t


Joined: 01 Nov 2004
Posts: 661

PostPosted: Sat Nov 23, 2013 8:01 am    Post subject: Reply with quote

Hi,

Yes, here it is:

Quote:

# emerge -v --info
Portage 2.2.7 (hardened/linux/amd64, gcc-4.5.4, glibc-2.15-r3, 3.10.1-hardened-r1 x86_64)
=================================================================
System uname: Linux-3.10.1-hardened-r1-x86_64-Intel-R-_Core-TM-2_Duo_CPU_P8800_@_2.66GHz-with-gentoo-2.2
KiB Mem: 8073096 total, 2155944 free
KiB Swap: 4718588 total, 3720900 free
Timestamp of tree: Mon, 18 Nov 2013 22:30:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
app-shells/bash: 4.2_p45
dev-java/java-config: 2.1.12-r1
dev-lang/python: 2.7.5-r3, 3.2.5-r3
dev-util/cmake: 2.8.11.2
dev-util/pkgconfig: 0.28
sys-apps/baselayout: 2.2
sys-apps/openrc: 0.11.8
sys-apps/sandbox: 2.6-r1
sys-devel/autoconf: 2.13, 2.69
sys-devel/automake: 1.9.6-r3, 1.11.6, 1.12.6, 1.13.4
sys-devel/binutils: 2.23.1
sys-devel/gcc: 4.5.4, 4.6.3, 4.7.3-r1
sys-devel/gcc-config: 1.7.3
sys-devel/libtool: 2.4.2
sys-devel/make: 3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc: 2.15-r3
Repositories:

gentoo
location: /usr/portage
sync-type: rsync
sync-uri: rsync://rsync.gentoo.org/gentoo-portage
priority: -1000

ephemeral
location: /var/lib/layman/ephemeral
masters: gentoo
priority: 0

science
location: /var/lib/layman/science
masters: gentoo
priority: 1

sunrise
location: /var/lib/layman/sunrise
masters: gentoo
priority: 2

eroen
location: /var/lib/layman/eroen
masters: gentoo
priority: 3

x-portage
location: /usr/local/portage
masters: gentoo
priority: 4

ABI="amd64"
ABI_X86="64"
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
ACCEPT_PROPERTIES="*"
ACCEPT_RESTRICT="*"
ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci"
ANT_HOME="/usr/share/ant"
APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias"
ARCH="amd64"
AUTOCLEAN="yes"
BOOTSTRAP_USE="cxx unicode python_targets_python3_2 python_targets_python2_7 multilib hardened pax_kernel pic -jit -orc"
CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author"
CAMERAS="ptp2"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2"
CFLAGS_amd64="-m64"
CFLAGS_x32="-mx32"
CFLAGS_x86="-m32"
CHOST="x86_64-pc-linux-gnu"
CHOST_amd64="x86_64-pc-linux-gnu"
CHOST_x32="x86_64-pc-linux-gnux32"
CHOST_x86="i686-pc-linux-gnu"
CLEAN_DELAY="5"
COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog"
COLLISION_IGNORE="/lib/modules/* *.py[co] *$py.class */dropin.cache"
COLORFGBG="default;default;0"
COLORTERM="rxvt-xpm"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-2.2/conf /usr/share/maven-bin-3.0/conf /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2"
DEFAULT_ABI="amd64"
DESKTOP_STARTUP_ID="awesome/gmrun/3204-8-eleanor.local_TIME653589"
DISPLAY=":0.0"
DISTDIR="/usr/portage/distfiles"
EDITOR="vim"
ELIBC="glibc"
EMERGE_DEFAULT_OPTS="--autounmask=n"
EMERGE_WARNING_DELAY="10"
EPREFIX=""
EROOT="/"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FETCHCOMMAND="wget -t 3 -T 60 --passive-ftp -O "${DISTDIR}/${FILE}" "${URI}""
FETCHCOMMAND_RSYNC="rsync -avP "${URI}" "${DISTDIR}/${FILE}""
FETCHCOMMAND_SFTP="bash -c "x=\${2#sftp://} ; host=\${x%%/*} ; port=\${host##*:} ; host=\${host%:*} ; [[ \${host} = \${port} ]] && port=22 ; eval \"declare -a ssh_opts=(\${3})\" ; exec sftp -P \${port} \"\${ssh_opts[@]}\" \"\${host}:/\${x#*/}\" \"\$1\"" sftp "${DISTDIR}/${FILE}" "${URI}" "${PORTAGE_SSH_OPTS}""
FETCHCOMMAND_SSH="bash -c "x=\${2#ssh://} ; host=\${x%%/*} ; port=\${host##*:} ; host=\${host%:*} ; [[ \${host} = \${port} ]] && port=22 ; exec rsync --rsh=\"ssh -p\${port} \${3}\" -avP \"\${host}:/\${x#*/}\" \"\$1\"" rsync "${DISTDIR}/${FILE}" "${URI}" "${PORTAGE_SSH_OPTS}""
FFLAGS="-O2 -pipe"
GCC_SPECS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
GNOME_KEYRING_CONTROL="/tmp/keyring-8nzyuG"
GNOME_KEYRING_PID="3195"
GPG_AGENT_INFO="/tmp/keyring-8nzyuG/gpg:0:1"
GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx"
GRUB_PLATFORMS=""
GSETTINGS_BACKEND="dconf"
GUILE_LOAD_PATH="/usr/share/guile/1.8"
HISTFILE="/home/eleanor/.zsh_history"
HISTSIZE="10000"
HOME="/home/eleanor"
INFOPATH="/usr/share/info:/usr/share/gcc-data/x86_64-pc-linux-gnu/4.5.4/info:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.23.1/info:/usr/share/info/emacs-24"
INPUT_DEVICES="evdev synaptics virtualbox"
IUSE_IMPLICIT="prefix"
JAVAC="/etc/java-config-2/current-system-vm/bin/javac"
JAVACC_HOME="/usr/share/javacc/"
JAVA_HOME="/etc/java-config-2/current-system-vm"
JDK_HOME="/etc/java-config-2/current-system-vm"
KERNEL="linux"
LADSPA_PATH="/usr/lib64/ladspa"
LANG="en_US.UTF-8"
LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text"
LC_ALL="en_US.UTF-8"
LC_CTYPE="en_US.UTF-8"
LC_MESSAGES="C"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LDFLAGS_amd64="-m elf_x86_64"
LDFLAGS_x32="-m elf32_x86_64"
LDFLAGS_x86="-m elf_i386"
LESS="-R -M --shift 5"
LESSOPEN="|lesspipe %s"
LIBDIR_amd64="lib64"
LIBDIR_amd64_fbsd="lib64"
LIBDIR_n32="lib32"
LIBDIR_n64="lib64"
LIBDIR_o32="lib"
LIBDIR_ppc="lib32"
LIBDIR_ppc64="lib64"
LIBDIR_s390="lib32"
LIBDIR_s390x="lib64"
LIBDIR_sparc32="lib32"
LIBDIR_sparc64="lib64"
LIBDIR_x32="libx32"
LIBDIR_x86="lib32"
LIBDIR_x86_fbsd="lib32"
LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer"
LINGUAS="en"
LOGNAME="root"
MAIL="/var/mail/eleanor"
MANPATH="/etc/java-config-2/current-system-vm/man:/usr/local/share/man:/usr/share/man:/usr/share/gcc-data/x86_64-pc-linux-gnu/4.5.4/man:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.23.1/man:/etc/java-config-2/current-system-vm/man/:/usr/lib64/php5.5/man/"
MULTILIB_ABIS="amd64 x86"
MULTILIB_STRICT_DENY="64-bit.*shared object"
MULTILIB_STRICT_DIRS="/lib32 /lib /usr/lib32 /usr/lib /usr/kde/*/lib32 /usr/kde/*/lib /usr/qt/*/lib32 /usr/qt/*/lib /usr/X11R6/lib32 /usr/X11R6/lib"
MULTILIB_STRICT_EXEMPT="(perl5|gcc|gcc-lib|binutils|eclipse-3|debug|portage|udev|systemd|clang|python-exec)"
MULTIOSDIRS="../lib64:../lib32"
NETBEANS="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml"
OFFICE_IMPLEMENTATION="libreoffice"
OLDPWD="/home/eleanor"
OPENCL_PROFILE="intel"
OPENGL_PROFILE="xorg-x11"
PAGER="/usr/bin/less"
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.5.4"
PAX_MARKINGS="XT"
PHP_TARGETS="php5-5"
PKGDIR="/usr/portage/packages"
PORTAGE_ARCHLIST="ppc sparc64-freebsd ppc-openbsd x86-openbsd ppc64 x86-winnt x86-fbsd ppc-aix alpha arm x86-freebsd s390 amd64 arm-linux x86-macos x64-openbsd ia64-hpux hppa x86-netbsd ppc64-linux x86-cygwin amd64-linux ia64-linux x86 sparc-solaris x64-freebsd sparc64-solaris x86-linux x64-macos sparc m68k-mint ia64 mips ppc-macos x86-interix hppa-hpux amd64-fbsd x64-solaris m68k sh x86-solaris sparc-fbsd"
PORTAGE_BIN_PATH="/usr/lib64/portage/bin"
PORTAGE_COMPRESS_EXCLUDE_SUFFIXES="css gif htm[l]? jp[e]?g js pdf png"
PORTAGE_CONFIGROOT="/"
PORTAGE_DEBUG="0"
PORTAGE_DEPCACHEDIR="/var/cache/edb/dep"
PORTAGE_ELOG_CLASSES="log warn error"
PORTAGE_ELOG_MAILFROM="portage@localhost"
PORTAGE_ELOG_MAILSUBJECT="[portage] ebuild log for ${PACKAGE} on ${HOST}"
PORTAGE_ELOG_MAILURI="root"
PORTAGE_ELOG_SYSTEM="save_summary:log,warn,error,qa echo"
PORTAGE_FETCH_CHECKSUM_TRY_MIRRORS="5"
PORTAGE_FETCH_RESUME_MIN_SIZE="350K"
PORTAGE_GID="250"
PORTAGE_GPG_SIGNING_COMMAND="gpg --sign --digest-algo SHA256 --clearsign --yes --default-key "${PORTAGE_GPG_KEY}" --homedir "${PORTAGE_GPG_DIR}" "${FILE}""
PORTAGE_INST_GID="0"
PORTAGE_INST_UID="0"
PORTAGE_INTERNAL_CALLER="1"
PORTAGE_OVERRIDE_EPREFIX=""
PORTAGE_PYM_PATH="/usr/lib64/portage/pym"
PORTAGE_PYTHONPATH="/usr/lib64/portage/pym"
PORTAGE_REPOSITORIES="[DEFAULT]
main-repo = gentoo

[ephemeral]
location = /var/lib/layman/ephemeral
masters = gentoo
priority = 0

[eroen]
location = /var/lib/layman/eroen
masters = gentoo
priority = 3

[gentoo]
location = /usr/portage
masters =
priority = -1000
sync-type = rsync
sync-uri = rsync://rsync.gentoo.org/gentoo-portage

[science]
location = /var/lib/layman/science
masters = gentoo
priority = 1

[sunrise]
location = /var/lib/layman/sunrise
masters = gentoo
priority = 2

[x-portage]
location = /usr/local/portage
masters = gentoo
priority = 4
"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_RSYNC_RETRIES="-1"
PORTAGE_SYNC_STALE="30"
PORTAGE_TMPDIR="/var/tmp"
PORTAGE_VERBOSE="1"
PORTAGE_WORKDIR_MODE="0700"
PORTAGE_XATTR_EXCLUDE="security.* system.nfs4_acl"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/ephemeral /var/lib/layman/science /var/lib/layman/sunrise /var/lib/layman/eroen /usr/local/portage"
PORT_LOGDIR_CLEAN="find "${PORT_LOGDIR}" -type f ! -name "summary.log*" -mtime +7 -delete"
PRELINK_PATH_MASK="/usr/lib64/libfreebl3.so:/usr/lib64/libnssdbm3.so:/usr/lib64/libsoftokn3.so:/opt/bin/skype"
PROFILE_ONLY_VARIABLES="ARCH ELIBC IUSE_IMPLICIT KERNEL USERLAND USE_EXPAND_IMPLICIT USE_EXPAND_UNPREFIXED USE_EXPAND_VALUES_ARCH USE_EXPAND_VALUES_ELIBC USE_EXPAND_VALUES_KERNEL USE_EXPAND_VALUES_USERLAND"
PWD="/home/eleanor"
PYTHONDONTWRITEBYTECODE="1"
PYTHON_SINGLE_TARGET="python2_7"
PYTHON_TARGETS="python2_7 python3_2"
QEMU_SOFTMMU_TARGETS="i386 arm x86_64"
QEMU_USER_TARGETS="i386 arm x86_64"
QT_GRAPHICSSYSTEM="raster"
QT_PLUGIN_PATH="/usr/lib64/kde4/plugins"
RESUMECOMMAND="wget -c -t 3 -T 60 --passive-ftp -O "${DISTDIR}/${FILE}" "${URI}""
RESUMECOMMAND_RSYNC="rsync -avP "${URI}" "${DISTDIR}/${FILE}""
RESUMECOMMAND_SSH="bash -c "x=\${2#ssh://} ; host=\${x%%/*} ; port=\${host##*:} ; host=\${host%:*} ; [[ \${host} = \${port} ]] && port=22 ; exec rsync --rsh=\"ssh -p\${port} \${3}\" -avP \"\${host}:/\${x#*/}\" \"\$1\"" rsync "${DISTDIR}/${FILE}" "${URI}" "${PORTAGE_SSH_OPTS}""
ROOT="/"
ROOTPATH="/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.5.4"
RPMDIR="/usr/portage/rpm"
RUBYOPT="-rauto_gem"
RUBY_TARGETS="ruby19 ruby18"
SAVEHIST="10000"
SHELL="/bin/zsh"
SHLVL="4"
SSH_AGENT_PID="3233"
SSH_AUTH_SOCK="/tmp/ssh-TeqfcwKv3232/agent.3232"
SYMLINK_LIB="yes"
TERM="screen-256color"
TMUX="/tmp/tmux-1000/default,8624,0"
TMUX_PANE="%0"
UNINSTALL_IGNORE="/lib/modules/*"
USE="X aac acl alsa amd64 berkdb bzip2 cleartype cli consolekit corefonts cracklib crypt cups cxx dbus dri fortran freerdp gdbm gnome gnome-keyring hardened iconv icu ipv6 jpeg justify mmx modules mp3 mudflap multilib ncurses nls nptl nsplugin ogg openmp pam pax_kernel pcre pkcs11 png pulseaudio python qt3support readline sensord session sqlite3 sse sse2 ssl ssse3 tcpd threads tiff truetype udisks unicode urandom v4l v4l2 virtualbox vorbis wavpack xattr xinetd zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev synaptics virtualbox" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" QEMU_SOFTMMU_TARGETS="i386 arm x86_64" QEMU_USER_TARGETS="i386 arm x86_64" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="radeon" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
USER="root"
USERLAND="GNU"
USE_EXPAND="ABI_MIPS ABI_X86 ALSA_CARDS APACHE2_MODULES APACHE2_MPMS CALLIGRA_FEATURES CAMERAS COLLECTD_PLUGINS CROSSCOMPILE_OPTS CURL_SSL DRACUT_MODULES DVB_CARDS ELIBC ENLIGHTENMENT_MODULES FCDSL_CARDS FFTOOLS FOO2ZJS_DEVICES FRITZCAPI_CARDS GPSD_PROTOCOLS GRUB_PLATFORMS INPUT_DEVICES KERNEL LCD_DEVICES LIBREOFFICE_EXTENSIONS LINGUAS LIRC_DEVICES MONKEYD_PLUGINS NETBEANS_MODULES NGINX_MODULES_HTTP NGINX_MODULES_MAIL OFED_DRIVERS OFFICE_IMPLEMENTATION OPENMPI_FABRICS OPENMPI_OFED_FEATURES OPENMPI_RM PHP_TARGETS PYTHON_SINGLE_TARGET PYTHON_TARGETS QEMU_SOFTMMU_TARGETS QEMU_USER_TARGETS RUBY_TARGETS SANE_BACKENDS USERLAND VIDEO_CARDS VOICEMAIL_STORAGE XFCE_PLUGINS XTABLES_ADDONS"
USE_EXPAND_HIDDEN="ABI_MIPS CROSSCOMPILE_OPTS ELIBC KERNEL USERLAND"
USE_EXPAND_IMPLICIT="ARCH ELIBC KERNEL USERLAND"
USE_EXPAND_UNPREFIXED="ARCH"
USE_EXPAND_VALUES_ARCH="alpha amd64 amd64-fbsd amd64-linux arm arm-linux hppa hppa-hpux ia64 ia64-hpux ia64-linux m68k m68k-mint mips ppc ppc64 ppc64-linux ppc-aix ppc-macos ppc-openbsd s390 sh sparc sparc64-freebsd sparc64-solaris sparc-fbsd sparc-solaris x64-freebsd x64-macos x64-openbsd x64-solaris x86 x86-cygwin x86-fbsd x86-freebsd x86-interix x86-linux x86-macos x86-netbsd x86-openbsd x86-solaris x86-winnt"
USE_EXPAND_VALUES_ELIBC="AIX Cygwin Darwin FreeBSD glibc HPUX Interix mintlib musl NetBSD OpenBSD SunOS uclibc Winnt"
USE_EXPAND_VALUES_KERNEL="AIX Cygwin Darwin FreeBSD freemint HPUX Interix linux NetBSD OpenBSD SunOS Winnt"
USE_EXPAND_VALUES_USERLAND="BSD GNU"
USE_ORDER="env:pkg:conf:defaults:pkginternal:repo:env.d"
VBOX_APP_HOME="/opt/VirtualBox"
VIDEO_CARDS="radeon"
WINDOWID="18874374"
XAUTHORITY="/root/.xauth24qN9t"
XDG_CONFIG_DIRS="/etc/xdg"
XDG_DATA_DIRS="/usr/local/share:/usr/share"
XDG_SESSION_COOKIE="aa8365db8b21c5a53eed0e175089a3ce-1384878911.454435-1862445412"
XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
_="/usr/bin/emerge"

Back to top
View user's profile Send private message
landdie
n00b
n00b


Joined: 10 Sep 2013
Posts: 25
Location: Southern Sweden

PostPosted: Sat Nov 23, 2013 2:50 pm    Post subject: Reply with quote

Well everything looks fine and tidy there, but I'm no expert. The only thing I can suggest here is that as I assume you are running grsec/pax enabled kernel you might want to check out the
Quote:
Native memory allocation (malloc) failed to allocate 2555904 bytes for committing reserved memory
line of your hs_err_pid1311.log I've read that there are some issues with grsec/pax enabled kernel and memory allocation.

You could try temporarily disabling mprotect for /usr/lib/jvm/java-6-sun-1.6.0.10/jre/bin/java and/or /usr/lib/jvm/java-6-sun-1.6.0.10/jre/bin/javaws and see if it sorts things.

To disable.
Code:
paxctl -m /path/to/file.name
To enable again.
Code:
paxctl -M /path/to/file.name


Oh a quick prayer to the Bitlords before java -jar DirBuster-1.0-RC1.jar might help to. :).

Should you need it more info on grsec/pax can be found here. http://en.wikibooks.org/wiki/Grsecurity/Additional_Utilities#Usage
Back to top
View user's profile Send private message
eleanor
l33t
l33t


Joined: 01 Nov 2004
Posts: 661

PostPosted: Sat Nov 23, 2013 3:31 pm    Post subject: Reply with quote

Hi,

Yes, disabling MPROTECT helped, now DirBuster starts and works, thank you.

In case anybody else is interested the command below did the trick:

Code:

# paxctl-ng -m /usr/lib/jvm/oracle-jdk-bin-1.7/bin/java
Back to top
View user's profile Send private message
landdie
n00b
n00b


Joined: 10 Sep 2013
Posts: 25
Location: Southern Sweden

PostPosted: Sat Nov 23, 2013 4:55 pm    Post subject: Reply with quote

Glad I could point you in the right direction.

To my mind though this should just be treated as a temporary work around bearing in mind that mprotect does actually serve a purpose and I'm assuming your server is pointed at the world so all the more reason to find a permanent fix. :(

I'm sure someone here knows a lot more about this than me.

Hello world! Any ideas out there!

Anyway Lycka Till!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum