Init script fails to start when run via ssh with pty

Bug #588481 reported by Paul Paradise
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tomcat6 (Debian)
Fix Committed
Undecided
Unassigned
tomcat6 (Ubuntu)
Fix Released
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

Revision history for this message
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
Revision history for this message
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
Revision history for this message
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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.