| Summary: | piagent seg faults when running in application server | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Ashish Patel <ashishp> | ||||||||||
| Component: | TPTP | Assignee: | Samson Wai <samwai> | ||||||||||
| Status: | CLOSED WONTFIX | QA Contact: | |||||||||||
| Severity: | critical | ||||||||||||
| Priority: | P1 | CC: | jkubasta | ||||||||||
| Version: | unspecified | Keywords: | plan | ||||||||||
| Target Milestone: | --- | ||||||||||||
| Hardware: | PC | ||||||||||||
| OS: | Windows XP | ||||||||||||
| Whiteboard: | |||||||||||||
| Attachments: |
|
||||||||||||
|
Description
Ashish Patel
Created attachment 51341 [details]
Core dump 1
Created attachment 51342 [details]
Core dump 2
This problem involves a pass-thru agent that sits on the JVMPI interface and broadcasts JVMPI events to two actual JVMPI agents, one of which is the TPTP piAgent. The scenario works fine (including the pass-thru behavior) as long as piAgent is the only jvmpi agent being serviced by the pass-thru agent. Re-targeting for 4.2.1 patch (consuming product will not be picking up 4.3). Please retarget this defect asap. 4.2.1 was clsoed a long time ago Retargetting to 4.4 until I can diagnose and assess a fix for another, open target. Working on this currently. Ahish, From what I am seeing so far, I would've expected the following message to have appeared in the WAS console or the native error log or some such place (wherever WAS captures stderr for native code) just before the Segv occurred: "FATAL ERROR: Out of memory...JVM Exiting" Can you find that message anywhere after this failure? If so, I have an idea of what the problem might be (ie: why you get a Segv instead of a graceful exit for an OutOfMemory condition). If not, I have more digging to do. Created attachment 55728 [details]
The regular binary of the piagent.
Created attachment 55729 [details]
A debug version of the piagent
Attached two binaries from the piagent based on the following note: Hi Ashish, Thanks for your patience. I am hitting some road-blocks with a couple of things I've been trying on this (confirming the exact point of failure, repro'ing with a smaller testcase, testing the jvmpi ProfilerExit call that may be implicated, etc). Let's see if we can at least get a proper traceback with a debug version and gdb. I've attached two versions of the piAgent lib: one vanilla/reg and the other debug. Let's try two runs: Replace the libpiAgent.so in the <rac_dir>/lib with the attached libpiAgent.so.reg (minus the ".reg" suffix) and reproduce the problem Replace the libpiAgent.so in the <rac_dir>/lib with the attached libpiAgent.so.dbg (minus the ".dbg" suffix), attach WAS process from gdb, and reproduce the problem Thanks, Bob Note that the second run (with the debug piAgent and attaching gdb to the AppServer/profiled process) is expected to produce the precise traceback we need to nail the point of the Segv. That's what we need at this point. Set priority to P1 for 4.4 plan closure. Please indicate the Java version being used. Java version being used is IBM JDK 1.4.2 (as bundled with WAS 6). No plan to fix cls |