delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/12/02/09:21:29

Message-ID: <DDBF8286B2E2D211811400902737A77754EA17@GRF202E>
From: Fritsch Alexander <Alexander DOT Fritsch AT icn DOT siemens DOT de>
To: "'djgpp AT delorie DOT com'" <djgpp AT delorie DOT com>
Subject: djgpp and profiling under NT
Date: Thu, 2 Dec 1999 12:43:13 +0100
Importance: high
X-Priority: 1
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2448.0)
Reply-To: djgpp AT delorie DOT com

Hello,
I have just found DJGPP. Please forgive me if this question already has been
answered several times but I looked at the mail archives and the faq and
could not find a solution. Maybe I missed it. 

I downloaded and installed the following archieves:
rhide14b.zip
djdev202.zip
gcc2952b.zip
bnu281b.zip
gpp2952b.zip

My machine is a pentium pro 200 running WinNT 4, ServicePack4.

I compiled my files from rhide. I added -pg for compiler and linker.
If I compile without -pg the program runs fine and is also faster than the
version compiled with BC5. Nice! But my project contains a 8086-CPU-emulator
and I want (and need) to profile this.
But the program compiled with -pg always crashes the Virtual DOS Machine.
It crashes if I run the program from the dos box or from rhide. In rhide I
can do some steps with F8 but then it crashes too. It crashes every time on
another line so I doubt it is a big error in my program. 
(And the program compiled without -pg or compiled with BC5 or compiled with
GCC under (and for) linux runs very stable)


I tried some small test programs with -pg and these programs dont crash.
(But the gprof-output contains only zeros for the timing) I read that I have
to patch itime.c and I did patch it as described, but I still get only
zeros.

So am I doing something terrible wrong? Are the archives I downloaded the
right ones? Or does NT have problems with DJGPP?

Any help would be very welcome.
Kind regards Alexander Fritsch


This is the DrWatson output I get all the times:


Microsoft (R) Windows NT (TM) Version 4.00 DrWtsn32
Copyright (C) 1985-1996 Microsoft Corp. Alle Rechte vorbehalten.



Anwendungsausnahme aufgetreten:
        Anwendung: exe\ntvdm.dbg (pid=214)
        Wann: 12/1/1999 @ 15:37:43.450
        Ausnahmenummer: c0000005 (Zugriffsverletzung)

*----> Systeminformationen <----*
        Computer-Name: GRFW0673
        Benutzername: FA000731
        Prozessoranzahl: 1
        Prozessortyp: x86 Family 6 Model 1 Stepping 9
        Windows NT-Version: 4.0
        Aktuelles Build: 1381
        Service Pack: 4
        Aktueller Typ: Uniprocessor Free
        Firma: Siemens AG
        Besitzer: Siemens AG

*----> Task-Liste <----*
   0 Idle.exe
   2 System.exe
  20 smss.exe
  24 CSRSS.exe
  34 WINLOGON.exe
  40 SERVICES.exe
  43 LSASS.exe
  85 SPOOLSS.exe
 102 fpavsvc.exe
 110 RPCSS.exe
  47 ONDSCHNT.exe
 118 NDDEAGNT.exe
 124 PSTORES.exe
 145 EXPLORER.exe
 148 F-AGNTNT.exe
 150 fpdisp3.exe
  88 NC.exe
 129 PGPtray.exe
 116 Winword.exe
 167 OUTLOOK.exe
 146 MAPISP32.exe
  92 Netscape.exe
  45 NTVDM.exe
 206 CMD.exe
 200 NTVDM.exe
 193 CMD.exe
 214 NTVDM.exe
 205 DRWTSN32.exe
   0 _Total.exe

(0f000000 - 0f0a3000) exe\ntvdm.dbg
(77f70000 - 77fce000) dll\ntdll.dbg
(77f00000 - 77f62000) dll\kernel32.dbg
(77dc0000 - 77dff000) dll\advapi32.dbg
(77e70000 - 77ec4000) dll\user32.dbg
(77ed0000 - 77efc000) dll\gdi32.dbg
(77e10000 - 77e67000) dll\rpcrt4.dbg

