Crash JRE libc.so.6 with HTTPS - jvm
I have googled all the planet without any solution to my problem.
Here is the hs_err_pid.log start file and the end
Let me know if you have any clue, because I have no idea how to solve it.
Excuse me for the presentation, I am beginner.
Thank you guys
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007f5589b6c480, pid=7353, tid=139994995676928
#
# JRE version: OpenJDK Runtime Environment (7.0_121) (build 1.7.0_121-b00)
# Java VM: OpenJDK 64-Bit Server VM (24.121-b00 mixed mode linux-amd64 compressed oops)
# Derivative: IcedTea 2.6.8
# Distribution: Gentoo Base System release 2.2, package Gentoo icedtea-7.2.6.8
# Problematic frame:
# C [libc.so.6+0x8e480]
#
# Core dump written. Default location: /opt/tomcat/7.0.78/logs/core or core.7353
#
# If you would like to submit a bug report, please include
# instructions on how to reproduce the bug and visit:
# http://icedtea.classpath.org/bugzilla
#
--------------- T H R E A D ---------------
Current thread (0x00007f558012a000): JavaThread "http-bio-8443-exec-2" daemon [_thread_in_vm, id=7775, stack(0x00007f531fbcd000,0x00007f531ffce000)]
siginfo:si_signo=SIGSEGV: si_errno=0, si_code=1 (SEGV_MAPERR), si_addr=0x0000000000000000
Registers:
RAX=0xfffffff84484b640, RBX=0x00007f558012a000, RCX=0x000000000911ea30, RDX=0x000000000488f518
RSP=0x00007f531ffcbe98, RBP=0x00007f531ffcbf10, RSI=0x0000000000000000, RDI=0x00000007b6f254a8
R8 =0x0000000000000000, R9 =0x00007f5580018598, R10=0x000000000488f528, R11=0xfffffffffffffff8
R12=0x000000000488f518, R13=0x0000000000000000, R14=0x00007f558012a1d8, R15=0x00007f5505578620
RIP=0x00007f5589b6c480, EFLAGS=0x0000000000010202, CSGSFS=0x0f19000000000033, ERR=0x0000000000000004
TRAPNO=0x000000000000000e
Top of Stack: (sp=0x00007f531ffcbe98)
0x00007f531ffcbe98: 00007f5589092baa 00007f558012a000
0x00007f531ffcbea8: 0000000000000000 00007f558012a000
0x00007f531ffcbeb8: 0000000000000000 00007f531ffcbee0
0x00007f531ffcbec8: 00007f55890a3d9b 00007f558012a000
0x00007f531ffcbed8: bb924a63a8aa2700 00007f531ffcbf10
0x00007f531ffcbee8: 00007f558012a000 00007f558012a1d8
0x00007f531ffcbef8: 00007f5505578620 000000000488f518
0x00007f531ffcbf08: 0000000000000000 00007f531ffcbf60
0x00007f531ffcbf18: 00007f55890a80f1 00007f558012a1d8
0x00007f531ffcbf28: 000000000488f3b0 00007f531ffcbf60
0x00007f531ffcbf38: 00007f558012a1d8 00007f5505578620
0x00007f531ffcbf48: 00007f550488f3b0 00007f531ffcc0a8
0x00007f531ffcbf58: 0000000000000042 00007f531ffcbf90
0x00007f531ffcbf68: 00007f55033c8150 00007f5504821850
0x00007f531ffcbf78: 00007f558012a1d8 00007f5504821850
0x00007f531ffcbf88: 00007f5505578618 00007f531ffcc010
0x00007f531ffcbf98: 00007f55033c82ba 0000000400c80ec8
0x00007f531ffcbfa8: 000000428012afe8 00007f550488f2a0
0x00007f531ffcbfb8: 00007f550488ea90 00007f531ffcc000
0x00007f531ffcbfc8: 00007f55048218a0 000000b80000000a
0x00007f531ffcbfd8: bb924a63a8aa2700 0000000400c80ec8
0x00007f531ffcbfe8: 0000000400c80ec8 0000000000000000
0x00007f531ffcbff8: 0000000400c80ec0 00007f531ffcc0b0
0x00007f531ffcc008: 00007f558012a000 00007f531ffcc080
0x00007f531ffcc018: 00007f557d014e98 00007f558012b008
0x00007f531ffcc028: 00007f558012b008 00007f53fffffffe
0x00007f531ffcc038: 0000000000000000 00007f531ffcc040
0x00007f531ffcc048: 0000000400c80ec0 00007f531ffcc0b0
0x00007f531ffcc058: 0000000400c81ff8 0000000000000000
0x00007f531ffcc068: 0000000400c80ec8 0000000000000000
0x00007f531ffcc078: 00007f531ffcc0a0 00007f531ffcc0f8
0x00007f531ffcc088: 00007f557d00634b 0000000617228f10
Instructions: (pc=0x00007f5589b6c480)
0x00007f5589b6c460: 48 89 f0 48 8d 0c 12 48 29 f8 48 29 d0 48 39 c8
0x00007f5589b6c470: 0f 82 07 01 00 00 48 83 fa 10 0f 86 8b 01 00 00
0x00007f5589b6c480: f3 44 0f 6f 06 48 83 fa 20 f3 44 0f 7f 07 f3 44
0x00007f5589b6c490: 0f 6f 44 16 f0 f3 44 0f 7f 44 17 f0 77 12 48 89
Register to memory mapping:
RAX=0xfffffff84484b640 is an unknown value
RBX=0x00007f558012a000 is a thread
RCX=0x000000000911ea30 is an unknown value
RDX=0x000000000488f518 is an unknown value
RSP=0x00007f531ffcbe98 is pointing into the stack for thread: 0x00007f558012a000
RBP=0x00007f531ffcbf10 is pointing into the stack for thread: 0x00007f558012a000
RSI=0x0000000000000000 is an unknown value
RDI=0x00000007b6f254a8 is an unknown value
R8 =0x0000000000000000 is an unknown value
R9 =0x00007f5580018598 is an unknown value
R10=0x000000000488f528 is an unknown value
R11=0xfffffffffffffff8 is an unknown value
R12=0x000000000488f518 is an unknown value
R13=0x0000000000000000 is an unknown value
R14=0x00007f558012a1d8 is an unknown value
R15=0x00007f5505578620 is an unknown value
Stack: [0x00007f531fbcd000,0x00007f531ffce000], sp=0x00007f531ffcbe98, free space=4091k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [libc.so.6+0x8e480]
V [libjvm.so+0x6380f1]
C [libsunec.so+0x1150]
C [libsunec.so+0x12ba] Java_sun_security_ec_ECKeyPairGenerator_generateECKeyPair+0x12a
j sun.security.ec.ECKeyPairGenerator.generateECKeyPair(I[B[B)[Ljava/lang/Object;+0
j sun.security.ec.ECKeyPairGenerator.generateKeyPair()Ljava/security/KeyPair;+55
j java.security.KeyPairGenerator$Delegate.generateKeyPair()Ljava/security/KeyPair;+23
j sun.security.ssl.ECDHCrypt.<init>(Ljava/lang/String;Ljava/security/SecureRandom;)V+28
j sun.security.ssl.ServerHandshaker.setupEphemeralECDHKeys()Z+88
j sun.security.ssl.ServerHandshaker.trySetCipherSuite(Lsun/security/ssl/CipherSuite;)Z+638
j sun.security.ssl.ServerHandshaker.chooseCipherSuite(Lsun/security/ssl/HandshakeMessage$ClientHello;)V+119
j sun.security.ssl.ServerHandshaker.clientHello(Lsun/security/ssl/HandshakeMessage$ClientHello;)V+1134
j sun.security.ssl.ServerHandshaker.processMessage(BI)V+127
j sun.security.ssl.Handshaker.processLoop()V+96
j sun.security.ssl.Handshaker.process_record(Lsun/security/ssl/InputRecord;Z)V+24
j sun.security.ssl.SSLSocketImpl.readRecord(Lsun/security/ssl/InputRecord;Z)V+353
j sun.security.ssl.SSLSocketImpl.performInitialHandshake()V+84
j sun.security.ssl.SSLSocketImpl.startHandshake(Z)V+13
j sun.security.ssl.SSLSocketImpl.getSession()Ljavax/net/ssl/SSLSession;+10
j org.apache.tomcat.util.net.jsse.JSSESocketFactory.handshake(Ljava/net/Socket;)V+4
j org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run()V+30
j java.util.concurrent.ThreadPoolExecutor.runWorker(Ljava/util/concurrent/ThreadPoolExecutor$Worker;)V+95
j java.util.concurrent.ThreadPoolExecutor$Worker.run()V+5
j org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run()V+4
j java.lang.Thread.run()V+11
v ~StubRoutines::call_stub
V [libjvm.so+0x608a84]
V [libjvm.so+0x6077ae]
V [libjvm.so+0x6441af]
V [libjvm.so+0x940fba]
V [libjvm.so+0x94135a]
V [libjvm.so+0x803842]
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j sun.security.ec.ECKeyPairGenerator.generateECKeyPair(I[B[B)[Ljava/lang/Object;+0
j sun.security.ec.ECKeyPairGenerator.generateKeyPair()Ljava/security/KeyPair;+55
j java.security.KeyPairGenerator$Delegate.generateKeyPair()Ljava/security/KeyPair;+23
j sun.security.ssl.ECDHCrypt.<init>(Ljava/lang/String;Ljava/security/SecureRandom;)V+28
j sun.security.ssl.ServerHandshaker.setupEphemeralECDHKeys()Z+88
j sun.security.ssl.ServerHandshaker.trySetCipherSuite(Lsun/security/ssl/CipherSuite;)Z+638
j sun.security.ssl.ServerHandshaker.chooseCipherSuite(Lsun/security/ssl/HandshakeMessage$ClientHello;)V+119
j sun.security.ssl.ServerHandshaker.clientHello(Lsun/security/ssl/HandshakeMessage$ClientHello;)V+1134
j sun.security.ssl.ServerHandshaker.processMessage(BI)V+127
j sun.security.ssl.Handshaker.processLoop()V+96
j sun.security.ssl.Handshaker.process_record(Lsun/security/ssl/InputRecord;Z)V+24
j sun.security.ssl.SSLSocketImpl.readRecord(Lsun/security/ssl/InputRecord;Z)V+353
j sun.security.ssl.SSLSocketImpl.performInitialHandshake()V+84
j sun.security.ssl.SSLSocketImpl.startHandshake(Z)V+13
j sun.security.ssl.SSLSocketImpl.getSession()Ljavax/net/ssl/SSLSession;+10
j org.apache.tomcat.util.net.jsse.JSSESocketFactory.handshake(Ljava/net/Socket;)V+4
j org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run()V+30
j java.util.concurrent.ThreadPoolExecutor.runWorker(Ljava/util/concurrent/ThreadPoolExecutor$Worker;)V+95
j java.util.concurrent.ThreadPoolExecutor$Worker.run()V+5
j org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run()V+4
j java.lang.Thread.run()V+11
v ~StubRoutines::call_stub
--------------- P R O C E S S ---------------
Java Threads: ( => current thread )
0x00007f55802e0800 JavaThread "http-bio-8443-AsyncTimeout" daemon [_thread_blocked, id=7785, stack(0x00007f531d3c3000,0x00007f531d7c4000)]
0x00007f55802de800 JavaThread "http-bio-8443-Acceptor-0" daemon [_thread_in_native, id=7784, stack(0x00007f531d7c4000,0x00007f531dbc5000)]
0x00007f55802dc800 JavaThread "http-bio-8443-exec-10" daemon [_thread_blocked, id=7783, stack(0x00007f531dbc5000,0x00007f531dfc6000)]
0x00007f55802da800 JavaThread "http-bio-8443-exec-9" daemon [_thread_blocked, id=7782, stack(0x00007f531dfc6000,0x00007f531e3c7000)]
.....
VM Mutex/Monitor currently owned by a thread: None
Heap
PSYoungGen total 1715712K, used 1187554K [0x0000000780000000, 0x0000000800000000, 0x0000000800000000)
eden space 1321984K, 73% used [0x0000000780000000,0x00000007bb7b49c0,0x00000007d0b00000)
from space 393728K, 54% used [0x00000007e7f80000,0x00000007f4f84178,0x0000000800000000)
to space 381440K, 0% used [0x00000007d0b00000,0x00000007d0b00000,0x00000007e7f80000)
ParOldGen total 6291456K, used 987789K [0x0000000600000000, 0x0000000780000000, 0x0000000780000000)
object space 6291456K, 15% used [0x0000000600000000,0x000000063c4a35d8,0x0000000780000000)
PSPermGen total 4194304K, used 531336K [0x0000000400000000, 0x0000000500000000, 0x0000000600000000)
object space 4194304K, 12% used [0x0000000400000000,0x00000004206e23c8,0x0000000500000000)
Card table byte_map: [0x00007f5584d73000,0x00007f5586d74000] byte_map_base: 0x00007f5582d73000
Polling page: 0x00007f558a6c7000
Code Cache [0x00007f557d000000, 0x00007f557dec0000, 0x00007f5580000000)
total_blobs=4948 nmethods=4244 adapters=664 free_code_cache=34359Kb largest_free_block=34927552
Compilation events (10 events):
Event: 133.271 Thread 0x00007f55800be800 nmethod 4792 0x00007f557ddd32d0 code [0x00007f557ddd3400, 0x00007f557ddd3498]
Event: 133.282 Thread 0x00007f55800be800 4793 sun.nio.cs.CharsetMapping::readCharArray (112 bytes)
Event: 133.288 Thread 0x00007f55800be800 nmethod 4793 0x00007f557de74210 code [0x00007f557de74360, 0x00007f557de74778]
Event: 133.291 Thread 0x00007f55800c1000 nmethod 4791 0x00007f557de78d50 code [0x00007f557de78f40, 0x00007f557de7a1d0]
Event: 133.331 Thread 0x00007f55800be800 4794 % java.util.Properties$LineReader::readLine # 21 (452 bytes)
Event: 133.339 Thread 0x00007f55800be800 nmethod 4794% 0x00007f557dd8e110 code [0x00007f557dd8e2a0, 0x00007f557dd8eb98]
Event: 133.456 Thread 0x00007f55800c1000 4795 java.util.Properties$LineReader::readLine (452 bytes)
Event: 133.465 Thread 0x00007f55800c1000 nmethod 4795 0x00007f557dd89cd0 code [0x00007f557dd89e60, 0x00007f557dd8a618]
Event: 133.838 Thread 0x00007f55800be800 4796 org.postgresql.core.Parser::parseSingleQuotes (134 bytes)
Event: 133.841 Thread 0x00007f55800be800 nmethod 4796 0x00007f557de1d810 code [0x00007f557de1d960, 0x00007f557de1dbf8]
GC Heap History (10 events):
Event: 99.316 GC heap before
{Heap before GC invocations=16 (full 0):
PSYoungGen total 1662464K, used 1428685K [0x0000000780000000, 0x0000000800000000, 0x0000000800000000)
eden space 1230848K, 100% used [0x0000000780000000,0x00000007cb200000,0x00000007cb200000)
from space 431616K, 45% used [0x00000007cb200000,0x00000007d7333600,0x00000007e5780000)
to space 425472K, 0% used [0x00000007e6080000,0x00000007e6080000,0x0000000800000000)
ParOldGen total 6291456K, used 813260K [0x0000000600000000, 0x0000000780000000, 0x0000000780000000)
object space 6291456K, 12% used [0x0000000600000000,0x0000000631a330c8,0x0000000780000000)
PSPermGen total 4194304K, used 412966K [0x0000000400000000, 0x0000000500000000, 0x0000000600000000)
object space 4194304K, 9% used [0x0000000400000000,0x0000000419349ba0,0x0000000500000000)
Event: 99.399 GC heap after
Heap after GC invocations=16 (full 0):
PSYoungGen total 1678848K, used 196634K [0x0000000780000000, 0x0000000800000000, 0x0000000800000000)
eden space 1253376K, 0% used [0x0000000780000000,0x0000000780000000,0x00000007cc800000)
from space 425472K, 46% used [0x00000007e6080000,0x00000007f2086a98,0x0000000800000000)
to space 418304K, 0% used [0x00000007cc800000,0x00000007cc800000,0x00000007e6080000)
ParOldGen total 6291456K, used 845202K [0x0000000600000000, 0x0000000780000000, 0x0000000780000000)
object space 6291456K, 13% used [0x0000000600000000,0x0000000633964900,0x0000000780000000)
PSPermGen total 4194304K, used 412966K [0x0000000400000000, 0x0000000500000000, 0x0000000600000000)
object space 4194304K, 9% used [0x0000000400000000,0x0000000419349ba0,0x0000000500000000)
}
Event: 108.691 GC heap before
{Heap before GC invocations=17 (full 0):
PSYoungGen total 1678848K, used 1450010K [0x0000000780000000, 0x0000000800000000, 0x0000000800000000)
eden space 1253376K, 100% used [0x0000000780000000,0x00000007cc800000,0x00000007cc800000)
from space 425472K, 46% used [0x00000007e6080000,0x00000007f2086a98,0x0000000800000000)
to space 418304K, 0% used [0x00000007cc800000,0x00000007cc800000,0x00000007e6080000)
ParOldGen total 6291456K, used 845202K [0x0000000600000000, 0x0000000780000000, 0x0000000780000000)
object space 6291456K, 13% used [0x0000000600000000,0x0000000633964900,0x0000000780000000)
PSPermGen total 4194304K, used 431803K [0x0000000400000000, 0x0000000500000000, 0x0000000600000000)
object space 4194304K, 10% used [0x0000000400000000,0x000000041a5aeec8,0x0000000500000000)
Event: 108.774 GC heap after
Heap after GC invocations=17 (full 0):
PSYoungGen total 1671680K, used 190846K [0x0000000780000000, 0x0000000800000000, 0x0000000800000000)
eden space 1253376K, 0% used [0x0000000780000000,0x0000000780000000,0x00000007cc800000)
from space 418304K, 45% used [0x00000007cc800000,0x00000007d825f840,0x00000007e6080000)
to space 411648K, 0% used [0x00000007e6e00000,0x00000007e6e00000,0x0000000800000000)
ParOldGen total 6291456K, used 881007K [0x0000000600000000, 0x0000000780000000, 0x0000000780000000)
object space 6291456K, 14% used [0x0000000600000000,0x0000000635c5bd70,0x0000000780000000)
PSPermGen total 4194304K, used 431803K [0x0000000400000000, 0x0000000500000000, 0x0000000600000000)
object space 4194304K, 10% used [0x0000000400000000,0x000000041a5aeec8,0x0000000500000000)
}
Event: 114.421 GC heap before
{Heap before GC invocations=18 (full 0):
PSYoungGen total 1671680K, used 1444222K [0x0000000780000000, 0x0000000800000000, 0x0000000800000000)
eden space 1253376K, 100% used [0x0000000780000000,0x00000007cc800000,0x00000007cc800000)
from space 418304K, 45% used [0x00000007cc800000,0x00000007d825f840,0x00000007e6080000)
to space 411648K, 0% used [0x00000007e6e00000,0x00000007e6e00000,0x0000000800000000)
ParOldGen total 6291456K, used 881007K [0x0000000600000000, 0x0000000780000000, 0x0000000780000000)
object space 6291456K, 14% used [0x0000000600000000,0x0000000635c5bd70,0x0000000780000000)
PSPermGen total 4194304K, used 447970K [0x0000000400000000, 0x0000000500000000, 0x0000000600000000)
object space 4194304K, 10% used [0x0000000400000000,0x000000041b5789f8,0x0000000500000000)
Event: 114.505 GC heap after
Heap after GC invocations=18 (full 0):
PSYoungGen total 1697280K, used 212260K [0x0000000780000000, 0x0000000800000000, 0x0000000800000000)
eden space 1285632K, 0% used [0x0000000780000000,0x0000000780000000,0x00000007ce780000)
from space 411648K, 51% used [0x00000007e6e00000,0x00000007f3d49188,0x0000000800000000)
to space 399872K, 0% used [0x00000007ce780000,0x00000007ce780000,0x00000007e6e00000)
ParOldGen total 6291456K, used 913317K [0x0000000600000000, 0x0000000780000000, 0x0000000780000000)
object space 6291456K, 14% used [0x0000000600000000,0x0000000637be9728,0x0000000780000000)
PSPermGen total 4194304K, used 447970K [0x0000000400000000, 0x0000000500000000, 0x0000000600000000)
object space 4194304K, 10% used [0x0000000400000000,0x000000041b5789f8,0x0000000500000000)
}
Event: 123.134 GC heap before
{Heap before GC invocations=19 (full 0):
PSYoungGen total 1697280K, used 1497892K [0x0000000780000000, 0x0000000800000000, 0x0000000800000000)
eden space 1285632K, 100% used [0x0000000780000000,0x00000007ce780000,0x00000007ce780000)
from space 411648K, 51% used [0x00000007e6e00000,0x00000007f3d49188,0x0000000800000000)
to space 399872K, 0% used [0x00000007ce780000,0x00000007ce780000,0x00000007e6e00000)
ParOldGen total 6291456K, used 913317K [0x0000000600000000, 0x0000000780000000, 0x0000000780000000)
object space 6291456K, 14% used [0x0000000600000000,0x0000000637be9728,0x0000000780000000)
PSPermGen total 4194304K, used 480230K [0x0000000400000000, 0x0000000500000000, 0x0000000600000000)
object space 4194304K, 11% used [0x0000000400000000,0x000000041d4f9b90,0x0000000500000000)
Event: 123.218 GC heap after
Heap after GC invocations=19 (full 0):
PSYoungGen total 1685504K, used 182843K [0x0000000780000000, 0x0000000800000000, 0x0000000800000000)
eden space 1285632K, 0% used [0x0000000780000000,0x0000000780000000,0x00000007ce780000)
from space 399872K, 45% used [0x00000007ce780000,0x00000007d9a0ecf0,0x00000007e6e00000)
to space 393728K, 0% used [0x00000007e7f80000,0x00000007e7f80000,0x0000000800000000)
ParOldGen total 6291456K, used 946748K [0x0000000600000000, 0x0000000780000000, 0x0000000780000000)
object space 6291456K, 15% used [0x0000000600000000,0x0000000639c8f218,0x0000000780000000)
PSPermGen total 4194304K, used 480230K [0x0000000400000000, 0x0000000500000000, 0x0000000600000000)
object space 4194304K, 11% used [0x0000000400000000,0x000000041d4f9b90,0x0000000500000000)
}
Event: 128.937 GC heap before
{Heap before GC invocations=20 (full 0):
PSYoungGen total 1685504K, used 1468475K [0x0000000780000000, 0x0000000800000000, 0x0000000800000000)
eden space 1285632K, 100% used [0x0000000780000000,0x00000007ce780000,0x00000007ce780000)
from space 399872K, 45% used [0x00000007ce780000,0x00000007d9a0ecf0,0x00000007e6e00000)
to space 393728K, 0% used [0x00000007e7f80000,0x00000007e7f80000,0x0000000800000000)
ParOldGen total 6291456K, used 946748K [0x0000000600000000, 0x0000000780000000, 0x0000000780000000)
object space 6291456K, 15% used [0x0000000600000000,0x0000000639c8f218,0x0000000780000000)
PSPermGen total 4194304K, used 496294K [0x0000000400000000, 0x0000000500000000, 0x0000000600000000)
object space 4194304K, 11% used [0x0000000400000000,0x000000041e4a9b58,0x0000000500000000)
Event: 129.028 GC heap after
Heap after GC invocations=20 (full 0):
PSYoungGen total 1715712K, used 213008K [0x0000000780000000, 0x0000000800000000, 0x0000000800000000)
eden space 1321984K, 0% used [0x0000000780000000,0x0000000780000000,0x00000007d0b00000)
from space 393728K, 54% used [0x00000007e7f80000,0x00000007f4f84178,0x0000000800000000)
to space 381440K, 0% used [0x00000007d0b00000,0x00000007d0b00000,0x00000007e7f80000)
ParOldGen total 6291456K, used 987789K [0x0000000600000000, 0x0000000780000000, 0x0000000780000000)
object space 6291456K, 15% used [0x0000000600000000,0x000000063c4a35d8,0x0000000780000000)
PSPermGen total 4194304K, used 496294K [0x0000000400000000, 0x0000000500000000, 0x0000000600000000)
object space 4194304K, 11% used [0x0000000400000000,0x000000041e4a9b58,0x0000000500000000)
}
Deoptimization events (10 events):
Event: 133.447 Thread 0x00007f558015f800 Uncommon trap: reason=unstable_if action=reinterpret pc=0x00007f557d455ca4 method=java.lang.Character.isUpperCase(I)Z # 5
Event: 133.447 Thread 0x00007f558015f800 Uncommon trap: reason=class_check action=maybe_recompile pc=0x00007f557d674dac method=java.beans.Introspector.processPropertyDescriptors()V # 91
Event: 133.448 Thread 0x00007f558015f800 Uncommon trap: reason=class_check action=maybe_recompile pc=0x00007f557d674dac method=java.beans.Introspector.processPropertyDescriptors()V # 91
Event: 133.448 Thread 0x00007f558015f800 Uncommon trap: reason=unstable_if action=reinterpret pc=0x00007f557d4566e4 method=java.lang.Character.isUpperCase(I)Z # 5
Event: 133.449 Thread 0x00007f558015f800 Uncommon trap: reason=class_check action=maybe_recompile pc=0x00007f557d674dac method=java.beans.Introspector.processPropertyDescriptors()V # 91
Event: 133.454 Thread 0x00007f558015f800 Uncommon trap: reason=unstable_if action=reinterpret pc=0x00007f557d2cb5c4 method=java.nio.Buffer.limit(I)Ljava/nio/Buffer; # 33
Event: 133.459 Thread 0x00007f558015f800 Uncommon trap: reason=unstable_if action=reinterpret pc=0x00007f557d7226ec method=java.nio.charset.CharsetDecoder.decode(Ljava/nio/ByteBuffer;Ljava/nio/CharBuffer;Z)Ljava/nio/charset/CoderResult; # 1
Event: 140.285 Thread 0x00007f5580128000 Uncommon trap: reason=unstable_if action=reinterpret pc=0x00007f557dd5c1c8 method=sun.security.util.AbstractAlgorithmConstraints.checkAlgorithm([Ljava/lang/String;Ljava/lang/String;Lsun/security/util/AlgorithmDecomposer;)Z # 70
Event: 140.288 Thread 0x00007f558012a000 Uncommon trap: reason=unstable_if action=reinterpret pc=0x00007f557d19cb90 method=java.io.ByteArrayInputStream.read([BII)I # 70
Event: 140.289 Thread 0x00007f5580128000 Uncommon trap: reason=unstable_if action=reinterpret pc=0x00007f557d19cb90 method=java.io.ByteArrayInputStream.read([BII)I # 70
Internal exceptions (10 events):
Event: 133.458 Thread 0x00007f558015f800 Threw 0x00000007ae646ec0 at /var/tmp/notmpfs/portage/dev-java/icedtea-7.2.6.8/work/icedtea-2.6.8/openjdk/hotspot/src/share/vm/prims/jvm.cpp:1322
Event: 133.458 Thread 0x00007f558015f800 Threw 0x00000007ae647620 at /var/tmp/notmpfs/portage/dev-java/icedtea-7.2.6.8/work/icedtea-2.6.8/openjdk/hotspot/src/share/vm/prims/jvm.cpp:1322
Event: 133.458 Thread 0x00007f558015f800 Threw 0x00000007ae64a7c8 at /var/tmp/notmpfs/portage/dev-java/icedtea-7.2.6.8/work/icedtea-2.6.8/openjdk/hotspot/src/share/vm/prims/jvm.cpp:1322
Event: 133.458 Thread 0x00007f558015f800 Threw 0x00000007ae64af78 at /var/tmp/notmpfs/portage/dev-java/icedtea-7.2.6.8/work/icedtea-2.6.8/openjdk/hotspot/src/share/vm/prims/jvm.cpp:1322
Event: 133.459 Thread 0x00007f558015f800 Threw 0x00000007ae64e800 at /var/tmp/notmpfs/portage/dev-java/icedtea-7.2.6.8/work/icedtea-2.6.8/openjdk/hotspot/src/share/vm/prims/jvm.cpp:1322
Event: 133.459 Thread 0x00007f558015f800 Threw 0x00000007ae64f008 at /var/tmp/notmpfs/portage/dev-java/icedtea-7.2.6.8/work/icedtea-2.6.8/openjdk/hotspot/src/share/vm/prims/jvm.cpp:1322
Event: 133.460 Thread 0x00007f558015f800 Threw 0x00000007ae652348 at /var/tmp/notmpfs/portage/dev-java/icedtea-7.2.6.8/work/icedtea-2.6.8/openjdk/hotspot/src/share/vm/prims/jvm.cpp:1322
Event: 133.460 Thread 0x00007f558015f800 Threw 0x00000007ae652b58 at /var/tmp/notmpfs/portage/dev-java/icedtea-7.2.6.8/work/icedtea-2.6.8/openjdk/hotspot/src/share/vm/prims/jvm.cpp:1322
Event: 135.204 Thread 0x00007f54f4d23800 Threw 0x00000007ae82a358 at /var/tmp/notmpfs/portage/dev-java/icedtea-7.2.6.8/work/icedtea-2.6.8/openjdk/hotspot/src/share/vm/prims/jvm.cpp:1322
Event: 139.962 Thread 0x00007f54f4fab000 Threw 0x00000007aed1c080 at /var/tmp/notmpfs/portage/dev-java/icedtea-7.2.6.8/work/icedtea-2.6.8/openjdk/hotspot/src/share/vm/prims/jvm.cpp:1322
Events (10 events):
Event: 140.290 loading class 0x00007f55043e2ff0
Event: 140.290 loading class 0x00007f55043e2ff0 done
Event: 140.290 loading class 0x00007f55043e2da0
Event: 140.290 loading class 0x00007f55043e2da0 done
Event: 140.291 loading class 0x00007f55043e3b30
Event: 140.291 loading class 0x00007f55043e3b30 done
Event: 140.291 loading class 0x00007f55043e3550
Event: 140.291 loading class 0x00007f55043e3550 done
Event: 140.291 loading class 0x00007f55804696e0
Event: 140.291 loading class 0x00007f55804696e0 done
Dynamic libraries:
003ff000-00400000 rw-p 00000000 08:03 18490064 /opt/icedtea-bin-7.2.6.8/bin/java
00400000-00401000 r-xp 00001000 08:03 18490064 /opt/icedtea-bin-7.2.6.8/bin/java
00600000-00601000 r--p 00001000 08:03 18490064 /opt/icedtea-bin-7.2.6.8/bin/java
00601000-00602000 rw-p 00002000 08:03 18490064 /opt/icedtea-bin-7.2.6.8/bin/java
01988000-019a9000 rw-p 00000000 00:00 0 [heap]
.....
VM Arguments:
jvm_args: -Djava.util.logging.config.file=/opt/tomcat/7.0.78/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djdk.tls.ephemeralDHKeySize=2048 -Xms4096m -Xmx4096m -XX:NewSize=2048m -XX:MaxNewSize=2048m -XX:PermSize=4096m -XX:MaxPermSize=4096m -XX:+DisableExplicitGC -XX:+HeapDumpOnOutOfMemoryError -Xcheck:jni -Xms8192m -Xmx8192m -XX:MaxPermSize=8192m -Xss4096k -XX:+UseParallelGC -XX:MaxGCPauseMillis=1500 -XX:GCTimeRatio=9 -XX:+DisableExplicitGC -Djava.endorsed.dirs=/opt/tomcat/7.0.78/endorsed -Dcatalina.base=/opt/tomcat/7.0.78 -Dcatalina.home=/opt/tomcat/7.0.78 -Djava.io.tmpdir=/opt/tomcat/7.0.78/temp
java_command: org.apache.catalina.startup.Bootstrap start
Launcher Type: SUN_STANDARD
Environment Variables:
JAVA_HOME=/etc/java-config-2/current-system-vm
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.9.4
SHELL=/bin/bash
DISPLAY=localhost:10.0
Signal Handlers:
SIGSEGV: [libjvm.so+0x996df0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGBUS: [libjvm.so+0x996df0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGFPE: [libjvm.so+0x801c80], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGPIPE: SIG_IGN, sa_mask[0]=0x00000000, sa_flags=0x00000000
SIGXFSZ: [libjvm.so+0x801c80], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGILL: [libjvm.so+0x801c80], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGUSR1: SIG_DFL, sa_mask[0]=0x00000000, sa_flags=0x00000000
SIGUSR2: [libjvm.so+0x801db0], sa_mask[0]=0x00000000, sa_flags=0x10000004
SIGHUP: [libjvm.so+0x801d00], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGINT: SIG_IGN, sa_mask[0]=0x00000000, sa_flags=0x00000000
SIGTERM: [libjvm.so+0x801d00], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGQUIT: [libjvm.so+0x801d00], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGTRAP: SIG_DFL, sa_mask[0]=0x00000000, sa_flags=0x00000000
--------------- S Y S T E M ---------------
OS:Gentoo Base System release 2.3
uname:Linux 4.4.6-gentoo #1 SMP Fri Jul 22 14:10:27 CEST 2016 x86_64
libc:glibc 2.23 NPTL 2.23
rlimit: STACK 8192k, CORE infinity, NPROC 63651, NOFILE 4096, AS infinity
load average:0.44 0.27 2.74
/proc/meminfo:
MemTotal: 16328680 kB
MemFree: 4797700 kB
MemAvailable: 11312328 kB
Buffers: 586184 kB
Cached: 6091712 kB
SwapCached: 6488 kB
Active: 7015680 kB
Inactive: 3838568 kB
Active(anon): 4578024 kB
Inactive(anon): 170920 kB
Active(file): 2437656 kB
Inactive(file): 3667648 kB
Unevictable: 7444 kB
Mlocked: 7444 kB
SwapTotal: 972796 kB
SwapFree: 860668 kB
Dirty: 460 kB
Writeback: 0 kB
AnonPages: 4183196 kB
Mapped: 712856 kB
Shmem: 566544 kB
Slab: 549900 kB
SReclaimable: 469876 kB
SUnreclaim: 80024 kB
KernelStack: 13760 kB
PageTables: 47748 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 9137136 kB
Committed_AS: 17231004 kB
VmallocTotal: 34359738367 kB
VmallocUsed: 0 kB
VmallocChunk: 0 kB
HardwareCorrupted: 0 kB
HugePages_Total: 0
HugePages_Free: 0
HugePages_Rsvd: 0
HugePages_Surp: 0
Hugepagesize: 2048 kB
DirectMap4k: 3195776 kB
DirectMap2M: 13502464 kB
DirectMap1G: 0 kB
CPU:total 16 (8 cores per cpu, 2 threads per core) family 6 model 45 stepping 7, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, avx, aes, ht, tsc, tscinvbit, tscinv
.....
Memory: 4k page, physical 16328680k(4797700k free), swap 972796k(860668k free)
vm_info: OpenJDK 64-Bit Server VM (24.121-b00) for linux-amd64 JRE (1.7.0_121-b00), built on Nov 19 2016 12:19:28 by "portage" with gcc 4.9.3
time: Fri Jun 23 11:39:29 2017
elapsed time: 140 seconds
Related
Failed to load image using stbi_load (lwjgl used)
I'm learning OpenGL following this video. While it's based on C++, I attempt to use Kotlin instead with lwjgl. As I code and run this: // Something above stbi_set_flip_vertically_on_load(true) val width = IntBuffer.allocate(1) val height = IntBuffer.allocate(1) val colorChannel = IntBuffer.allocate(1) val imageBuffer = stbi_load( "src/main/resources/$filePath", width, height, colorChannel, 0 ) ?: throw NoSuchElementException(filePath) // Something below It explodes on stbi_load() outside JVM with the following error message: # # A fatal error has been detected by the Java Runtime Environment: # # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007ff98391456e, pid=3740, tid=0x0000000000004e94 # # JRE version: OpenJDK Runtime Environment (8.0_302-b08) (build 1.8.0_302-b08) # Java VM: OpenJDK 64-Bit Server VM (25.302-b08 mixed mode windows-amd64 compressed oops) # Problematic frame: # C [lwjgl_stb.dll+0x456e] # # Failed to write core dump. Minidumps are not enabled by default on client versions of Windows # # If you would like to submit a bug report, please visit: # https://github.com/corretto/corretto-8/issues/ # The crash happened outside the Java Virtual Machine in native code. # See problematic frame for where to report the bug. # --------------- T H R E A D --------------- Current thread (0x000001f98ec0c000): JavaThread "main" [_thread_in_native, id=20116, stack(0x000000b726100000,0x000000b726200000)] siginfo: ExceptionCode=0xc0000005, writing address 0x0000000000000000 Registers: RAX=0x0000000000000200, RBX=0x000000b7261fed00, RCX=0x000000b7261fec90, RDX=0x000001f98ebc0000 RSP=0x000000b7261febb0, RBP=0x0000000000000000, RSI=0x0000000000000000, RDI=0x000001f9b823d040 R8 =0x000000b7261fd438, R9 =0x0000000000000001, R10=0x0000000000000000, R11=0x000000b7261fd650 R12=0x0000000000000000, R13=0x0000000000000001, R14=0x0000000000000000, R15=0x0000000000000000 RIP=0x00007ff98391456e, EFLAGS=0x0000000000010246 Top of Stack: (sp=0x000000b7261febb0) 0x000000b7261febb0: 000001f9b6031d00 000000b700000000 0x000000b7261febc0: 0000000000000000 0000000000000000 0x000000b7261febd0: 000000b7261fed38 00007ff983953854 0x000000b7261febe0: 000001f9b602e730 ffffffffffffffff 0x000000b7261febf0: 000000b7261fed00 0000000000000000 0x000000b7261fec00: 0000000000000000 000001f9b823d040 0x000000b7261fec10: 0000000000000008 000000b7261fed38 0x000000b7261fec20: 0000000000000000 0000000000000000 0x000000b7261fec30: 0000000000000000 0000000000000000 0x000000b7261fec40: 0000000000000000 00007ff983914a9c 0x000000b7261fec50: 000001f900000000 000001f9b602e730 0x000000b7261fec60: 0000000000000000 0000000000000000 0x000000b7261fec70: 000001f900000000 000000b7261fec90 0x000000b7261fec80: 000001f900000008 00007ff9839539b8 0x000000b7261fec90: 0000000000000008 0000000000000000 0x000000b7261feca0: 000001f98ec0c000 000000b7261fef00 Instructions: (pc=0x00007ff98391456e) 0x00007ff98391454e: 24 20 48 8b cf 75 07 e8 26 0d 00 00 eb 05 e8 9f 0x00007ff98391455e: 11 00 00 89 6b 0c 48 8b f8 48 85 c0 74 56 8b 03 0x00007ff98391456e: 41 89 04 24 8b 43 04 41 89 07 4d 85 f6 74 0d 8b 0x00007ff98391457e: 43 08 41 89 06 eb 05 48 8b 74 24 58 48 8b ce ff Register to memory mapping: RAX=0x0000000000000200 is an unknown value RBX=0x000000b7261fed00 is pointing into the stack for thread: 0x000001f98ec0c000 RCX=0x000000b7261fec90 is pointing into the stack for thread: 0x000001f98ec0c000 RDX=0x000001f98ebc0000 is an unknown value RSP=0x000000b7261febb0 is pointing into the stack for thread: 0x000001f98ec0c000 RBP=0x0000000000000000 is an unknown value RSI=0x0000000000000000 is an unknown value RDI=0x000001f9b823d040 is an unknown value R8 =0x000000b7261fd438 is pointing into the stack for thread: 0x000001f98ec0c000 R9 =0x0000000000000001 is an unknown value R10=0x0000000000000000 is an unknown value R11=0x000000b7261fd650 is pointing into the stack for thread: 0x000001f98ec0c000 R12=0x0000000000000000 is an unknown value R13=0x0000000000000001 is an unknown value R14=0x0000000000000000 is an unknown value R15=0x0000000000000000 is an unknown value Stack: [0x000000b726100000,0x000000b726200000], sp=0x000000b7261febb0, free space=1018k Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) Java frames: (J=compiled Java code, j=interpreted, Vv=VM code) j org.lwjgl.stb.STBImage.nstbi_load(JJJJI)J+0 j org.lwjgl.stb.STBImage.stbi_load(Ljava/lang/CharSequence;Ljava/nio/IntBuffer;Ljava/nio/IntBuffer;Ljava/nio/IntBuffer;I)Ljava/nio/ByteBuffer;+64 j net.peanuuutz.graphics.Texture.<init>(Ljava/lang/String;IIII)V+67 j net.peanuuutz.graphics.TexturesKt.main()V+328 j net.peanuuutz.graphics.TexturesKt.main([Ljava/lang/String;)V+0 v ~StubRoutines::call_stub --------------- P R O C E S S --------------- Java Threads: ( => current thread ) 0x000001f9ac15a000 JavaThread "Service Thread" daemon [_thread_blocked, id=13668, stack(0x000000b727600000,0x000000b727700000)] 0x000001f9ac0c0000 JavaThread "C1 CompilerThread3" daemon [_thread_blocked, id=16976, stack(0x000000b727500000,0x000000b727600000)] 0x000001f9ac0be000 JavaThread "C2 CompilerThread2" daemon [_thread_blocked, id=20156, stack(0x000000b727400000,0x000000b727500000)] 0x000001f9ac0b9800 JavaThread "C2 CompilerThread1" daemon [_thread_blocked, id=24508, stack(0x000000b727300000,0x000000b727400000)] 0x000001f9ac0b6800 JavaThread "C2 CompilerThread0" daemon [_thread_blocked, id=20268, stack(0x000000b727200000,0x000000b727300000)] 0x000001f9ac0b3000 JavaThread "Monitor Ctrl-Break" daemon [_thread_in_native, id=3656, stack(0x000000b727100000,0x000000b727200000)] 0x000001f9a9b9d000 JavaThread "Attach Listener" daemon [_thread_blocked, id=3060, stack(0x000000b727000000,0x000000b727100000)] 0x000001f9a9b9c800 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=11092, stack(0x000000b726f00000,0x000000b727000000)] 0x000001f9a9b67000 JavaThread "Finalizer" daemon [_thread_blocked, id=14844, stack(0x000000b726e00000,0x000000b726f00000)] 0x000001f9a9b60800 JavaThread "Reference Handler" daemon [_thread_blocked, id=23064, stack(0x000000b726d00000,0x000000b726e00000)] =>0x000001f98ec0c000 JavaThread "main" [_thread_in_native, id=20116, stack(0x000000b726100000,0x000000b726200000)] Other Threads: 0x000001f9a9b39000 VMThread [stack: 0x000000b726c00000,0x000000b726d00000] [id=7040] 0x000001f9ac15e000 WatcherThread [stack: 0x000000b727700000,0x000000b727800000] [id=11348] VM state:not at safepoint (normal execution) VM Mutex/Monitor currently owned by a thread: None heap address: 0x00000006c2600000, size: 4058 MB, Compressed Oops mode: Zero based, Oop shift amount: 3 Narrow klass base: 0x0000000000000000, Narrow klass shift: 3 Compressed class space size: 1073741824 Address: 0x00000007c0000000 Heap: PSYoungGen total 75776K, used 23537K [0x000000076b780000, 0x0000000770c00000, 0x00000007c0000000) eden space 65024K, 36% used [0x000000076b780000,0x000000076ce7c680,0x000000076f700000) from space 10752K, 0% used [0x0000000770180000,0x0000000770180000,0x0000000770c00000) to space 10752K, 0% used [0x000000076f700000,0x000000076f700000,0x0000000770180000) ParOldGen total 173568K, used 0K [0x00000006c2600000, 0x00000006ccf80000, 0x000000076b780000) object space 173568K, 0% used [0x00000006c2600000,0x00000006c2600000,0x00000006ccf80000) Metaspace used 9236K, capacity 9501K, committed 9600K, reserved 1058816K class space used 786K, capacity 879K, committed 896K, reserved 1048576K Card table byte_map: [0x000001f99fc60000,0x000001f9a0450000] byte_map_base: 0x000001f99c64d000 Marking Bits: (ParMarkBitMap*) 0x0000000051011820 Begin Bits: [0x000001f9a09a0000, 0x000001f9a4908000) End Bits: [0x000001f9a4908000, 0x000001f9a8870000) Polling page: 0x000001f98eb80000 CodeCache: size=245760Kb used=2896Kb max_used=2896Kb free=242864Kb bounds [0x000001f9908a0000, 0x000001f990b80000, 0x000001f99f8a0000] total_blobs=1554 nmethods=665 adapters=802 compilation: enabled Compilation events (10 events): Event: 0.513 Thread 0x000001f9ac0c0000 661 3 java.lang.Thread::isInterrupted (6 bytes) Event: 0.513 Thread 0x000001f9ac0c0000 nmethod 661 0x000001f990b70e10 code [0x000001f990b70f80, 0x000001f990b71110] Event: 0.513 Thread 0x000001f9ac0c0000 662 3 sun.nio.ch.Util$BufferCache::get (164 bytes) Event: 0.514 Thread 0x000001f9ac0c0000 nmethod 662 0x000001f990b71190 code [0x000001f990b71380, 0x000001f990b71ed0] Event: 0.514 Thread 0x000001f9ac0c0000 663 3 sun.nio.ch.FileDispatcherImpl::read (8 bytes) Event: 0.514 Thread 0x000001f9ac0c0000 nmethod 663 0x000001f990b72390 code [0x000001f990b72500, 0x000001f990b72690] Event: 0.514 Thread 0x000001f9ac0c0000 665 3 java.util.WeakHashMap::put (162 bytes) Event: 0.514 Thread 0x000001f9ac0c0000 nmethod 665 0x000001f990b72750 code [0x000001f990b72980, 0x000001f990b73820] Event: 0.514 Thread 0x000001f9ac0c0000 664 ! 3 sun.nio.ch.ChannelInputStream::read (95 bytes) Event: 0.515 Thread 0x000001f9ac0c0000 nmethod 664 0x000001f990b73e50 code [0x000001f990b74040, 0x000001f990b74af0] GC Heap History (0 events): No events Deoptimization events (2 events): Event: 0.166 Thread 0x000001f98ec0c000 Uncommon trap: reason=null_check action=make_not_entrant pc=0x000001f9909b55cc method=java.lang.String.equals(Ljava/lang/Object;)Z # 8 Event: 0.192 Thread 0x000001f98ec0c000 Uncommon trap: reason=unstable_if action=reinterpret pc=0x000001f990a362fc method=java.lang.String.indexOf([CII[CIII)I # 3 Classes redefined (0 events): No events Internal exceptions (10 events): Event: 0.235 Thread 0x000001f98ec0c000 Exception <a 'java/security/PrivilegedActionException'> (0x000000076c26b4a8) thrown at [C:\wsjdk\Corretto8Src\installers\windows\zip\corretto-build\buildRoot\src\hotspot\src\share\vm\prims\jvm.cpp, line 1523] Event: 0.235 Thread 0x000001f98ec0c000 Exception <a 'java/security/PrivilegedActionException'> (0x000000076c26b8a0) thrown at [C:\wsjdk\Corretto8Src\installers\windows\zip\corretto-build\buildRoot\src\hotspot\src\share\vm\prims\jvm.cpp, line 1523] Event: 0.235 Thread 0x000001f98ec0c000 Exception <a 'java/security/PrivilegedActionException'> (0x000000076c26d940) thrown at [C:\wsjdk\Corretto8Src\installers\windows\zip\corretto-build\buildRoot\src\hotspot\src\share\vm\prims\jvm.cpp, line 1523] Event: 0.235 Thread 0x000001f98ec0c000 Exception <a 'java/security/PrivilegedActionException'> (0x000000076c26dd38) thrown at [C:\wsjdk\Corretto8Src\installers\windows\zip\corretto-build\buildRoot\src\hotspot\src\share\vm\prims\jvm.cpp, line 1523] Event: 0.235 Thread 0x000001f98ec0c000 Exception <a 'java/security/PrivilegedActionException'> (0x000000076c26fdd8) thrown at [C:\wsjdk\Corretto8Src\installers\windows\zip\corretto-build\buildRoot\src\hotspot\src\share\vm\prims\jvm.cpp, line 1523] Event: 0.235 Thread 0x000001f98ec0c000 Exception <a 'java/security/PrivilegedActionException'> (0x000000076c2701d0) thrown at [C:\wsjdk\Corretto8Src\installers\windows\zip\corretto-build\buildRoot\src\hotspot\src\share\vm\prims\jvm.cpp, line 1523] Event: 0.235 Thread 0x000001f98ec0c000 Exception <a 'java/security/PrivilegedActionException'> (0x000000076c272198) thrown at [C:\wsjdk\Corretto8Src\installers\windows\zip\corretto-build\buildRoot\src\hotspot\src\share\vm\prims\jvm.cpp, line 1523] Event: 0.235 Thread 0x000001f98ec0c000 Exception <a 'java/security/PrivilegedActionException'> (0x000000076c272590) thrown at [C:\wsjdk\Corretto8Src\installers\windows\zip\corretto-build\buildRoot\src\hotspot\src\share\vm\prims\jvm.cpp, line 1523] Event: 0.334 Thread 0x000001f98ec0c000 Exception <a 'sun/nio/fs/WindowsException'> (0x000000076c325c70) thrown at [C:\wsjdk\Corretto8Src\installers\windows\zip\corretto-build\buildRoot\src\hotspot\src\share\vm\prims\jni.cpp, line 711] Event: 0.334 Thread 0x000001f98ec0c000 Exception <a 'sun/nio/fs/WindowsException'> (0x000000076c3276b0) thrown at [C:\wsjdk\Corretto8Src\installers\windows\zip\corretto-build\buildRoot\src\hotspot\src\share\vm\prims\jni.cpp, line 711] Events (10 events): Event: 0.507 loading class org/lwjgl/opengl/GL$ICDStatic$WriteOnce Event: 0.507 loading class org/lwjgl/opengl/GL$ICDStatic$WriteOnce done Event: 0.507 loading class net/peanuuutz/graphics/Texture Event: 0.507 loading class net/peanuuutz/graphics/Texture done Event: 0.507 loading class org/lwjgl/stb/STBImage Event: 0.507 loading class org/lwjgl/stb/STBImage done Event: 0.508 loading class org/lwjgl/stb/LibSTB Event: 0.508 loading class org/lwjgl/stb/LibSTB done Event: 0.516 loading class java/nio/HeapIntBuffer Event: 0.516 loading class java/nio/HeapIntBuffer done Dynamic libraries: 0x00007ff6c0390000 - 0x00007ff6c03ca000 C:\Users\<User>\.jdks\corretto-1.8.0_302\bin\java.exe 0x00007ff9bc240000 - 0x00007ff9bc430000 C:\windows\SYSTEM32\ntdll.dll 0x00007ff9bbe70000 - 0x00007ff9bbf22000 C:\windows\System32\KERNEL32.DLL 0x00007ff9b9660000 - 0x00007ff9b9903000 C:\windows\System32\KERNELBASE.dll 0x00007ff9baee0000 - 0x00007ff9baf83000 C:\windows\System32\ADVAPI32.dll 0x00007ff9bab50000 - 0x00007ff9babee000 C:\windows\System32\msvcrt.dll 0x00007ff9ba5e0000 - 0x00007ff9ba677000 C:\windows\System32\sechost.dll 0x00007ff9baf90000 - 0x00007ff9bb0b0000 C:\windows\System32\RPCRT4.dll 0x00007ff9bbf30000 - 0x00007ff9bc0c4000 C:\windows\System32\USER32.dll 0x00007ff9ba2c0000 - 0x00007ff9ba2e1000 C:\windows\System32\win32u.dll 0x00007ff9bb130000 - 0x00007ff9bb156000 C:\windows\System32\GDI32.dll 0x00007ff9b9450000 - 0x00007ff9b95e4000 C:\windows\System32\gdi32full.dll 0x00007ff9b92b0000 - 0x00007ff9b934e000 C:\windows\System32\msvcp_win.dll 0x00007ff9b9350000 - 0x00007ff9b944a000 C:\windows\System32\ucrtbase.dll 0x00007ff9a7010000 - 0x00007ff9a7295000 C:\windows\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.18362.657_none_e6c5b579130e3898\COMCTL32.dll 0x00007ff9bb8c0000 - 0x00007ff9bbbf6000 C:\windows\System32\combase.dll 0x00007ff9b9230000 - 0x00007ff9b92b0000 C:\windows\System32\bcryptPrimitives.dll 0x00007ff9badd0000 - 0x00007ff9badfe000 C:\windows\System32\IMM32.DLL 0x00007ff97c2b0000 - 0x00007ff97c39f000 C:\Users\<User>\.jdks\corretto-1.8.0_302\jre\bin\msvcr120.dll 0x00007ff997140000 - 0x00007ff9971e6000 C:\Users\<User>\.jdks\corretto-1.8.0_302\jre\bin\msvcp120.dll 0x0000000050820000 - 0x0000000051090000 C:\Users\<User>\.jdks\corretto-1.8.0_302\jre\bin\server\jvm.dll 0x00007ff9bb0b0000 - 0x00007ff9bb0b8000 C:\windows\System32\PSAPI.DLL 0x00007ff9b36d0000 - 0x00007ff9b36da000 C:\windows\SYSTEM32\VERSION.dll 0x00007ff9b5a80000 - 0x00007ff9b5a89000 C:\windows\SYSTEM32\WSOCK32.dll 0x00007ff9aaac0000 - 0x00007ff9aaae4000 C:\windows\SYSTEM32\WINMM.dll 0x00007ff9bb0c0000 - 0x00007ff9bb12f000 C:\windows\System32\WS2_32.dll 0x00007ff9ab070000 - 0x00007ff9ab09d000 C:\windows\SYSTEM32\winmmbase.dll 0x00007ff9b95f0000 - 0x00007ff9b963a000 C:\windows\System32\cfgmgr32.dll 0x00007ff9b4cd0000 - 0x00007ff9b4cdf000 C:\Users\<User>\.jdks\corretto-1.8.0_302\jre\bin\verify.dll 0x00007ff99cc00000 - 0x00007ff99cc29000 C:\Users\<User>\.jdks\corretto-1.8.0_302\jre\bin\java.dll 0x00007ff99b8c0000 - 0x00007ff99b8ea000 C:\Users\<User>\.jdks\corretto-1.8.0_302\jre\bin\instrument.dll 0x00007ff9a8a50000 - 0x00007ff9a8a66000 C:\Users\<User>\.jdks\corretto-1.8.0_302\jre\bin\zip.dll 0x00007ff9bb1d0000 - 0x00007ff9bb8b5000 C:\windows\System32\SHELL32.dll 0x00007ff9bae10000 - 0x00007ff9baeb9000 C:\windows\System32\shcore.dll 0x00007ff9b99f0000 - 0x00007ff9ba16f000 C:\windows\System32\windows.storage.dll 0x00007ff9b9120000 - 0x00007ff9b913f000 C:\windows\System32\profapi.dll 0x00007ff9b9180000 - 0x00007ff9b91ca000 C:\windows\System32\powrprof.dll 0x00007ff9b9110000 - 0x00007ff9b9120000 C:\windows\System32\UMPDC.dll 0x00007ff9ba680000 - 0x00007ff9ba6d2000 C:\windows\System32\shlwapi.dll 0x00007ff9b9160000 - 0x00007ff9b9171000 C:\windows\System32\kernel.appcore.dll 0x00007ff9b9640000 - 0x00007ff9b9657000 C:\windows\System32\cryptsp.dll 0x00007ff99cc70000 - 0x00007ff99cc8a000 D:\IntelliJ IDEA 2021.1.1\bin\breakgen64.dll 0x00007ff9a7ef0000 - 0x00007ff9a7f0a000 C:\Users\<User>\.jdks\corretto-1.8.0_302\jre\bin\net.dll 0x00007ff9ac1f0000 - 0x00007ff9ac210000 C:\windows\system32\PrxerDrv.dll 0x00007ff9b8980000 - 0x00007ff9b89e7000 C:\windows\system32\mswsock.dll 0x00007ff9a4930000 - 0x00007ff9a4942000 C:\Users\<User>\.jdks\corretto-1.8.0_302\jre\bin\nio.dll 0x00007ff985d30000 - 0x00007ff985da2000 C:\Users\<User>\AppData\Local\Temp\lwjgl<User>\3.2.2-build-10\lwjgl.dll 0x00007ff987630000 - 0x00007ff98768e000 C:\Users\<User>\AppData\Local\Temp\lwjgl<User>\3.2.2-build-10\glfw.dll 0x00007ff9b7100000 - 0x00007ff9b7199000 C:\windows\system32\uxtheme.dll 0x00007ff995400000 - 0x00007ff995443000 C:\windows\SYSTEM32\dinput8.dll 0x00007ff99b530000 - 0x00007ff99b541000 C:\windows\SYSTEM32\xinput1_4.dll 0x00007ff9b8f10000 - 0x00007ff9b8f3a000 C:\windows\SYSTEM32\DEVOBJ.dll 0x00007ff9b7520000 - 0x00007ff9b754d000 C:\windows\SYSTEM32\dwmapi.dll 0x00007ff99b700000 - 0x00007ff99b81a000 C:\windows\SYSTEM32\inputhost.dll 0x00007ff9b55e0000 - 0x00007ff9b56cf000 C:\windows\SYSTEM32\PROPSYS.dll 0x00007ff9b6df0000 - 0x00007ff9b6ec4000 C:\windows\SYSTEM32\CoreMessaging.dll 0x00007ff9a4240000 - 0x00007ff9a456a000 C:\windows\SYSTEM32\CoreUIComponents.dll 0x00007ff9b4b70000 - 0x00007ff9b4cc3000 C:\windows\SYSTEM32\wintypes.dll 0x00007ff9bbda0000 - 0x00007ff9bbe64000 C:\windows\System32\OLEAUT32.dll 0x00007ff9b8170000 - 0x00007ff9b81a1000 C:\windows\SYSTEM32\ntmarta.dll 0x00007ff9ba4a0000 - 0x00007ff9ba5d5000 C:\windows\System32\MSCTF.dll 0x00007ff9b7d20000 - 0x00007ff9b7d2e000 C:\windows\SYSTEM32\HID.DLL 0x00007ff9ba6e0000 - 0x00007ff9bab50000 C:\windows\System32\SETUPAPI.DLL 0x00007ff9b99c0000 - 0x00007ff9b99e6000 C:\windows\System32\bcrypt.dll 0x00007ff9b91d0000 - 0x00007ff9b922c000 C:\windows\System32\WINTRUST.dll 0x00007ff9b9140000 - 0x00007ff9b9152000 C:\windows\System32\MSASN1.dll 0x00007ff9ba170000 - 0x00007ff9ba2b9000 C:\windows\System32\CRYPT32.dll 0x00007ff99a6e0000 - 0x00007ff99a836000 C:\windows\SYSTEM32\opengl32.dll 0x00007ff9acfd0000 - 0x00007ff9acffc000 C:\windows\SYSTEM32\GLU32.dll 0x00007ff9b7df0000 - 0x00007ff9b7e10000 C:\windows\SYSTEM32\dxcore.dll 0x00007ff96e170000 - 0x00007ff96f020000 C:\windows\System32\DriverStore\FileRepository\iigd_dch.inf_amd64_d9c21d7d43c1adb3\ig9icd64.dll 0x00007ff9b7e10000 - 0x00007ff9b7efb000 C:\windows\system32\dxgi.dll 0x00007ff99f200000 - 0x00007ff9a11c8000 C:\windows\System32\DriverStore\FileRepository\iigd_dch.inf_amd64_d9c21d7d43c1adb3\igc64.dll 0x00007ff9a1280000 - 0x00007ff9a139a000 C:\windows\System32\DriverStore\FileRepository\iigd_dch.inf_amd64_d9c21d7d43c1adb3\igdgmm64.dll 0x00007ff99ccd0000 - 0x00007ff99cd6e000 C:\windows\System32\TextInputFramework.dll 0x00007ff9ac3e0000 - 0x00007ff9ac686000 C:\windows\System32\iertutil.dll 0x00007ff986790000 - 0x00007ff9867e8000 C:\Users\<User>\AppData\Local\Temp\lwjgl<User>\3.2.2-build-10\lwjgl_opengl.dll 0x00007ff983910000 - 0x00007ff98398f000 C:\Users\<User>\AppData\Local\Temp\lwjgl<User>\3.2.2-build-10\lwjgl_stb.dll 0x00007ff9b7a40000 - 0x00007ff9b7c34000 C:\windows\SYSTEM32\dbghelp.dll VM Arguments: jvm_args: -javaagent:D:\IntelliJ IDEA 2021.1.1\lib\idea_rt.jar=58472:D:\IntelliJ IDEA 2021.1.1\bin -Dfile.encoding=UTF-8 java_command: net.peanuuutz.graphics.TexturesKt java_class_path (initial): C:\Users\<User>\.jdks\corretto-1.8.0_302\jre\lib\charsets.jar;C:\Users\<User>\.jdks\corretto-1.8.0_302\jre\lib\ext\access-bridge-64.jar;C:\Users\<User>\.jdks\corretto-1.8.0_302\jre\lib\ext\cldrdata.jar;C:\Users\<User>\.jdks\corretto-1.8.0_302\jre\lib\ext\dnsns.jar;C:\Users\<User>\.jdks\corretto-1.8.0_302\jre\lib\ext\jaccess.jar;C:\Users\<User>\.jdks\corretto-1.8.0_302\jre\lib\ext\jfxrt.jar;C:\Users\<User>\.jdks\corretto-1.8.0_302\jre\lib\ext\localedata.jar;C:\Users\<User>\.jdks\corretto-1.8.0_302\jre\lib\ext\nashorn.jar;C:\Users\<User>\.jdks\corretto-1.8.0_302\jre\lib\ext\sunec.jar;C:\Users\<User>\.jdks\corretto-1.8.0_302\jre\lib\ext\sunjce_provider.jar;C:\Users\<User>\.jdks\corretto-1.8.0_302\jre\lib\ext\sunmscapi.jar;C:\Users\<User>\.jdks\corretto-1.8.0_302\jre\lib\ext\sunpkcs11.jar;C:\Users\<User>\.jdks\corretto-1.8.0_302\jre\lib\ext\zipfs.jar;C:\Users\<User>\.jdks\corretto-1.8.0_302\jre\lib\jce.jar;C:\Users\<User>\.jdks\corretto-1.8.0_302\jre\lib\jfr.jar;C:\Users\<User>\.jdks\corretto-1.8.0_302\jre\lib\jfxswt.jar;C:\Users\<User>\.jdks\corretto-1.8.0_302\jre\lib\jsse.jar;C:\Users\<User>\.jdks\corretto-1.8.0_302\jre\lib\management-agent.jar;C:\Users\<User>\.jdks\corretto-1.8.0_302\jre\lib\resources.jar;C:\Users\<User>\.jdks\corretto-1.8.0_302\jre\lib\rt.jar;E:\Everyday\Amateur\CS\Kotlin\Exercises\Graphics\build\classes\kotlin\test;E:\Everyday\Amateur\CS\Kotlin\Exercises\Graphics\build\classes\kotlin\main;E:\Everyday\Amateur\CS\Kotlin\Exercises\Graphics\build\resources\main;D:\Cache\.gradle\caches\modules-2\files-2.1\org.jetbrains.kotlin\kotlin-stdlib\1.4.32\461367948840adbb0839c51d91ed74ef4a9ccb52\kotlin-stdlib-1.4.32.jar;D:\Cache\.gradle\caches\modules-2\files-2.1\org.lwjgl\lwjgl-assimp\3.2.2\d4128312444099cea3c4dbb77f5098d19e340d\lwjgl-assimp-3.2.2.jar;D:\Cache\.gradle\caches\modules-2\files-2.1\org.lwjgl\lwjgl-glfw\3.2.2\d3ad4df38e400b8afba1de63f84338809399df5b\lwjgl-glfw-3.2.2.jar;D:\Cache\.gradle\caches\modules-2\files-2.1\org.lwjgl\lwjgl-openal\3.2. Launcher Type: SUN_STANDARD Environment Variables: JAVA_HOME=C:\Program Files\Java\jdk-11.0.12 PATH=C:\Program Files\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;D:\Python\Python39\Scripts\;D:\Python\Python39\;C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\intel64_win\compiler;C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\intel64\compiler;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\windows\System32\OpenSSH\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;E:\Minecraft\´´×÷\µØͼ\¹¤¾ß\WorldPainter;C:\Program Files\Java\jdk-11.0.12\bin;D:\Git\cmd;D:\MySQL\bin;D:\gradle-6.8.3\bin;C:\Program Files\nodejs\;E:\Minecraft\Replay\.minecraft\FFmpeg\bin;C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\intel64\compiler;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\windows\System32\OpenSSH\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;E:\Minecraft\´´×÷\µØͼ\¹¤¾ß\WorldPainter;E:\Minecraft\Replay\.minecraft\FFmpeg\bin;C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\intel64\compiler;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\windows\System32\OpenSSH\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;E:\Minecraft\´´×÷\µØͼ\¹¤¾ß\WorldPainter;E:\Minecraft\Replay\.minecraft\FFmpeg\bin;C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\intel64\compiler;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\windows\system32;C:\windows;C:\window;D:\Visual Studio Code\Microsoft VS Code\bin;D:\PyCharm 2020.3\bin;;C:\Users\<User>\AppData\Roaming\npm;D:\Fiddler USERNAME=<User> OS=Windows_NT PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 158 Stepping 13, GenuineIntel --------------- S Y S T E M --------------- OS: Windows 10.0 , 64 bit Build 18362 (10.0.18362.329) CPU:total 12 (initial active 12) (6 cores per cpu, 2 threads per core) family 6 model 158 stepping 13, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, avx, avx2, aes, clmul, erms, 3dnowpref, lzcnt, ht, tsc, tscinvbit, bmi1, bmi2, adx Memory: 4k page, physical 16614584k(6470396k free), swap 25527480k(11553304k free) vm_info: OpenJDK 64-Bit Server VM (25.302-b08) for windows-amd64 JRE (1.8.0_302-b08), built on Jul 15 2021 19:37:21 by "Administrator" with MS VC++ 12.0 (VS2013) time: Thu Oct 07 16:20:51 2021 timezone: ?D1¨²¡À¨º¡Á?¨º¡À?? elapsed time: 0.532927 seconds (0d 0h 0m 0s) The image is here(png, 512px), and I've saved it in the (maybe) correct place as the code shows. So what is going on in the native environment? :(
LWJGL 3 does not support on-heap (i.e. non-direct) NIO Buffers when talking to a native library like stb_image. Non-direct/on-heap NIO Buffers are those that are wrappers of a Java byte array. With LWJGL 3 you always need to use off-heap (i.e. direct) NIO Buffers. See https://docs.oracle.com/javase/7/docs/api/java/nio/ByteBuffer.html#direct for a further explanation of the differences. So, instead of IntBuffer.allocate(1) you should use: ByteBuffer.allocateDirect(4).asIntBuffer() Also you should configure the NIO Buffer to use the same endianness as your platform, since otherwise you will read garbage out of the buffer later (the default endianness of all NIO Buffers is network-byte-order i.e. big endian): ByteBuffer.allocateDirect(4).order(ByteOrder.nativeOrder()).asIntBuffer() and since the above is quite a mouthfull, LWJGL 3 provides a BufferUtils class with simple wrappers, like: BufferUtils.createIntBuffer(1) to achieve the same as above. And last but not least, doing correct and efficient memory management in LWJGL 3 is more involved, because in this particular case, you'd be better off using a MemoryStack. See: https://blog.lwjgl.org/memory-management-in-lwjgl-3/
ELF program segments offset in file
I have a question,about elf program segments offsize in file. For example , a program readelf -f xx -W like this: Program Headers: Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align PHDR 0x000040 0x0000000000400040 0x0000000000400040 0x0001f8 0x0001f8 R E 0x8 INTERP 0x000238 0x0000000000400238 0x0000000000400238 0x00001c 0x00001c R 0x1 [Requesting program interpreter: /lib64/ld-linux-x86-64.so.2] LOAD 0x000000 0x0000000000400000 0x0000000000400000 0x4ca8e6 0x4ca8e6 R E 0x200000 LOAD 0x4cb000 0x0000000000acb000 0x0000000000acb000 0x035db8 0x04ed80 RW 0x200000 DYNAMIC 0x4ed4c8 0x0000000000aed4c8 0x0000000000aed4c8 0x000230 0x000230 RW 0x8 NOTE 0x000254 0x0000000000400254 0x0000000000400254 0x000044 0x000044 R 0x4 TLS 0x4cb000 0x0000000000acb000 0x0000000000acb000 0x000010 0x000018 R 0x10 GNU_EH_FRAME 0x3dcf04 0x00000000007dcf04 0x00000000007dcf04 0x024c64 0x024c64 R 0x4 GNU_STACK 0x000000 0x0000000000000000 0x0000000000000000 0x000000 0x000000 RW 0x10 Section to Segment mapping: Segment Sections... 00 01 .interp 02 .interp .note.ABI-tag .note.gnu.build-id .gnu.hash .dynsym .dynstr .gnu.version .gnu.version_r .rela.dyn .rela.plt .init .plt .text .fini .rodata .eh_frame_hdr .eh_frame .gcc_except_table 03 .tdata .init_array .fini_array .jcr .data.rel.ro .dynamic .got .got.plt .data .bss 04 .dynamic 05 .note.ABI-tag .note.gnu.build-id 06 .tdata .tbss 07 .eh_frame_hdr 08 The first load begin at offset 0x000000 and the size is 0x4ca8e6. why the second offset not (0x000000 + 0x4ca8e6), I see the (0x4cb000 - 0x4ca8e6) content, all 0. I can't get it. What the rule about the offset in file?
The first load begin at offset 0x000000 and the size is 0x4ca8e6. why the second offset not (0x000000 + 0x4ca8e6) Because the loader mmaps LOAD segments directly into memory, for each LOAD segment the following must be true: (p_vaddr - p_offset) % page_size == 0. On x86_64 the maximum page size is 2MiB (0x200000). This places severe restriction on the second (and subsequent) LOAD segment location.
QEMU how-to allocate specific IRQ number for PCI device?
I'm running qemu-system-x86_64 with my new pci device. And i want to use IRQ 17 (Since driver from kernel listen for IRQ 17). But my PCI device take IRQ 10 or 11. base on interrupt_pin(A,B,C,E). Then i want to send irq to kernel module by qemu_irq_pulse. This is how i allocate irq: pci_config_set_interrupt_pin(pci_dev->config, 1); d->irq = pci_allocate_irq(pci_dev) root#hostname:~# cat /proc/interrupts CPU0 0: 48 IO-APIC 2-edge timer 1: 9 IO-APIC 1-edge i8042 4: 1440 IO-APIC 4-edge ttyS0 8: 1 IO-APIC 8-edge rtc0 9: 0 IO-APIC 9-fasteoi acpi 12: 125 IO-APIC 12-edge i8042 24: 773 PCI-MSI 512000-edge ahci[0000:00:1f.2] 25: 355 PCI-MSI 32768-edge eth0-rx-0 26: 160 PCI-MSI 32769-edge eth0-tx-0 27: 1 PCI-MSI 32770-edge eth0 lspci -nk -vv: 00:1f.3 0880: 10de:0101 (rev 01) Subsystem: 1af4:1100 Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx- Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx- Interrupt: pin A routed to IRQ 10 Capabilities: [80] MSI: Enable- Count=1/1 Maskable- 64bit+ Address: 0000000000000000 Data: 0000 Kernel driver failed to request irq since it trying to attach to IRQ 17. I don't want to change kernel side. This is what i want to see: root#hostname:~# cat /proc/interrupts CPU0 0: 2213 IO-APIC 17: 0 IO-APIC 17-fasteoi some_kernel_driver_name How to allocate interrupt 17 for PCI device in qemu?
Im not sure it is correct answer but for me it helps: Add to ACPI: irqs = 17; aml_append(crs, aml_interrupt(AML_CONSUMER, AML_EDGE, AML_ACTIVE_HIGH, AML_SHARED, &irqs, 1)); Also PCI interrupt number looks like somehow depends on PCI vendor_id and device_id.
Tensorflow allocating all memory for any program
OS Platform and Distribution (e.g., Linux Ubuntu 16.04): linux Ubuntu 16.04 TensorFlow installed from (source or binary): binary TensorFlow version (use command below): v1.4.0-rc1 Python version: 3.5.5 CUDA/cuDNN version: CUDA 8.0 / cuDNN 6 GPU model and memory: nvidia gtx 1080 I am new to Tensorflow. So this could easily be some silly installation error that I don't see. I open python to test TF installation: import tensorflow as tf from tensorflow.python.client import device_lib print(device_lib.list_local_devices()) Resulting in: I tensorflow/core/platform/cpu_feature_guard.cc:137] Your CPU supports instructions that this TensorFlow binary was not compiled to use: SSE4.1 SSE4.2 AVX 2018-04-11 21:39:44.830140: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1030] Found device 0 with properties: name: GeForce GTX 1080 major: 6 minor: 1 memoryClockRate(GHz): 1.8475 pciBusID: 0000:01:00.0 totalMemory: 7.92GiB freeMemory: 78.94MiB 2018-04-11 21:39:44.830178: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1120] Creating TensorFlow device (/device:GPU:0) -> (device: 0, name: GeForce GTX 1080, pci bus id: 0000:01:00.0, compute capability: 6.1) 2018-04-11 21:39:44.832231: E tensorflow/stream_executor/cuda/cuda_driver.cc:936] failed to allocate 78.94M (82771968 bytes) from device: CUDA_ERROR_OUT_OF_MEMORY 2018-04-11 21:39:44.834394: E tensorflow/stream_executor/cuda/cuda_driver.cc:936] failed to allocate 71.04M (74494976 bytes) from device: CUDA_ERROR_OUT_OF_MEMORY 2018-04-11 21:39:44.835825: E tensorflow/stream_executor/cuda/cuda_driver.cc:936] failed to allocate 63.94M (67045632 bytes) from device: CUDA_ERROR_OUT_OF_MEMORY 2018-04-11 21:39:44.837560: E tensorflow/stream_executor/cuda/cuda_driver.cc:936] failed to allocate 57.55M (60341248 bytes) from device: CUDA_ERROR_OUT_OF_MEMORY 2018-04-11 21:39:44.839233: E tensorflow/stream_executor/cuda/cuda_driver.cc:936] failed to allocate 51.79M (54307328 bytes) from device: CUDA_ERROR_OUT_OF_MEMORY 2018-04-11 21:39:44.841757: E tensorflow/stream_executor/cuda/cuda_driver.cc:936] failed to allocate 46.61M (48876800 bytes) from device: CUDA_ERROR_OUT_OF_MEMORY 2018-04-11 21:39:44.843632: E tensorflow/stream_executor/cuda/cuda_driver.cc:936] failed to allocate 41.95M (43989248 bytes) from device: CUDA_ERROR_OUT_OF_MEMORY 2018-04-11 21:39:44.845588: E tensorflow/stream_executor/cuda/cuda_driver.cc:936] failed to allocate 37.76M (39590400 bytes) from device: CUDA_ERROR_OUT_OF_MEMORY 2018-04-11 21:39:44.847229: E tensorflow/stream_executor/cuda/cuda_driver.cc:936] failed to allocate 33.98M (35631360 bytes) from device: CUDA_ERROR_OUT_OF_MEMORY 2018-04-11 21:39:44.849278: E tensorflow/stream_executor/cuda/cuda_driver.cc:936] failed to allocate 30.58M (32068352 bytes) from device: CUDA_ERROR_OUT_OF_MEMORY 2018-04-11 21:39:44.850967: E tensorflow/stream_executor/cuda/cuda_driver.cc:936] failed to allocate 27.52M (28861696 bytes) from device: CUDA_ERROR_OUT_OF_MEMORY [name: "/device:CPU:0" device_type: "CPU" memory_limit: 268435456 locality { } incarnation: 6037705122138393497 , name: "/device:GPU:0" device_type: "GPU" memory_limit: 82771968 locality { bus_id: 1 } incarnation: 11403601020071115295 physical_device_desc: "device: 0, name: GeForce GTX 1080, pci bus id: 0000:01:00.0, compute capability: 6.1" ]
Supposing your question is "Why does Tensorflow allocate all available GPU memory even though much less memory would be enough for my program?", then the answer is that they do this to reduce GPU memory fragmentation. You can change this default behavior with some settings like config.gpu_options.allow_growth and config.gpu_options.per_process_gpu_memory_fraction to make Tensorflow less memory hungry at the expense of allowing some potential memory fragmentation to occur. Detailed explanation in the Tensorflow Programmer's Guide Using GPU chapter.
valgrind giving 160 bytes in 4 blocks though total heap usage is: 448 allocs, 448 frees, 34,684 bytes allocated
When I run my code valgrind is giving this error. Invalid free() / delete / delete[] / realloc() ==7363== at 0x4C2A82E: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==7363== by 0x4009F8: main (in /home/arihant/ELF/elf) ==7363== Address 0x51f3fa0 is 0 bytes inside a block of size 16 free'd ==7363== at 0x4C2A82E: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==7363== by 0x4009B1: main (in /home/arihant/ELF/elf) ==7363== ==7363== ==7363== HEAP SUMMARY: ==7363== in use at exit: 160 bytes in 4 blocks ==7363== total heap usage: 448 allocs, 448 frees, 34,684 bytes allocated ==7363== ==7363== LEAK SUMMARY: ==7363== definitely lost: 160 bytes in 4 blocks ==7363== indirectly lost: 0 bytes in 0 blocks ==7363== possibly lost: 0 bytes in 0 blocks ==7363== still reachable: 0 bytes in 0 blocks ==7363== suppressed: 0 bytes in 0 blocks ==7363== Rerun with --leak-check=full to see details of leaked memory ==7363== ==7363== For counts of detected and suppressed errors, rerun with: -v ==7363== ERROR SUMMARY: 6 errors from 2 contexts (suppressed: 2 from 2) why I am getting 160 bytes lost though number of allocs and free are equal my code is 18 fp = fopen("output", "r"); 19 obj_elf = (Elf32_Ehdr *)malloc(sizeof(Elf32_Ehdr)); 20 fread(obj_elf, 1, sizeof(Elf32_Ehdr), fp); 21 22 if (argc < 2) { 23 print_menu(); 24 free(obj_elf); 25 fclose(fp); 26 return 0; 27 } 28 29 if (argv[1][0] == '-') { 30 switch (argv[1][1]) { 31 case 'e': 32 elf_header(obj_elf); /*elf header function call*/ 33 break; 34 case 's': 35 read_section_header(fp, obj_elf, obj_sect_hdr); 36 print_section_header(fp, obj_sect_hdr, obj_elf); 37 38 for (i = 0; i < obj_elf->e_shnum; i++) { 39 free(obj_sect_hdr[i]); 40 free(sec_name[i]); 41 } 42 break; 43 case 'S': 44 read_section_header(fp, obj_elf, obj_sect_hdr); 45 read_symbol_table(fp, obj_elf, obj_sect_hdr, obj_sym); 46 symbol_table(fp, obj_elf, obj_sect_hdr, obj_sym); 47 48 for (i = 0; i < obj_elf->e_shnum; i++) { 49 free(obj_sect_hdr[i]); 50 free(sec_name[i]); 51 } 52 for (i = 0; i < n_entries_sym_t; i++) { 53 free(obj_sym[i]); 54 free(symbol_name[i]); 55 } 56 In main function there are many free how will I know which free is invalid??
Your answer is at the top of your output: Invalid free() / delete / delete[] / realloc() ==7363== at 0x4C2A82E: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==7363== by 0x4009F8: main (in /home/arihant/ELF/elf) ==7363== Address 0x51f3fa0 is 0 bytes inside a block of size 16 free'd ==7363== at 0x4C2A82E: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==7363== by 0x4009B1: main (in /home/arihant/ELF/elf) Just matching up the number of allocations and frees is not sufficient when one or more of your calls to free is invalid. You will need to build with debugging to see which free() is the problem. It looks like it's probably something allocated in read_section_header() or something else not listed.