Package: strace
Version: 4.5.12-1
Severity: normal

Steps to reproduce:
1) cat > testcase.java << EOF
public class testcase {
        public static void main(String[] args) {
                new testcase();
        }
        public testcase() {
                System.out.println("hello world");
        }
}
EOF
2) jikes-sablevm testcase.java
3) strace -s32768 -o strace.log -f jamvm testcase

Expected results:
3) jamvm runs normally and prints "hello world", strace logs all syscalls to 
strace.log

Actual results:
3) jamvm prints nothing and strace crashes. Last line
   of strace.log (75 lines total) is very long
   (tail -1 strace.log | wc --bytes says 24576) and starts with

28256 _sysctl({{CTL_KERN, KERN_VERSION, 0, 91b1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
0, 0, 0, 0, 0, 0, 0, 0

Note that on my system
"strace -s19044 -o strace.log -f jamvm testcase" does not crash but
"strace -s19045 -o strace.log -f jamvm testcase" does.

I think the crash happens in system.c on line 1926 and can be
prevented with the following fix:

--- system.c.orig       2005-11-15 02:09:43.000000000 +0200
+++ system.c    2005-11-15 02:13:14.000000000 +0200
@@ -1921,7 +1921,7 @@
                        goto out;
                }
        out:
-               max_cnt = abbrev(tcp) ? max_strlen : info.nlen;
+               max_cnt = abbrev(tcp) && max_strlen < info.nlen ? max_strlen : 
info.nlen;
                while (cnt < max_cnt)
                        tprintf(", %x", name[cnt++]);
                if (cnt < info.nlen)



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

Versions of packages strace depends on:
ii  libc6                         2.3.5-8    GNU C Library: Shared libraries an

strace recommends no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to