Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 501826

Summary: dev-java/java-service-wrapper-3.5.14-r1 terminates with buffer overflow
Product: Gentoo Linux Reporter: Michael Rowell <lambda.tango>
Component: [OLD] JavaAssignee: Java team <java>
Status: RESOLVED TEST-REQUEST    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Michael Rowell 2014-02-19 21:21:39 UTC
Running dev-java/java-service-wrapper-3.5.14-r1 as part of the net-p2p/freenet runscript produces the following in /var/log/messages: 

*** buffer overflow detected ***: wrapper - terminated
wrapper: buffer overflow attack in function <unknown> - terminated

The process terminates and freenet does not run. Solution is to update to at least version 3.5.22 as per http://wrapper.tanukisoftware.com/doc/english/release-notes.html . 

However, no ebuild above 3.5.14-r1 exists in tree. I created a new ebuild for version 3.5.24 with updated as-needed patch, which compiles and runs correctly (no buffer overflow). I am not attaching at the moment as I am unsure what to do with the gentoo-wrapper-defaults patch (the function arguments have changed slightly from when the patch was written).
Comment 1 Patrice Clement gentoo-dev 2015-10-16 15:08:07 UTC
We now have java-service-wrapper 3.5.25 in the tree. Have another go at it and let us know.