[GHC] #14669: Executable finishing via unhandled exception results in segmentation fault on 32 bit Windows

GHC ghc-devs at haskell.org
Sun Jan 14 23:23:31 UTC 2018


#14669: Executable finishing via unhandled exception results in segmentation fault
on 32 bit Windows
-----------------------------------+----------------------------------
        Reporter:  sergv           |                Owner:  (none)
            Type:  bug             |               Status:  infoneeded
        Priority:  normal          |            Milestone:
       Component:  Runtime System  |              Version:  8.2.1
      Resolution:                  |             Keywords:
Operating System:  Windows         |         Architecture:  x86
 Type of failure:  Runtime crash   |            Test Case:
      Blocked By:                  |             Blocking:
 Related Tickets:                  |  Differential Rev(s):
       Wiki Page:                  |
-----------------------------------+----------------------------------

Comment (by Phyx-):

 This seems like a genuine segfault to me.

 {{{
 CONTEXT:  (.ecxr)
 eax=02703818 ebx=00527150 ecx=02700040 edx=02702f04 esi=00000001
 edi=02702f00
 eip=004c4343 esp=0028bcac ebp=02703804 iopl=0         nv up ei pl nz na pe
 nc
 cs=0023  ss=002b  ds=002b  es=002b  fs=0053  gs=002b
 efl=00010206
 HW+0xc4343:
 004c4343 89442440        mov     dword ptr [esp+40h],eax
 ss:002b:0028bcec=????????
 Resetting default scope
 WARNING: Stack overflow detected. The unwound frames are extracted from
 outside normal stack bounds.

 FAULTING_IP:
 HW+c4343
 004c4343 89442440        mov     dword ptr [esp+40h],eax

 EXCEPTION_RECORD:  (.exr -1)
 ExceptionAddress: 004c4343 (HW+0x000c4343)
    ExceptionCode: c0000005 (Access violation)
   ExceptionFlags: 00000000
 NumberParameters: 2
    Parameter[0]: 00000001
    Parameter[1]: 0028bcec
 Attempt to write to address 0028bcec

 DEFAULT_BUCKET_ID:  INVALID_STACK_ACCESS
 }}}

 Something is writing to `$sp+0x40` which seems to be invalid.

 Actually the address `sp` itself is pointing to seems to be invalid.
 Attach the broken binary too please.

-- 
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/14669#comment:9>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list