#3390: Upgrade the Windows build to use gcc 4.4.0
-----------------------------+----------------------------------------------
    Reporter:  simonmar      |        Owner:              
        Type:  task          |       Status:  new         
    Priority:  normal        |    Milestone:  6.14.1      
   Component:  Build System  |      Version:  6.10.4      
    Keywords:                |     Testcase:              
   Blockedby:                |   Difficulty:  Unknown     
          Os:  Windows       |     Blocking:              
Architecture:  x86           |      Failure:  None/Unknown
-----------------------------+----------------------------------------------
Changes (by igloo):

  * owner:  igloo =>


Comment:

 gcc is updated, but with:
 {{{
 hunk ./rts/Task.h 236
 -#if defined(linux_HOST_OS) && \
 -    (defined(i386_HOST_ARCH) || defined(x86_64_HOST_ARCH))
 +#if defined(mingw32_HOST_OS) || \
 +    (defined(linux_HOST_OS) && \
 +     (defined(i386_HOST_ARCH) || defined(x86_64_HOST_ARCH)))
  #define MYTASK_USE_TLV
  extern __thread Task *my_task;
 }}}
 I get:
 {{{
 $ cat q.hs

 main = putStrLn "Foo"

 $ inplace/bin/ghc-stage1 --make q -threaded
 [1 of 1] Compiling Main             ( q.hs, q.o )
 Linking q.exe ...
 $ ./q
 Segmentation fault/access violation in generated code
 }}}
 and when linked with `-debug` too:
 {{{
 (gdb) r +RTS -DS
 Starting program: /cygdrive/c/msys/1.0/home/ian/ghc/q +RTS -DS
 [New thread 2956.0xabc]

 Program received signal SIGSEGV, Segmentation fault.
 0x7c91b21a in ntdll!RtlpWaitForCriticalSection ()
    from /cygdrive/c/WINDOWS/system32/ntdll.dll
 (gdb) bt
 #0  0x7c91b21a in ntdll!RtlpWaitForCriticalSection ()
    from /cygdrive/c/WINDOWS/system32/ntdll.dll
 #1  0x7c901046 in ntdll!RtlEnumerateGenericTableLikeADirectory ()
    from /cygdrive/c/WINDOWS/system32/ntdll.dll
 #2  0x00649b1c in tasksInitialized ()
 #3  0x005d5057 in newTask (worker=rtsFalse) at rts\Task.c:81
 #4  0x005d4e9f in allocTask () at rts\Task.c:81
 #5  0x005d51d0 in newBoundTask () at rts\Task.c:81
 #6  0x005d62e2 in rts_lock () at rts\RtsAPI.c:478
 #7  0x005c54d0 in hs_add_root (init_root=0x401538 <__stginit_ZCMain>)
     at rts\RtsStartup.c:130
 #8  0x005c54c3 in startupHaskell (argc=1, argv=0x3f2520,
     init_root=0x401538 <__stginit_ZCMain>) at rts\RtsStartup.c:130
 #9  0x005ba709 in real_main () at rts\RtsMain.c:50
 #10 0x005ba8d2 in hs_main (argc=3, argv=0x3f2520,
     main_init=0x401538 <__stginit_ZCMain>, main_closure=0x5f7034)
     at rts\RtsMain.c:113
 #11 0x00401570 in main ()
 }}}
 This isn't a regression, so I don't expect to dig deeper before the next
 major release.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3390#comment:5>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to