Statusabbild f*r Thread-ID 0xd0

eax=00000202 ebx=0f0906c0 ecx=000001d7 edx=000b3328 esi=fffdffff
edi=000b3324
eip=0f003453 esp=0111fe3c ebp=0111fe40 iopl=0         nv up ei pl nz na po
nc
cs=001b  ss=0023  ds=0023  es=01d7  fs=003b  gs=0000
efl=00000206


Funktion: host_CreateThread
        0f003429 8983c40a0000     mov     [ebx+0xac4],eax
ds:0f091184=00000206
        0f00342f 8b83980b0000     mov     eax,[ebx+0xb98]
ds:0f091258=000001d7
        0f003435 8ec0             mov     es,eax
        0f003437 8bbb940b0000     mov     edi,[ebx+0xb94]
ds:0f091254=000b3328
        0f00343d 0f02c0           lar     eax,eax
        0f003440 a900004000       test    eax,0x400000
        0f003445 7503             jnz     host_CreateThread+0x23f (0f00344a)
        0f003447 0fb7ff           movzx   edi,di
        0f00344a 8b83900b0000     mov     eax,[ebx+0xb90]
ds:0f091250=00000202
        0f003450 83ef04           sub     edi,0x4
FEHLER ->0f003453 268907           mov     es:[edi],eax
es:000b3324=00000000
        0f003456 8b838c0b0000     mov     eax,[ebx+0xb8c]
ds:0f09124c=000001cf
        0f00345c 83ef04           sub     edi,0x4
        0f00345f 268907           mov     es:[edi],eax
es:000b3324=00000000
        0f003462 8b83880b0000     mov     eax,[ebx+0xb88]
ds:0f091248=0000da8b
        0f003468 83ef04           sub     edi,0x4
        0f00346b 268907           mov     es:[edi],eax
es:000b3324=00000000
        0f00346e 83ef04           sub     edi,0x4
        0f003471 8b83840b0000     mov     eax,[ebx+0xb84]
ds:0f091244=000b33d0
        0f003477 268907           mov     es:[edi],eax
es:000b3324=00000000
        0f00347a 06               push    es
        0f00347b 57               push    edi

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

FramePtr ReturnAd Param#1  Param#2  Param#3  Param#4  Function Name
0111fe40 0f00256b 00140028 01780200 7ffdf000 00000000
ntvdm!host_CreateThread 
0111ff3c 0f007de1 ffffffff 0111ff80 0f00c3db 00000002
ntvdm!VDDAllocateDosHandle 
0111ff48 0f00c3db 00000002 01780200 00140028 0012f798 ntvdm!setCL 
0111ff80 0f00e9a5 00000002 01780200 01780230 00140028 ntvdm!demClientErrorEx

0111ffc0 77f1ba3c 00140028 0012f798 7ffdf000 c0000005 ntvdm!getES 
0111fff0 00000000 0f00e8d3 00000000 00000000 77fb5ab0
kernel32!GetProcessPriorityBoost 
00000000 0070018b 04750016 0070018b 0070018b 020e06b9 ntvdm!<nosymbols> 

*----> Raw Stack Dump <----*
0111fe3c  00 00 00 00 3c ff 11 01 - 6b 25 00 0f 28 00 14 00
....<...k%..(...
0111fe4c  00 02 78 01 00 f0 fd 7f - 00 00 00 00 00 00 00 00
..x.............
0111fe5c  00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00
................
0111fe6c  00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00
................
0111fe7c  00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00
................
0111fe8c  00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00
................
0111fe9c  00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00
................
0111feac  00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00
................
0111febc  00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00
................
0111fecc  00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00
................
0111fedc  00 00 00 00 00 00 00 00 - 3b 00 00 00 23 00 00 00
........;...#...
0111feec  23 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00
#...............
0111fefc  00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00
................
0111ff0c  00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00
................
0111ff1c  00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00
................
0111ff2c  00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00
................
0111ff3c  48 ff 11 01 e1 7d 00 0f - ff ff ff ff 80 ff 11 01
H....}..........
0111ff4c  db c3 00 0f 02 00 00 00 - 00 02 78 01 28 00 14 00
..........x.(...
0111ff5c  98 f7 12 00 00 f0 fd 7f - ff ff ff ff 58 ff 11 01
............X...
0111ff6c  84 fc 11 01 b0 ff 11 01 - a9 aa 01 0f f0 24 05 0f
.............$..

Statusabbild f*r Thread-ID 0xdd

eax=0f039262 ebx=00000000 ecx=0111fdfc edx=00000000 esi=00000001
edi=00000000
eip=77f7824b esp=01c7fef4 ebp=01c7ff88 iopl=0         nv up ei pl zr na po
nc
cs=001b  ss=0023  ds=0023  es=0023  fs=0038  gs=0000
efl=00000246


Funktion: NtWaitForMultipleObjects
        77f78240 b8c4000000       mov     eax,0xc4
        77f78245 8d542404         lea     edx,[esp+0x4]
ss:02b9e8fb=????????
        77f78249 cd2e             int     2e
        77f7824b c21400           ret     0x14
        77f7824e 8bc0             mov     eax,eax

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

FramePtr ReturnAd Param#1  Param#2  Param#3  Param#4  Function Name
01c7ff88 0f0392af 0111fe64 77f86a29 00000000 ffffffff
ntdll!NtWaitForMultipleObjects 
01c7ffb8 77f04f3e 00000000 0111fe64 77f86a29 00000000 ntvdm!host_simulate 
01c7ffec 00000000 0f039262 00000000 00000000 00000007 kernel32!lstrcmpiW 
00000000 0070018b 04750016 0070018b 0070018b 020e06b9 ntvdm!<nosymbols> 

*----> Raw Stack Dump <----*
01c7fef4  35 93 03 0f 02 00 00 00 - 7c ff c7 01 01 00 00 00
5.......|.......
01c7ff04  01 00 00 00 00 00 00 00 - 00 00 00 00 ff ff ff ff
................
01c7ff14  00 00 00 00 10 00 00 00 - 00 00 00 00 e1 34 ed 77
.............4.w
01c7ff24  b5 1b fb 5f 00 00 00 00 - 01 00 00 00 17 00 01 00
..._............
01c7ff34  00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00
................
01c7ff44  00 00 00 00 00 00 00 00 - 34 00 00 c0 e4 3d e2 fd
........4....=..
01c7ff54  c0 91 36 83 e0 db b0 80 - 3d ff 19 80 e4 3d e2 fd
..6.....=....=..
01c7ff64  9c 3e e2 fd fe d1 f1 77 - 48 00 00 00 03 00 00 00
.>.....wH.......
01c7ff74  7c ff c7 01 04 00 00 00 - 2c 00 00 00 54 00 00 00
|.......,...T...
01c7ff84  01 00 00 00 b8 ff c7 01 - af 92 03 0f 64 fe 11 01
............d...
01c7ff94  29 6a f8 77 00 00 00 00 - ff ff ff ff 90 ff c7 01
)j.w............
01c7ffa4  93 74 11 80 dc ff c7 01 - a9 aa 01 0f c0 2e 05 0f
.t..............
01c7ffb4  00 00 00 00 ec ff c7 01 - 3e 4f f0 77 00 00 00 00
........>O.w....
01c7ffc4  64 fe 11 01 29 6a f8 77 - 00 00 00 00 29 6a f8 77
d...)j.w....)j.w
01c7ffd4  c4 ff c7 01 00 a0 09 0f - ff ff ff ff 74 b8 f3 77
............t..w
01c7ffe4  38 d2 f3 77 00 00 00 00 - 00 00 00 00 00 00 00 00
8..w............
01c7fff4  62 92 03 0f 00 00 00 00 - 00 00 00 00 07 00 00 00
b...............
01c80004  01 01 00 00 ee ff ee ff - 00 00 00 00 00 00 77 01
..............w.
01c80014  00 d0 0a 00 00 00 c8 01 - 00 01 00 00 38 00 c8 01
............8...
01c80024  00 00 d8 01 ad 00 00 00 - 01 00 00 00 d8 04 77 01
..............w.

Statusabbild f*r Thread-ID 0xc3

eax=0000003c ebx=0000bf1d ecx=00000001 edx=00000000 esi=00000000
edi=0000d68d
eip=77f7824b esp=01e7ff38 ebp=01e7ff60 iopl=0         nv up ei pl nz ac pe
cy
cs=001b  ss=0023  ds=0023  es=0023  fs=0038  gs=0000
efl=00000213


Funktion: NtWaitForMultipleObjects
        77f78240 b8c4000000       mov     eax,0xc4
        77f78245 8d542404         lea     edx,[esp+0x4]
ss:02d9e93f=????????
        77f78249 cd2e             int     2e
        77f7824b c21400           ret     0x14
        77f7824e 8bc0             mov     eax,eax

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

FramePtr ReturnAd Param#1  Param#2  Param#3  Param#4  Function Name
01e7ff60 0f00353c 0000bf1d 00000003 00000000 00000000
ntdll!NtWaitForMultipleObjects 
01e7ff88 0f005e48 00000003 0f0146ea 00000000 ffffffff
ntvdm!host_CreateThread 
01e7ffb8 77f04f3e 00000000 00000003 0f0146ea 00000000 ntvdm!getCH 
01e7ffec 00000000 0f005dcb 00000000 00000000 00000000 kernel32!lstrcmpiW 
00000000 0070018b 04750016 0070018b 0070018b 020e06b9 ntvdm!<nosymbols> 

*----> Raw Stack Dump <----*
01e7ff38  de 1a 00 0f 02 00 00 00 - c8 05 09 0f 01 00 00 00
................
01e7ff48  01 00 00 00 58 ff e7 01 - 8d d6 00 00 00 00 00 00
....X...........
01e7ff58  de 88 f8 ff ff ff ff ff - 88 ff e7 01 3c 35 00 0f
............<5..
01e7ff68  1d bf 00 00 03 00 00 00 - 00 00 00 00 00 00 00 00
................
01e7ff78  fb 6b 00 00 f8 6f 05 00 - 38 ec ff ff ff ff ff ff
.k...o..8.......
01e7ff88  b8 ff e7 01 48 5e 00 0f - 03 00 00 00 ea 46 01 0f
....H^.......F..
01e7ff98  00 00 00 00 ff ff ff ff - 90 ff e7 01 13 74 11 80
.............t..
01e7ffa8  dc ff e7 01 a9 aa 01 0f - 18 2a 05 0f 00 00 00 00
.........*......
01e7ffb8  ec ff e7 01 3e 4f f0 77 - 00 00 00 00 03 00 00 00
....>O.w........
01e7ffc8  ea 46 01 0f 00 00 00 00 - ea 46 01 0f c4 ff e7 01
.F.......F......
01e7ffd8  a8 00 00 00 ff ff ff ff - 74 b8 f3 77 38 d2 f3 77
........t..w8..w
01e7ffe8  00 00 00 00 00 00 00 00 - 00 00 00 00 cb 5d 00 0f
.............]..
01e7fff8  00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00
................
01e80008  00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00
................
01e80018  00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00
................
01e80028  00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00
................
01e80038  00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00
................
01e80048  00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00
................
01e80058  00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00
................
01e80068  00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00
................



- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019