gcc version 4.2.0 20060605 (experimental)

I'm trying to run jsch (jcraft.com) with the examples/PortForwardingR.java and
id_dsa identity.  It worked before the most recent classpath import (works in
gcj 20060420), but now it just results in an infinite loop and a pegged cpu.

My guess is that it spins forever in the SecureRandom call to
VMSecureRandom.generateSeed.  This class didn't exist in 20060420 but jsch
worked fine.

I'm not sure if it is classpath or bad code generation in gcj causing the
infinite loop.

This testcase pegs the cpu.  Works fine with Sun's java.
---
import java.security.*;
public class GR {
  public static void main(String[] a) {
    SecureRandom sr = new SecureRandom();
    byte[] ba = sr.getSeed(5);
    System.err.println(ba);
  } 
}


-- 
           Summary: VMSecureRandom generateSeed infinite loop? (Regression)
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: critical
          Priority: P3
         Component: libgcj
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: r_ovidius at eml dot cc


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27908

Reply via email to