Failed to execute command: ...perl -c -w -T

adelara wrote on Fri May  9 23:08:55 MEST 2008:
More often than I am willing to suffer with, Epic will find something funky
with my code that prevents it from properly displaying what the problem

The Eclise "Error Log" displays the error:
"An unexpected exception occurred while validating"
and a child error displays

Failed to execute command line: "C:\Tools\Perl\bin\perl.exe" "-c" "-w" "-T" The pipe is being closed.
at Method)
at sun.nio.cs.StreamEncoder$ConverterSE.implClose(
at sun.nio.cs.StreamEncoder.close(
at org.epic.core.util.ProcessExecutor.execute(
at org.epic.core.util.ProcessExecutor.execute(
at org.epic.core.util.PerlExecutor.execute(
at org.epic.perleditor.editors.util.PerlValidatorBase.runPerl(
at org.epic.perleditor.editors.util.PerlValidatorBase.validate(
at org.epic.perleditor.editors.util.PerlValidator.validate(

I am running with Epic 0.6.13

java.fullversion=J2RE 1.5.0 IBM J9 2.3 Windows XP x86-32 j9vmwi3223-20070201
(JIT enabled)
J9VM - 20070131_11312_lHdSMR
JIT  - 20070109_1805ifx1_r8
GC   - 200701_09
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments:  -os win32 -ws win32 -arch x86

What gives ?

The program compiles perfectly fine in the command line.

jploski wrote on Fri May  9 23:27:08 MEST 2008:
I guess this might occur if the perl.exe process closes its end of the pipe
before receiving all of the input (source code) from EPIC. Are you sure
it compiles correctly with these options (-w -T)? Do you need the -T?
adelara wrote on Mon May 12 15:22:33 MEST 2008:
Hi Jan,

Thanks for the reply.

Yes, it does compile on the command line with or without -T
I don't need "-T" anyway, but the problem seems to be what you are guessing:
perl closes the pipe...

Here's something I found out: when I was removing code to see what was 
causing the problem, at some point it started to work again.
I finally figured out that when the source size is <= 8192 bytes, it worked.

Adding one character to the source file makes the problem show up again.
Funny enough, not all "source" codes causes it.

I can send you my "debug program" and you can see for yourself.
Or, is there a way for me to upload it ?


jploski wrote on Mon May 12 16:15:07 MEST 2008:
If the code is not secret, it's probably best that you open a bug report
and attach the file to it. Otherwise send to my email address. Note
that I have no Windows installed, so it may be difficult to reproduce.

Note: The above is an archived snapshot of a forum thread. Use the original thread at to post comments.