Bug 1249412
Summary: | [abrt] java-1.8.0-openjdk-headless: jni_FatalError(): java killed by SIGABRT | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Pavel Alexeev <pahan> | ||||||||||||||||||||||||||
Component: | java-1.8.0-openjdk | Assignee: | Deepak Bhole <dbhole> | ||||||||||||||||||||||||||
Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||||||||||||||||||||||
Severity: | unspecified | Docs Contact: | |||||||||||||||||||||||||||
Priority: | unspecified | ||||||||||||||||||||||||||||
Version: | 22 | CC: | ahughes, dbhole, jerboaa, jvanek, msrb, omajid, psakar | ||||||||||||||||||||||||||
Target Milestone: | --- | ||||||||||||||||||||||||||||
Target Release: | --- | ||||||||||||||||||||||||||||
Hardware: | x86_64 | ||||||||||||||||||||||||||||
OS: | Unspecified | ||||||||||||||||||||||||||||
URL: | https://retrace.fedoraproject.org/faf/reports/bthash/94a80d3683a5dd12379d61da7e1aa18652f53de5 | ||||||||||||||||||||||||||||
Whiteboard: | abrt_hash:62ee3a4e2f7f9b1840f64e8c0c16a8a0d8662162 | ||||||||||||||||||||||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||||||||||||||||||||||
Doc Text: | Story Points: | --- | |||||||||||||||||||||||||||
Clone Of: | Environment: | ||||||||||||||||||||||||||||
Last Closed: | 2016-01-11 19:59:59 UTC | Type: | --- | ||||||||||||||||||||||||||
Regression: | --- | Mount Type: | --- | ||||||||||||||||||||||||||
Documentation: | --- | CRM: | |||||||||||||||||||||||||||
Verified Versions: | Category: | --- | |||||||||||||||||||||||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||||||||||||||||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||||||||||||||||||||||
Embargoed: | |||||||||||||||||||||||||||||
Attachments: |
|
Description
Pavel Alexeev
2015-08-02 17:05:25 UTC
Created attachment 1058572 [details]
File: backtrace
Created attachment 1058573 [details]
File: cgroup
Created attachment 1058574 [details]
File: core_backtrace
Created attachment 1058575 [details]
File: dso_list
Created attachment 1058576 [details]
File: environ
Created attachment 1058577 [details]
File: limits
Created attachment 1058578 [details]
File: maps
Created attachment 1058579 [details]
File: mountinfo
Created attachment 1058580 [details]
File: namespaces
Created attachment 1058581 [details]
File: open_fds
Created attachment 1058582 [details]
File: proc_pid_status
Created attachment 1058583 [details]
File: var_log_messages
Hi, do you have multiple instances of the same application running, or another Java app running with debug enabled? It seems that there was a transport error init and in most cases, this is due to more than one application trying to use the same (debug) port. *** Bug 1252026 has been marked as a duplicate of this bug. *** Is that a reason to crash?? (In reply to Pavel Alexeev from comment #15) > Is that a reason to crash?? Not to crash, but it is certainly a reason to not boot because the debug server runs on a TCP port. If multiple VMs are brought up with the same configuration, all but the first will see that the selected port is in use and will refuse to boot. It will be good catch that, print appropriate message and exit. Now it crashed with SIGABRT. What is shown on the commandline when it crashes? Unfortunately I can't say - it is tomcat most likely it is not started from console. Okay, I wrote a small test program to check console behavior and this is what I see on console when I try to start a second instance with debug server on same port: ERROR: transport error 202: bind failed: Address already in use ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510) JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized [debugInit.c:750] FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197) So there is proper indication to the user as to what happened (the first line). The SIGABRT is secondary behavior and perfectly acceptable here as the JVM boot up was indeed aborted due to a fatal error. For Tomcat to show the above message, it needs to be fixed/updated to detect it and act accordingly. I am going to close this bug, but please feel free to re-open and re-assign to Tomcat if you would like it resolved still. Thank you for the reproduce and detailed answer. Why you think SIGABRT is correct behavior? Is not exit wit non-0 exit code enough if error caught and processed? (In reply to Pavel Alexeev from comment #21) > Thank you for the reproduce and detailed answer. > Why you think SIGABRT is correct behavior? Is not exit wit non-0 exit code > enough if error caught and processed? The JVM does not distinguish between errors when it comes to the JVMTI agent (the system through which debug server is initialized) when debug is requested. As far as it is concerned, any problem in JVMTI initialization is a fatal error. The code basically expects everything to work/initialize as expected, and sends an abort if there is any issue. Here is the code in question that calls abort(): http://hg.openjdk.java.net/jdk8u/jdk8u/jdk/file/b95e325137b4/src/share/back/debugInit.c#l1311 |