jsvc crashed with SIGSEGV in _expand_stack_to()
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
After upgrading to 4.4.0-81-generic some a third party service failed to start after investigating I managed to reproduce the issue using the following method. Note: Issue does not occur after down grading the kernel to 4.4.0-79-generic, but as this report suggests, it is still there in 4.4.0-82-generic
Created a Java file Run.java
import java.util.Date;
import org.apache.
import org.apache.
import org.apache.
public class Run implements Daemon {
private class Runner extends Thread {
public void run() {
try {
} catch (Exception e) {}
}
}
}
Runner r = new Runner();
@Override
public void init(DaemonContext context) throws DaemonInitExcep
@Override
public void start() throws Exception {
r.start();
}
@Override
public void stop() throws Exception {
}
}
@Override
public void destroy() {}
}
Compiled with
javac -cp /usr/share/
Created a script to launch through JSVC
# Setup variables
EXEC=/usr/bin/jsvc
JAVA_HOME=
CLASS_PATH=
CLASS=Run
USER=nervecentreadm
PID=/tmp/
LOG_OUT=
LOG_ERR=
do_exec()
{
$EXEC -home "$JAVA_HOME" -cp $CLASS_PATH -user $USER -outfile $LOG_OUT -errfile $LOG_ERR -pidfile $PID $1 $CLASS
}
case "$1" in
start)
do_exec
;;
stop)
do_exec "-stop"
;;
restart)
if [ -f "$PID" ]; then
do_exec "-stop"
do_exec
else
echo "service not running, will do nothing"
exit 1
fi
;;
*)
echo "usage: daemon {start|
exit 3
;;
esac
Ran the script with
./service start
The error log file in /tmp/example.err contains.
ProblemType: Crash
DistroRelease: Ubuntu 16.04
Package: jsvc 1.0.15-6
ProcVersionSign
Uname: Linux 4.4.0-82-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.7
Architecture: amd64
Date: Fri Jun 23 08:39:45 2017
ExecutablePath: /usr/bin/jsvc
InstallationDate: Installed on 2014-10-09 (987 days ago)
InstallationMedia: Ubuntu-Server 12.04.4 LTS "Precise Pangolin" - Release amd64 (20140204)
ProcCmdline: jsvc.exec -home /usr/lib/
SegvAnalysis:
Segfault happened at: 0x7f0c51ab0a4f <_expand_
PC (0x7f0c51ab0a4f) ok
source "$0x0" ok
destination "(%rax)" (0x7fff5de07ff0) not located in a known VMA region (needed writable region)!
Stack memory exhausted (SP below stack segment)
SegvReason: writing unknown VMA
Signal: 11
SourcePackage: commons-daemon
StacktraceTop:
_expand_
os::Linux:
JVM_handle_
signalHandler(int, siginfo_t*, void*) (sig=11, info=0x7fff5de0
<signal handler called> () at /lib/x86_
Title: jsvc crashed with SIGSEGV in _expand_stack_to()
UpgradeStatus: Upgraded to xenial on 2016-11-01 (233 days ago)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
---
AlsaDevices:
total 0
crw-rw---- 1 root audio 116, 1 Jun 23 08:28 seq
crw-rw---- 1 root audio 116, 33 Jun 23 08:28 timer
AplayDevices: Error: [Errno 2] No such file or directory
ApportVersion: 2.20.1-0ubuntu2.7
Architecture: amd64
ArecordDevices: Error: [Errno 2] No such file or directory
AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/seq', '/dev/snd/timer'] failed with exit code 1:
CRDA: Error: command ['iw', 'reg', 'get'] failed with exit code 1: nl80211 not found.
DistroRelease: Ubuntu 16.04
HibernationDevice: RESUME=
InstallationDate: Installed on 2014-10-09 (987 days ago)
InstallationMedia: Ubuntu-Server 12.04.4 LTS "Precise Pangolin" - Release amd64 (20140204)
IwConfig:
ens32 no wireless extensions.
lo no wireless extensions.
Lsusb: Error: command ['lsusb'] failed with exit code 1:
MachineType: VMware, Inc. VMware Virtual Platform
Package: linux (not installed)
PciMultimedia:
ProcFB:
ProcKernelCmdLine: BOOT_IMAGE=
ProcVersionSign
RelatedPackageV
linux-
linux-
linux-firmware 1.157.11
RfKill: Error: [Errno 2] No such file or directory
Tags: xenial
Uname: Linux 4.4.0-82-generic x86_64
UpgradeStatus: Upgraded to xenial on 2016-11-01 (233 days ago)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
_MarkForUpload: True
dmi.bios.date: 09/21/2011
dmi.bios.vendor: Phoenix Technologies LTD
dmi.bios.version: 6.00
dmi.board.name: 440BX Desktop Reference Platform
dmi.board.vendor: Intel Corporation
dmi.board.version: None
dmi.chassis.
dmi.chassis.type: 1
dmi.chassis.vendor: No Enclosure
dmi.chassis.
dmi.modalias: dmi:bvnPhoenixT
dmi.product.name: VMware Virtual Platform
dmi.product.
dmi.sys.vendor: VMware, Inc.
CVE References
information type: | Private → Public |
Changed in commons-daemon (Ubuntu): | |
status: | Invalid → New |
Stacktrace:
#0 0x00007f0c51ab0a4f in ?? ()
No symbol table info available.
#1 0x0000000000000000 in ?? ()
No symbol table info available.
StacktraceSource:
#0 0x00007f0c51ab0a4f in ?? ()
#1 0x0000000000000000 in ?? ()
StacktraceTop:
?? ()
?? ()