Opened 3 years ago

Closed 2 years ago

Last modified 2 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 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 (4)

comment:1 Changed 2 years ago by igloo

  • Milestone set to 7.4.1
  • Owner set to igloo
  • Priority changed from normal to high

comment:2 Changed 2 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 2 years ago by awson

  • Resolution set to invalid
  • Status changed from new to closed

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

comment:4 Changed 2 years ago by igloo

Thanks for looking into it!

Note: See TracTickets for help on using tickets.