apport information

** Tags added: apport-collected

** Description changed:

  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.commons.daemon.Daemon;
  import org.apache.commons.daemon.DaemonContext;
  import org.apache.commons.daemon.DaemonInitException;
  
  public class Run implements Daemon {
  
      private class Runner extends Thread {
          public void run() {
              synchronized(this) {
                  try {
                      System.out.println(new Date() + " running ...");
                      wait();
                  } catch (Exception e) {}
              }
          }
      }
  
      Runner r = new Runner();
  
      @Override
      public void init(DaemonContext context) throws DaemonInitException, 
Exception {}
  
      @Override
      public void start() throws Exception {
          System.out.println(new Date() + " Staring...");
          r.start();
      }
  
      @Override
      public void stop() throws Exception {
          synchronized(r) {
              System.out.println(new Date() + " Stopping ...");
              r.notify();
          }
      }
  
      @Override
      public void destroy() {}
  }
  
  Compiled with
  
  javac -cp /usr/share/java/commons-daemon-1.0.15.jar Run.java
  
  Created a script to launch through JSVC
  
  # Setup variables
  EXEC=/usr/bin/jsvc
  JAVA_HOME=/usr/lib/jvm/default-java
  
CLASS_PATH="/usr/share/java/commons-daemon.jar":"/home/nervecentreadm/JavaTest/"
  CLASS=Run
  USER=nervecentreadm
  PID=/tmp/example.pid
  LOG_OUT=/tmp/example.out
  LOG_ERR=/tmp/example.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|stop|restart}" >&2
              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
  ProcVersionSignature: Ubuntu 4.4.0-82.105-generic 4.4.70
  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/jvm/default-java -cp 
/usr/share/java/commons-daemon.jar:/home/username/JavaTest/ -user username 
-outfile /tmp/example.out -errfile /tmp/example.err -pidfile /tmp/example.pid 
Run
  SegvAnalysis:
   Segfault happened at: 0x7f0c51ab0a4f <_expand_stack_to(address)+79>: movb   
$0x0,(%rax)
   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_stack_to(address) (bottom=0x7fff5de07fff "", 
bottom@entry=0x7fff5de076b0 "") at 
/build/openjdk-8-VTMhfL/openjdk-8-8u131-b11/src/hotspot/src/os/linux/vm/os_linux.cpp:673
   os::Linux::manually_expand_stack(JavaThread*, unsigned char*) 
(t=t@entry=0xa7e000, addr=0x7fff5de076b0 "") at 
/build/openjdk-8-VTMhfL/openjdk-8-8u131-b11/src/hotspot/src/os/linux/vm/os_linux.cpp:686
   JVM_handle_linux_signal(int, siginfo_t*, void*, int) (sig=sig@entry=11, 
info=info@entry=0x7fff5de0c230, ucVoid=ucVoid@entry=0x7fff5de0c100, 
abort_if_unrecognized=abort_if_unrecognized@entry=1) at 
/build/openjdk-8-VTMhfL/openjdk-8-8u131-b11/src/hotspot/src/os_cpu/linux_x86/vm/os_linux_x86.cpp:330
   signalHandler(int, siginfo_t*, void*) (sig=11, info=0x7fff5de0c230, 
uc=0x7fff5de0c100) at 
/build/openjdk-8-VTMhfL/openjdk-8-8u131-b11/src/hotspot/src/os/linux/vm/os_linux.cpp:4346
   <signal handler called> () at /lib/x86_64-linux-gnu/libpthread.so.0
  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=UUID=3d2157af-ff8c-4559-a982-af99dfe606d5
+ 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=/boot/vmlinuz-4.4.0-82-generic 
root=UUID=d790fdc1-8289-46d1-9d2e-ce094b9e743a ro
+ ProcVersionSignature: Ubuntu 4.4.0-82.105-generic 4.4.70
+ RelatedPackageVersions:
+  linux-restricted-modules-4.4.0-82-generic N/A
+  linux-backports-modules-4.4.0-82-generic  N/A
+  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.asset.tag: No Asset Tag
+ dmi.chassis.type: 1
+ dmi.chassis.vendor: No Enclosure
+ dmi.chassis.version: N/A
+ dmi.modalias: 
dmi:bvnPhoenixTechnologiesLTD:bvr6.00:bd09/21/2011:svnVMware,Inc.:pnVMwareVirtualPlatform:pvrNone:rvnIntelCorporation:rn440BXDesktopReferencePlatform:rvrNone:cvnNoEnclosure:ct1:cvrN/A:
+ dmi.product.name: VMware Virtual Platform
+ dmi.product.version: None
+ dmi.sys.vendor: VMware, Inc.

** Attachment added: "CurrentDmesg.txt"
   
https://bugs.launchpad.net/bugs/1700010/+attachment/4901447/+files/CurrentDmesg.txt

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1700010

Title:
  jsvc crashed with SIGSEGV in _expand_stack_to()

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/commons-daemon/+bug/1700010/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to