Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#5531 closed bug (invalid)

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


This segfaults on Windows:

import Network.Curl (curlGetString)

main :: IO ()
main = fmap snd (curlGetString "" []) >>= 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 (4)

comment:1 Changed 8 years ago by igloo

Milestone: 7.4.1
Owner: set to igloo
Priority: normalhigh

comment:2 Changed 8 years 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.

comment:3 Changed 8 years ago by awson

Resolution: invalid
Status: newclosed

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

comment:4 Changed 8 years ago by igloo

Thanks for looking into it!

Note: See TracTickets for help on using tickets.