Ticket #5531 (closed bug: invalid)

Opened 20 months ago

Last modified 18 months ago

Segfault on Windows

Reported by: awson Owned by: igloo
Priority: high Milestone: 7.4.1
Component: Runtime System Version: 7.2.1
Keywords: Cc:
Operating System: Windows Architecture: Unknown/Multiple
Type of failure: None/Unknown Difficulty:
Test Case: Blocked By:
Blocking: Related Tickets:

Description

This segfaults on Windows:

import Network.Curl (curlGetString)

main :: IO ()
main = fmap snd (curlGetString "https://github.com/simonmar" []) >>= putStrLn

It does not depend on options either curl package or this code is compiled with.

7.2.1 and 7.3.20111004 and definitely affected.

Compiled with 7.0.3 this example crashes when linked with -debug runtime but work pretty fine otherwise.

Change History

Changed 19 months ago by igloo

  • owner set to igloo
  • priority changed from normal to high
  • milestone set to 7.4.1

Changed 18 months ago by awson

Investigating a little bit further I've found that: 1. ghc 6.6.1 gives exactly the same crash 2. ghc 6.8-6.12 give "%1 Is Not a Valid Win32 Application" error

So, the only working config is 7.0.x (no debug) and it looks pretty much accidental now. It smells like there is something wrong with win32 SSL or curl-SSL interaction.

Or, if GHC is still a culprit, this must be an extremely long standing bug.

Changed 18 months ago by awson

  • status changed from new to closed
  • resolution set to invalid

Well, the latest and greatest stock win32 libcurl 7.22 works fine. No GHC is involved. Sorry for the inconvenience.

Changed 18 months ago by igloo

Thanks for looking into it!

Note: See TracTickets for help on using tickets.