Bug#314937: marked as done (invalid execve() usage)

Debian Bug Tracking System owner at bugs.debian.org
Sat Sep 10 21:33:27 UTC 2005


Your message dated Sat, 10 Sep 2005 14:17:08 -0700
with message-id <E1EECii-0004r3-00 at spohr.debian.org>
and subject line Bug#314937: fixed in commons-daemon 1.0.1-1
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 19 Jun 2005 14:11:24 +0000
>From marcin at owsiany.pl Sun Jun 19 07:11:24 2005
Return-path: <marcin at owsiany.pl>
Received: from starnet.skynet.com.pl (skynet.skynet.com.pl) [213.25.173.230] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1Dk0WB-0007gE-00; Sun, 19 Jun 2005 07:11:24 -0700
Received: from gw4.bielsko.msk.pl ([81.219.223.245] helo=melina11.ds11.agh.edu.pl)
	by skynet.skynet.com.pl with asmtp (Exim 3.35 #1 (Debian))
	id 1Dk0W4-00073h-00; Sun, 19 Jun 2005 16:11:16 +0200
Received: from porridge by melina11.ds11.agh.edu.pl with local (Exim kuku 4.51)
	id 1Dk0W3-0007KF-Md; Sun, 19 Jun 2005 16:11:15 +0200
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Marcin Owsiany <marcin at owsiany.pl>
To: Debian Bug Tracking System <submit at bugs.debian.org>
Subject: invalid execve() usage
X-Mailer: reportbug 3.14
Date: Sun, 19 Jun 2005 16:11:15 +0200
Message-Id: <E1Dk0W3-0007KF-Md at melina11.ds11.agh.edu.pl>
X-Scanner: exiscan *1Dk0W4-00073h-00*28YhIIhSHls*
Delivered-To: submit at bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE 
	autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 

Package: jsvc
Version: 1.0-5
Severity: grave

As revealed by strace, jsvc tries to reexec itself without using full
path. This causes the package to be unusable.

execve("/usr/bin/jsvc", ["jsvc", "-home", "/usr/lib/j2sdk1.5-sun", "-Dcatalina.home=/opt/jakarta-tom"..., "-outfil e", "/opt/jakarta-tomcat/logs/catalin"..., "-errfile", "&1", "-pidfile", "/opt/jakarta-tomcat/temp/tomcat."..., "- cp", "/opt/kodo-jdo:/opt/kodo-jdo/lib/"..., "org.apache.catalina.startup.Boot"...], [/* 42 vars */]) = 0
uname({sys="Linux", node="melina11", ...}) = 0
brk(0)                                  = 0x8050000
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7fe9000
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/etc/ld.so.preload", O_RDONLY)    = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=50925, ...}) = 0
old_mmap(NULL, 50925, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7fdc000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/tls/libdl.so.2", O_RDONLY)   = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\320\32"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=9872, ...}) = 0
old_mmap(NULL, 8632, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xb7fd9000
old_mmap(0xb7fdb000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x2000) = 0xb7fdb000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/tls/libc.so.6", O_RDONLY)    = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`Z\1\000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1254468, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7fd8000
old_mmap(NULL, 1264780, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xb7ea3000
old_mmap(0xb7fcd000, 36864, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x129000) = 0xb7fcd000
old_mmap(0xb7fd6000, 7308, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7fd6000
close(3)                                = 0
set_thread_area({entry_number:-1 -> 6, base_addr:0xb7fd8880, limit:1048575, seg_32bit:1, contents:0, read_exec_onl y:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0
munmap(0xb7fdc000, 50925)               = 0
brk(0)                                  = 0x8050000
brk(0x8071000)                          = 0x8071000
brk(0)                                  = 0x8071000
stat64("/usr/lib/j2sdk1.5-sun", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/usr/lib/j2sdk1.5-sun/jre/lib/jvm.cfg", 0xbfffdd9c) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/j2sdk1.5-sun/lib/jvm.cfg", 0xbfffdd9c) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/j2sdk1.5-sun/jre/lib/i386/classic/libjvm.so", 0xbfffdd9c) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/j2sdk1.5-sun/jre/lib/i386/client/libjvm.so", {st_mode=S_IFREG|0644, st_size=4260981, ...}) = 0
execve("jsvc", ["jsvc.exec", "-home", "/usr/lib/j2sdk1.5-sun", "-Dcatalina.home=/opt/jakarta-tom"..., "-outfile", "/opt/jakarta-tomcat/logs/catalin"..., "-errfile", "&1", "-pidfile", "/opt/jakarta-tomcat/temp/tomcat."..., "-cp",  "/opt/kodo-jdo:/opt/kodo-jdo/lib/"..., "org.apache.catalina.startup.Boot"...], [/* 43 vars */]) = -1 ENOENT (No s uch file or directory)
write(2, "jsvc error: ", 12jsvc error: )            = 12
write(2, "Cannot execute JSVC executor pro"..., 36Cannot execute JSVC executor process) = 36
write(2, "\n", 1
)                       = 1

This can be worked around by "ln -s /usr/bin/jsvc ."

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.11-1-k7
Locale: LANG=pl_PL, LC_CTYPE=pl_PL (charmap=ISO-8859-2)

Versions of packages jsvc depends on:
ii  libc6                       2.3.2.ds1-22 GNU C Library: Shared libraries an
ii  libcommons-daemon-java      1.0-5        Java API to launch java applicatio

jsvc recommends no packages.

-- no debconf information

---------------------------------------
Received: (at 314937-close) by bugs.debian.org; 10 Sep 2005 21:18:37 +0000
>From katie at spohr.debian.org Sat Sep 10 14:18:37 2005
Return-path: <katie at spohr.debian.org>
Received: from katie by spohr.debian.org with local (Exim 3.36 1 (Debian))
	id 1EECii-0004r3-00; Sat, 10 Sep 2005 14:17:08 -0700
From: Wolfgang Baer <WBaer at gmx.de>
To: 314937-close at bugs.debian.org
X-Katie: $Revision: 1.56 $
Subject: Bug#314937: fixed in commons-daemon 1.0.1-1
Message-Id: <E1EECii-0004r3-00 at spohr.debian.org>
Sender: Archive Administrator <katie at spohr.debian.org>
Date: Sat, 10 Sep 2005 14:17:08 -0700
Delivered-To: 314937-close at bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level: 
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
	autolearn=no version=2.60-bugs.debian.org_2005_01_02

Source: commons-daemon
Source-Version: 1.0.1-1

We believe that the bug you reported is fixed in the latest version of
commons-daemon, which is due to be installed in the Debian FTP archive:

commons-daemon_1.0.1-1.diff.gz
  to pool/main/c/commons-daemon/commons-daemon_1.0.1-1.diff.gz
commons-daemon_1.0.1-1.dsc
  to pool/main/c/commons-daemon/commons-daemon_1.0.1-1.dsc
commons-daemon_1.0.1.orig.tar.gz
  to pool/main/c/commons-daemon/commons-daemon_1.0.1.orig.tar.gz
jsvc-dev_1.0.1-1_all.deb
  to pool/main/c/commons-daemon/jsvc-dev_1.0.1-1_all.deb
jsvc_1.0.1-1_i386.deb
  to pool/main/c/commons-daemon/jsvc_1.0.1-1_i386.deb
libcommons-daemon-java_1.0.1-1_all.deb
  to pool/main/c/commons-daemon/libcommons-daemon-java_1.0.1-1_all.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 314937 at bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Wolfgang Baer <WBaer at gmx.de> (supplier of updated commons-daemon package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster at debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Sat, 10 Sep 2005 17:45:46 +0200
Source: commons-daemon
Binary: jsvc-dev jsvc libcommons-daemon-java
Architecture: source all i386
Version: 1.0.1-1
Distribution: unstable
Urgency: low
Maintainer: Debian Java Maintainers <pkg-java-maintainers at lists.alioth.debian.org>
Changed-By: Wolfgang Baer <WBaer at gmx.de>
Description: 
 jsvc       - native application to launch java applications as daemons
 jsvc-dev   - development files for jsvc
 libcommons-daemon-java - Java API to launch java applications as daemons
Closes: 314937 326436
Changes: 
 commons-daemon (1.0.1-1) unstable; urgency=low
 .
   * New upstream release
     + updated manpage for new options
     + amd64 now supported
       (I will leave 307853 open until all debian platforms are supported)
   * Patch from upstream CVS to fix invalid execve() usage (closes: #314937)
   * libant1.6-java to ant transition (closes: #326436)
   * Added autotools-dev to let cdbs update the config.guess/sub
   * Standards-Version 3.6.2 (no changes)
 .
   * Upload sponsored by XXX
Files: 
 66e0ab560626b7a096e4a73ed9352075 841 libs optional commons-daemon_1.0.1-1.dsc
 7a3a5387b0435f5a5c08060bcb00d95d 301033 libs optional commons-daemon_1.0.1.orig.tar.gz
 d0d14e58c1735f5dbd28c1ca5b7c6431 7776 libs optional commons-daemon_1.0.1-1.diff.gz
 cd7211ab1041124dcbc4fb5b0ccdb9db 37972 libs optional libcommons-daemon-java_1.0.1-1_all.deb
 2a80faf768a388aabb8a60d6007f030a 9098 libs optional jsvc-dev_1.0.1-1_all.deb
 95d9b7c2b2a74d2dae76d909238f6945 21746 net optional jsvc_1.0.1-1_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFDI0oR20zMSyow1ykRAj2jAKCULB/LTl7Jdi9hSlkKK6sGeX7ywgCgz0yZ
JCy1/20DHDrKeSELL8EA0B0=
=HZY2
-----END PGP SIGNATURE-----




More information about the pkg-java-maintainers mailing list