Opened 6 years ago

Closed 6 years ago

#4895 closed bug (fixed)

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 Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:

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 (2)

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

Download all attachments as: .zip

Change History (9)

Changed 6 years ago by guest

Attachment: bug.hs added

Changed 6 years ago by guest

Attachment: test.txt added

comment:1 Changed 6 years ago by simonmar

Milestone: 7.0.3
Owner: set to simonmar
Priority: normalhigh

comment:2 Changed 6 years ago by simonmar

See also #4911

comment:3 Changed 6 years ago by tibbe

Cc: johan.tibell@… added

comment:4 Changed 6 years ago by simonmar

Milestone: 7.0.37.0.2
Status: newmerge

Fixed, thanks for the report:

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

comment:5 Changed 6 years ago by kazu-yamamoto

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

comment:6 Changed 6 years ago by kazu-yamamoto

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

comment:7 Changed 6 years ago by igloo

Resolution: fixed
Status: mergeclosed

Merged

Note: See TracTickets for help on using tickets.