Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 316077

Summary: Endless "java.io.IOException: Stream closed" log
Product: z_Archived Reporter: Toshihiro Izumi <euthanasia_waltz>
Component: PDTAssignee: Thierry BLIND <thierryblind>
Status: CLOSED FIXED QA Contact: Sylvia Tancheva <silviya>
Severity: major    
Priority: P3 CC: gadi, thierryblind, wywrzal
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
a piece of .log none

Description Toshihiro Izumi CLA 2010-06-07 22:21:06 EDT
Created attachment 171364 [details]
a piece of .log

Steps to reproduce:

1. Type '/** ' at eof

Note that this makes enormous log file.
"java.io.IOException: Stream closed" is logged until you exit eclipse.
Comment 1 Zhongwei Zhao CLA 2010-06-08 08:18:05 EDT
fixed in head
Comment 2 Gadi Goldbarg CLA 2010-06-17 06:32:49 EDT
Verified at PDT-2.2.0.v20100616 can`t see this behavior at error log after adding '/**' at EOF - seems to be normal at the moment and issue to be fixed

Closing this issue...

Verified by
Teodor Kirkov
teodor.k@zend.com
Comment 3 Toshihiro Izumi CLA 2010-06-17 07:17:45 EDT
'/**' is not '/** '.
Comment 4 Thierry BLIND CLA 2015-01-06 09:28:21 EST
Hi,
I reopened this bug as it isn't resolved.
Step to reproduce :
1. create a file (but not using eclipse) with following content :
<?php
/** 

Be careful, last line must end with a space (ie. '/** ')
2. copy this file in a PHP project under eclipse
3. try to open it
4. you will have following endless log entries :

java.io.IOException: Stream closed
	at java.io.CharArrayReader.ensureOpen(CharArrayReader.java:75)
	at java.io.CharArrayReader.read(CharArrayReader.java:105)
	at org.eclipse.php.internal.core.compiler.ast.parser.DocumentorLexer.zzRefill(DocumentorLexer.java:768)
	at org.eclipse.php.internal.core.compiler.ast.parser.DocumentorLexer.next_token(DocumentorLexer.java:1044)
	at org.eclipse.php.internal.core.compiler.ast.parser.DocumentorLexer.parse(DocumentorLexer.java:486)
	at org.eclipse.php.internal.core.compiler.ast.parser.DocumentorLexer.parse(DocumentorLexer.java:1)
	at org.eclipse.php.internal.core.ast.scanner.php56.PhpAstLexer.parsePHPDoc(PhpAstLexer.java:1280)
	at org.eclipse.php.internal.core.compiler.ast.parser.php56.CompilerAstLexer.parsePHPDoc(CompilerAstLexer.java:65)
	at org.eclipse.php.internal.core.ast.scanner.php56.PhpAstLexer.next_token(PhpAstLexer.java:2356)
	at java_cup.runtime.lr_parser.scan(lr_parser.java:335)
	at java_cup.runtime.lr_parser.parse(lr_parser.java:534)
	at org.eclipse.php.internal.core.compiler.ast.parser.AbstractPHPSourceParser.parse(AbstractPHPSourceParser.java:61)
	at org.eclipse.php.internal.core.compiler.ast.parser.php56.PhpSourceParser.parse(PhpSourceParser.java:37)
	at org.eclipse.php.internal.core.compiler.ast.parser.AbstractPHPSourceParser.parse(AbstractPHPSourceParser.java:41)
	at org.eclipse.php.internal.core.compiler.ast.parser.PHPSourceParserFactory.parse(PHPSourceParserFactory.java:41)
	at org.eclipse.dltk.core.SourceParserUtil.parse(SourceParserUtil.java:135)
	at org.eclipse.dltk.core.SourceParserUtil.getModuleDeclaration(SourceParserUtil.java:171)
	at org.eclipse.dltk.core.SourceParserUtil.getModuleDeclaration(SourceParserUtil.java:166)
	at org.eclipse.php.internal.core.index.PhpIndexingParser.parseSourceModule(PhpIndexingParser.java:27)
	at org.eclipse.dltk.core.index2.AbstractIndexer.indexDocument(AbstractIndexer.java:45)
	at org.eclipse.dltk.internal.core.index.sql.SqlIndexer.indexDocument(SqlIndexer.java:147)
	at org.eclipse.dltk.internal.core.index2.AddSourceModuleRequest.run(AddSourceModuleRequest.java:47)
	at org.eclipse.dltk.core.search.indexing.AbstractJob.execute(AbstractJob.java:76)
	at org.eclipse.dltk.internal.core.search.processing.JobManager.run(JobManager.java:467)
	at java.lang.Thread.run(Thread.java:662)
Comment 5 Thierry BLIND CLA 2015-01-10 10:21:10 EST
Patch is available:
https://git.eclipse.org/r/#/c/39241

Thierry.
Comment 6 Michal Niewrzal CLA 2015-01-10 17:55:08 EST
Merged: https://git.eclipse.org/c/pdt/org.eclipse.pdt.git/commit/?id=0cd4d428c4cfe660d493966bb5d84eced946fcf4

Thanks for patch Thierry:)
Comment 7 Sylvia Tancheva CLA 2015-01-12 04:40:45 EST
I also successfully reproduced - got the log 10-11 times backed up, all files full of that error even before trying to open it (upon copy to the project Studio hanged).

Now with Thierry's fix it looks OK. Nothing in the log. Closing the bug