Init script fails to start when run via ssh with pty

Bug #588481 reported by Paul Paradise on 2010-06-01
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tomcat6 (Debian)
Fix Committed
Undecided
Unassigned
tomcat6 (Ubuntu)
Medium
Thierry Carrez

Bug Description

Binary package hint: tomcat6

Reproduction steps:

1. Install tomcat6 package
2. Start the service by running "ssh -t localhost sudo service tomcat6 start"

If you're watching closely, it appears that catalina.sh runs, the service boots up enough to log to /var/log/tomcat6/catalina.out, and then promptly dies, leaving the PID file around in /var/run/tomcat6.pid. Starting normally (through a plain shell or ssh -T) appears to work normally.

Related branches

CVE References

Thierry Carrez (ttx) wrote :

Can also be reproduced by ssh -t lucid-test sudo /etc/init.d/tomcat6 start.

Adding -b to start-stop-daemon solves it, but might have side-effects in case of start failure...

Changed in tomcat6 (Ubuntu):
importance: Undecided → Medium
status: New → Confirmed
Thierry Carrez (ttx) wrote :

Fix committed to debian svn-java

Changed in tomcat6 (Ubuntu):
assignee: nobody → Thierry Carrez (ttx)
status: Confirmed → Fix Committed
Changed in tomcat6 (Debian):
status: New → Fix Committed
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package tomcat6 - 6.0.26-5

---------------
tomcat6 (6.0.26-5) unstable; urgency=medium

  * Convert patches to dep3 format.
  * Backport security fix from trunk to fix CVE-2010-1157. (Closes: #587447)
  * Set urgency to medium due to the security fix.

tomcat6 (6.0.26-4) unstable; urgency=low

  [ Thierry Carrez ]
  * Fix issues preventing from running Tomcat6 with a security manager:
    - debian/tomcat6.init: Remove duplicate securitymanager options.
    - debian/patches/catalina-sh-security-manager.patch: Use the right
      location for the security.policy file in catalina.sh.
    - Closes: #585379, LP: #591802. Thanks to Jeff Turner for the original
      patches and to Adam Guthrie for the Lucid debdiff.
  * Allow binding to any interface when using authbind, rather than only allow
    binding to all (LP: #594989)
  * Force backgrounding of catalina.sh in start-stop-daemon, to allow the init
    script to be started through ssh -t (LP: #588481)

  [ Torsten Werner ]
  * Remove Paul from Uploaders list.
 -- Thierry Carrez <email address hidden> Tue, 13 Jul 2010 17:56:11 +0100

Changed in tomcat6 (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers