Opened 10 years ago

Closed 10 years ago

Last modified 45 years ago

#325 closed bug (Fixed)

Profiling broken under windows for ghc-6.4?

Reported by: nobody Owned by: nobody
Priority: normal Milestone:
Component: Profiling Version: None
Keywords: Cc:
Operating System: Architecture:
Type of failure: Test Case:
Blocked By: Blocking:
Related Tickets: Differential Revisions:

Description

If I compile a program with -prof -auto-all every start of 
the program results in an popup that informs me of a 
security break and program termination.

My email is [email protected]

Attached is a copy of what Dr. Watson records.

Change History (5)

comment:1 Changed 10 years ago by simonpj

Logged In: YES 
user_id=50165

I've just installed GHC 6.4 from the download site, and 
compiled hello-world with it, with -prof -auto-all.

Works fine.

So I can't reproduce your problem.  Perhaps you can upload 
a particular failing program? Or try on a different machine?  

Has anyone else seen this?

comment:2 Changed 10 years ago by andreas-haskell

Logged In: YES 
user_id=1239874

Hi!

I just downloaded ghc-6.4 again and installed it again. I also 
installed it in an VMWare. The operating system is win2k 
with service pack 4.

Both time even the "Hallo world" program crashed.

Any help welcome.

Thanks,
Andreas

PS:
My program is:
>main :: IO ()
>main = do     putStr "Hello World!"

and the resulting entry in the Dr. Watson log is:
Anwendungsausnahme aufgetreten:
        Anwendung:  (pid=492)
        Wann: 15.03.05 @ 21:26:55.454
        Ausnahmenummer: c0000005 (Zugriffsverletzung)

*----> Systeminformationen <----*
        Computername: WORKATHOME
        Benutzername: Administrator
        Prozessoranzahl: 1
        Prozessortyp: x86 Family 6 Model 7 Stepping 1
        Windows 2000-Version: 5.0
        Aktuelles Build: 2195
        Service Pack: 4
        Aktueller Typ: Uniprocessor Free
        Firma: 
        Besitzer: 

*----> Taskliste <----*
   0 Idle.exe
   8 System.exe
 136 smss.exe
 164 csrss.exe
 184 winlogon.exe
 212 services.exe
 224 lsass.exe
 404 svchost.exe
 432 SPOOLSV.exe
 464 svchost.exe
 488 mdm.exe
 544 regsvc.exe
 568 mstask.exe
 620 winmgmt.exe
 648 svchost.exe
 296 explorer.exe
 780 rundll32.exe
 972 atiptaxx.exe
 980 winampa.exe
 992 realsched.exe
1020 CTFMON.exe
1080 taskmgr.exe
 748 msiexec.exe
 996 cmd.exe
 492 main.exe
 532 drwtsn32.exe
   0 _Total.exe

(00400000 - 00469000) 
(77880000 - 77901000) 
(77E70000 - 77F36000) 
(78000000 - 78045000) 
(77E00000 - 77E65000) 
(77F40000 - 77F7C000) 
(74FC0000 - 74FC9000) 
(74FA0000 - 74FB4000) 
(79350000 - 793B2000) 
(77D20000 - 77D91000) 
(74F90000 - 74F98000) 
(6C920000 - 6C928000) 
(664B0000 - 66504000) 

Statusabbild für Threadkennung 0x29c

eax=00445e54 ebx=0044b3c8 ecx=00445e54 edx=00000000 
esi=00446590 edi=00ac108c
eip=00000000 esp=0022dec0 ebp=00abf384 iopl=0         nv 
up ei pl nz na po nc
cs=001b  ss=0023  ds=0023  es=0023  fs=0038  
gs=0000             efl=00000206


Funktion: <nosymbols>
FEHLER ->00000000 ???
        00000001 ???
        00000002 ???
        00000003 ???

*----> Stack Back Trace <----*

FramePtr ReturnAd Param#1  Param#2  Param#3  Param#4  
Function Name
0022DEBC 00000000 00000001 00000001 00000000 
00000000 !<nosymbols> 

*----> Raw Stack Dump <----*
0022dec0  00 00 00 00 01 00 00 00 - 01 00 00 00 00 00 00 
00  ................
0022ded0  00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 
00  ................
0022dee0  01 00 00 00 00 00 00 00 - 01 00 00 00 00 00 00 
00  ................
0022def0  00 00 00 00 84 50 44 00 - 05 00 00 00 00 00 00 
00  .....PD.........
0022df00  00 00 00 00 84 50 44 00 - 00 00 00 00 00 00 00 
00  .....PD.........
0022df10  00 00 00 00 00 00 00 00 - 64 17 40 00 00 00 00 
00  ........d.@.....
0022df20  00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 
00  ................
0022df30  00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 
00  ................
0022df40  00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 
00  ................
0022df50  00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 
00  ................
0022df60  00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 
00  ................
0022df70  00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 
00  ................
0022df80  00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 
00  ................
0022df90  00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 
00  ................
0022dfa0  00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 
00  ................
0022dfb0  00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 
00  ................
0022dfc0  00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 
00  ................
0022dfd0  00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 
00  ................
0022dfe0  00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 
00  ................
0022dff0  00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 
00  ................

Statusabbild für Threadkennung 0x17c

eax=00000000 ebx=10afff44 ecx=00000101 edx=00000000 
esi=77894086 edi=000003b4
eip=77894091 esp=10afff28 ebp=10afff4c iopl=0         nv up ei 
ng nz ac po cy
cs=001b  ss=0023  ds=0023  es=0023  fs=0038  
gs=0000             efl=00000297


Funktion: ZwWaitForSingleObject
        77894086 b8ea000000       mov     eax,0xea
        7789408b 8d542404         lea     edx,[esp+0x4]          
ss:115e9e0f=????????
        7789408f cd2e             int     2e
        77894091 c20c00           ret     0xc
        77894094 8a5001           mov     dl,
[eax+0x1]                 ds:00ae9ee6=00
        77894097 3a5101           cmp     dl,
[ecx+0x1]                 ds:00ae9fe7=00
        7789409a 0f8598c7ffff     jne     RtlEqualPrefixSid+0x44 
(77890838)
        778940a0 84d2             test    dl,dl
        778940a2 7410             jz      
RtlQueryAtomInAtomTable+0x31 (77894fb4)
        778940a4 0fb6d2           movzx   edx,dl
        778940a7 33ff             xor     edi,edi
        778940a9 8d72ff           lea     esi,[edx+0xff]         
ds:00ae9ee6=00000000
        778940ac 85f6             test    esi,esi
        778940ae 0f8f04100100     jnle    
RtlEraseUnicodeString+0x4e (778a50b8)
        778940b4 b001             mov     al,0x1

*----> Stack Back Trace <----*

FramePtr ReturnAd Param#1  Param#2  Param#3  Param#4  
Function Name
10AFFF4C 77E81B1B 000003B4 00000014 00000000 
0043C2AD ntdll!ZwWaitForSingleObject 
10AFFFB4 77E7987C 003F2650 00000000 00000000 
003F2650 kernel32!WaitForSingleObject 
10AFFFEC 00000000 00000000 00000000 00000000 
00000000 kernel32!SetThreadExecutionState 

comment:3 Changed 10 years ago by andreas-haskell

Logged In: YES 
user_id=1239874

Forget to mention:

I also compiled with ghc -prof -auto-all again.

Sorry,
Andreas

comment:4 Changed 10 years ago by wilx

Logged In: YES 
user_id=5676

Teh openBinaryFile breaks this program with profiling for me:

module Main where

import System.IO

main :: IO ()
main = 
    do 
    inpf <- openBinaryFile "file.txt" ReadMode
    return ()


Compile with: ghc --make -prof -o testopen testopen.hs

Create empty file.txt and then run with: testopen +RTS -p -RTS 

comment:5 Changed 10 years ago by simonmar

  • Status changed from assigned to closed
Logged In: YES 
user_id=48280

Now fixed.
Note: See TracTickets for help on using tickets.