Ticket #2454 (closed bug: duplicate)

Opened 5 years ago

Last modified 5 years ago

Closing handle from runInteractiveProcess causes myserious, uncatchable death.

Reported by: cjs Owned by:
Priority: normal Milestone:
Component: libraries/base Version: 6.8.3
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: x86
Type of failure: Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

Description

Running the attached program on Windows works, because runInteractiveProcess fails. Under Linux and NetBSD, runIntractiveProcess returns (which it probably shouldn't--wouldn't it be nicer if it checked that it had execute access on what it wanted to exec before it forked?) and then at some point in hClose the program silently dies, though returning an error code to the process that spawned it.

Attachments

SilentClose.hs Download (426 bytes) - added by cjs 5 years ago.
Program to demonstrate hClose silent failure.

Change History

Changed 5 years ago by cjs

Program to demonstrate hClose silent failure.

Changed 5 years ago by simonmar

  • status changed from new to closed
  • difficulty set to Unknown
  • resolution set to duplicate

duplicate of #1619, now fixed. Thanks anyway for a nice report!

Changed 5 years ago by simonmar

  • os changed from Multiple to Unknown/Multiple
Note: See TracTickets for help on using tickets.