| Summary: | bad handling of environment variables can cause the spawner library to crash the JVM | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Tools] PTP | Reporter: | Chris Recoskie <recoskie> | ||||
| Component: | Core | Assignee: | Chris Recoskie <recoskie> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | blocker | ||||||
| Priority: | P3 | CC: | ptp-inbox | ||||
| Version: | 4.0.2 | ||||||
| Target Milestone: | 4.0.3 | ||||||
| Hardware: | Power PC | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
Fixed on ptp_4_0 and HEAD. |
Created attachment 178328 [details] fix There is a bit of a glitch in the SpawnerMiner, in that it improperly constructs the array of environment variables to send to the spawner. The resulting array can end up with some null entries at the end. The JNI libraries apparently do not like it when you try to convert a null reference that is supposed to be a UTF string, to a C string. This causes the JVM to segfault on Linux/PPC. Not sure why it doesn't crash on AIX. It probably crashes on other platforms. Patch attached.