Ticket #4895 (closed bug: fixed)

Opened 2 years ago

Last modified 2 years ago

hGetBufSome returns 0 when it should not

Reported by: guest Owned by: simonmar
Priority: high Milestone: 7.0.2
Component: libraries/base Version: 7.0.1
Keywords: Cc: aljee@…, johan.tibell@…
Operating System: Linux Architecture: Unknown/Multiple
Type of failure: Incorrect result at runtime Difficulty:
Test Case: Blocked By:
Blocking: Related Tickets:

Description

In the attached program hGetBufSome returns 0, but the handle contains more data to be read. This contradicts to the documentation.

-- Takano Akio

Attachments

bug.hs Download (230 bytes) - added by guest 2 years ago.
test.txt Download (27 bytes) - added by guest 2 years ago.

Change History

Changed 2 years ago by guest

Changed 2 years ago by guest

Changed 2 years ago by simonmar

  • owner set to simonmar
  • priority changed from normal to high
  • milestone set to 7.0.3

Changed 2 years ago by simonmar

See also #4911

Changed 2 years ago by tibbe

  • cc johan.tibell@… added

Changed 2 years ago by simonmar

  • status changed from new to merge
  • milestone changed from 7.0.3 to 7.0.2

Fixed, thanks for the report:

Fri Jan 21 14:35:55 GMT 2011  Simon Marlow <marlowsd@gmail.com>
  * fix silly mistake in hGetBufSome (#4895)

Changed 2 years ago by kazu-yamamoto

Please merge this patch to the ghc-7.0 branch, too.

Changed 2 years ago by kazu-yamamoto

It seems to me that this patch have not been marged to ghc-7.0 yet. Please merge this.

Changed 2 years ago by igloo

  • status changed from merge to closed
  • resolution set to fixed

Merged

Note: See TracTickets for help on using tickets.