Bug 49534 - gcj segfaults on a program from stdin
gcj segfaults on a program from stdin
Status: UNCONFIRMED
Product: gcc
Classification: Unclassified
Component: java
4.5.1
: P3 normal
: ---
Assigned To: Not yet assigned to anyone
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-06-26 20:48 UTC by Jim Radford
Modified: 2011-06-26 20:48 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jim Radford 2011-06-26 20:48:38 UTC
The following command

  echo 'class Hello {public static void main(String[] args) {System.out.println("hello, world");}}' | gcj -x java --main=Hello - -o Hello

gives

  jc1: warning: no input file specified
  jc1: internal compiler error: Segmentation fault

The equivalent C program works when piped to gcc.