Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

-Ydebug has been sabotaged #7427

Closed
scabug opened this issue Apr 27, 2013 · 6 comments
Closed

-Ydebug has been sabotaged #7427

scabug opened this issue Apr 27, 2013 · 6 comments
Assignees
Milestone

Comments

@scabug
Copy link

scabug commented Apr 27, 2013

Driving me bonkers, keep failing to open. Does nobody use -Ydebug?

% scalac ./src/library/scala/collection/parallel/ParMapLike.scala  -Ydebug
...
[running phase icode on ParMapLike.scala]
The last instruction is not a control flow instruction: PJUMP method matchEnd5
	at scala.reflect.internal.SymbolTable.abort(SymbolTable.scala:51)
	at scala.tools.nsc.Global.abort(Global.scala:251)
	at scala.tools.nsc.backend.icode.ICodes.dumpClassesAndAbort(ICodes.scala:61)
	at scala.tools.nsc.backend.icode.BasicBlocks$BasicBlock.directSuccessors(BasicBlocks.scala:488)
	at scala.tools.nsc.backend.icode.BasicBlocks$BasicBlock$SuccessorList.updateConserve(BasicBlocks.scala:50)
	at scala.tools.nsc.backend.icode.BasicBlocks$BasicBlock$SuccessorList.updateSuccs(BasicBlocks.scala:104)
	at scala.tools.nsc.backend.icode.BasicBlocks$BasicBlock.successors(BasicBlocks.scala:472)
	at scala.tools.nsc.backend.icode.BasicBlocks$BasicBlock$$anonfun$predecessors$1.apply(BasicBlocks.scala:496)
	at scala.tools.nsc.backend.icode.BasicBlocks$BasicBlock$$anonfun$predecessors$1.apply(BasicBlocks.scala:496)
@scabug
Copy link
Author

scabug commented Apr 27, 2013

Imported From: https://issues.scala-lang.org/browse/SI-7427?orig=1
Reporter: @paulp

@scabug
Copy link
Author

scabug commented Apr 27, 2013

@paulp said:
Regressed in b50a0d811f, hello J. Iry.

 commit b50a0d811f
 Author: James Iry <jamesiry@gmail.com>
 Date:   8 weeks ago
 
     SI-7006 Prevent unreachable blocks in GenICode

     This commit makes GenICode prevent the generation of
     most unreachable blocks. The new unreachable block prevention code can
     be disabled with a compiler flag. ...

@scabug
Copy link
Author

scabug commented Apr 27, 2013

@paulp said:
If it isn't easy to fix, just not crashing -Ydebug would be great.

@scabug
Copy link
Author

scabug commented May 19, 2013

@paulp said:
I guess I will be fixing this myself.

@scabug
Copy link
Author

scabug commented May 19, 2013

@paulp said:
In case there was any question, here's a repro. It doesn't take much.

trait Bippy { 3 match { case 3 => } }

It crashes with -Ydebug by itself; compiles with no options, or with -Ydebug -Ydisable-unreachable-prevention.

@scabug
Copy link
Author

scabug commented May 19, 2013

@paulp said:
16e92f48e7b07

(Whatever the underlying issue is remains, but the crash is now a warning.)

@scabug scabug closed this as completed May 19, 2013
@scabug scabug added the critical label Apr 7, 2017
@scabug scabug added this to the 2.11.0-M3 milestone Apr 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants