GHCi locks up on long input
When I enter a long entry into GHCi, it sometimes freezes up, completely locking the xterm. It doesn't respond to control-C, typing, arrow keys, or even pkill run from another terminal. The only way I have been able to get out of it is by closing the terminal. I'm having trouble reproducing the bug, but one such input that caused the problem was
{{{ Prelude Text.XHtml.Strict> let f = renderHtml $ header (thetitle << "The Iliad") +++ body ((div << (h1 << "The Iliad" +++ cite << "Homer" +++ paragraph << "751 +++ body ((div << (h1 << "The Iliad" +++ cite << "Homer" +++ paragraph << "751 BC" +++ "Sing, O goddess, the rage of Achilles son of Peleus, that brought countless ills upon the Achaeans. Many a brave soul did it send hurrying down to Hades, and many a hero did it yield a prey to dogs and vultures, for so were the counsels of Jove fulfilled from the day on which the son of Atreus, king of men, and great Achilles, first fell out with one another" +++ paragraph << "And which of the gods was it that set them on to quarrel? It was the son of Jove and Leto; for he was angry with the king and sent a pestilence upon the host to plague the people, because the son of Atreus had dishonoured Chryses his priest. Now Chryses had come to the ships of the Achaeans to free his daughter, and had brought with him a great ransom: moreover he bore in his hand the sceptre of Apollo wreathed with a suppliant's wreath and he besought the Achaeans, but most of all the two sons of Atreus, who were their chiefs." )))
However, this input does not always cause the lockup.
I will try to investigate more and try to get a more concrete test case, but I have not yet found a pattern to how this happens.
Trac metadata
Trac field | Value |
---|---|
Version | 6.8.2 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | GHCi |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture | Unknown |