www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - Compiler crashes building phobos win 2k

reply Ant <Ant_member pathlink.com> writes:
Compiler crashes building phobos win 2k
on std.format

a dialog box pops up say saying an error log is being created.
where is it!!!!!!?
does it contain usefull information?
is it the stderr?
I get no messages on the stdout (I guess it's call stdout on windows).


C:\devel\dmd\src\phobos>\devel\dm\bin\make -fwin32.mak
\dmd\bin\dmd -c -O -release std\format.d

--- errorlevel -1073741819

C:\devel\dmd\src\phobos>\dmd\bin\dmd -c -O -release std\format.d

C:\devel\dmd\src\phobos>\dmd\bin\dmd -c -O -release std\format.d -v
parse     format
semantic  format
semantic2 format
semantic3 format


Ant
Oct 10 2004
parent reply Regan Heath <regan netwin.co.nz> writes:
On Mon, 11 Oct 2004 03:49:41 +0000 (UTC), Ant <Ant_member pathlink.com> 
wrote:

 Compiler crashes building phobos win 2k
 on std.format

 a dialog box pops up say saying an error log is being created.
 where is it!!!!!!?
Go Start|Run, type "drwtsn32", click "ok". That should run DrWatson, look in the specified "Log File Path" for a file called drwtsn32.log, in there should be the crash information possibly including the stack.
 does it contain usefull information?
Sometimes, depends whether the binary contains debug symbols or not.
 is it the stderr?
Nope.
 I get no messages on the stdout (I guess it's call stdout on windows).
Yes it is, no surprise that you got no messages, it sounds like it just died.

 C:\devel\dmd\src\phobos>\devel\dm\bin\make -fwin32.mak
 \dmd\bin\dmd -c -O -release std\format.d

 --- errorlevel -1073741819

 C:\devel\dmd\src\phobos>\dmd\bin\dmd -c -O -release std\format.d

 C:\devel\dmd\src\phobos>\dmd\bin\dmd -c -O -release std\format.d -v
 parse     format
 semantic  format
 semantic2 format
 semantic3 format

If I execute the same line as you have above I don't get a crash. What version of DMD do you have? Have you modified the std/format.d file? If you have could you post it here, someone can give it a go too (I am just leaving work as I write this..) Regan -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
Oct 10 2004
parent reply Ant <Ant_member pathlink.com> writes:
In article <opsfouxhem5a2sq9 digitalmars.com>, Regan Heath says...

thanks.

dmd 0.101, win2k.

to be sure I deleted the dm and dmd dirs and rebuild them from the zip files.
same result.
I updated today to SP4. didn't try before updating.
Every thing goes OK on windows XP, just confirmed it.

Ant

-------------------------------------------------------

Microsoft (R) Windows 2000 (TM) Version 5.00 DrWtsn32
Copyright (C) 1985-1999 Microsoft Corp. All rights reserved.



Application exception occurred:
App:  (pid=1060)
When: 10/11/2004   01:11:30.740
Exception number: c0000005 (access violation)

*----> System Information <----*
Computer Name: MAPLE
User Name: Antonio
Number of Processors: 1
Processor Type: x86 Family 6 Model 5 Stepping 2
Windows 2000 Version: 5.0
Current Build: 2195
Service Pack: 4
Current Type: Uniprocessor Free
Registered Organization: 
Registered Owner: maple

*----> Task List <----*
0 Idle.exe
8 System.exe
136 SMSS.exe
164 CSRSS.exe
184 WINLOGON.exe
212 SERVICES.exe
224 LSASS.exe
424 svchost.exe
448 spoolsv.exe
480 svchost.exe
528 regsvc.exe
544 mstask.exe
612 vsmon.exe
724 WinMgmt.exe
740 svchost.exe
760 explorer.exe
988 jusched.exe
976 zlclient.exe
968 createcd.exe
1092 qbupdate.exe
1000 CMD.exe
1180 firefox.exe
436 make.exe
1060 dmd.exe
940 DRWTSN32.exe
0 _Total.exe

(00400000 - 004D4000) 
(77F80000 - 77FFD000) 
(7C570000 - 7C628000) 
(77E10000 - 77E75000) 
(77F40000 - 77F7E000) 

State Dump for Thread Id 0x4b8

eax=00a55330 ebx=0089e3ec ecx=004c2bec edx=009f99e0 esi=0089d090 edi=00000000
eip=00414e42 esp=0012f908 ebp=008638d4 iopl=0         nv up ei pl nz ac pe nc
cs=001b  ss=0023  ds=0023  es=0023  fs=0038  gs=0000             efl=00000212


function: <nosymbols>
00414e22 53               push    ebx
00414e23 e85c6a0700       call    0048b884
00414e28 8b7344           mov     esi,[ebx+0x44]         ds:013182d2=????????
00414e2b 8b460c           mov     eax,[esi+0xc]          ds:01316f76=????????
00414e2e 89430c           mov     [ebx+0xc],eax          ds:013182d2=????????
00414e31 8bcb             mov     ecx,ebx
00414e33 e82d050000       call    00415365
00414e38 8b54243c         mov     edx,[esp+0x3c]         ss:00ba97ef=????????
00414e3c 894304           mov     [ebx+0x4],eax          ds:013182d2=????????
00414e3f 8b7a08           mov     edi,[edx+0x8]          ds:014738c6=????????
FAULT ->00414e42 837f2000         cmp   dword ptr [edi+0x20],0x0
ds:00a79ee6=00160089
00414e46 740c             jz      0041d954
00414e48 8b54243c         mov     edx,[esp+0x3c]         ss:00ba97ef=????????
00414e4c 8b4a08           mov     ecx,[edx+0x8]          ds:014738c6=????????
00414e4f 8b7120           mov     esi,[ecx+0x20]         ds:00f3cad2=????????
00414e52 eb06             jmp     0041d95a
00414e54 8b4a04           mov     ecx,[edx+0x4]          ds:014738c6=????????
00414e57 8b7120           mov     esi,[ecx+0x20]         ds:00f3cad2=????????
00414e5a 31d2             xor     edx,edx
00414e5c 395604           cmp     [esi+0x4],edx          ds:01316f76=????????
00414e5f 750a             jnz     0041a16b
00414e61 53               push    ebx

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


008638D4 00000013 00000000 00862964 00000000 00000000 !<nosymbols> 

*----> Raw Stack Dump <----*
0012f908  00 00 00 00 e0 99 9f 00 - 04 8a 89 00 ec e3 89 00  ................
0012f918  68 31 ab 00 ec e3 89 00 - 08 00 00 00 80 e3 89 00  h1..............
0012f928  a0 38 86 00 00 00 00 00 - 00 00 00 00 00 00 00 00  .8..............
0012f938  00 00 00 00 bc 44 89 00 - da c8 40 00 e0 99 9f 00  .....D.... .....
0012f948  00 00 00 00 e0 99 9f 00 - 00 00 00 00 28 8a 89 00  ............(...
0012f958  48 d5 40 00 e0 99 9f 00 - 28 8a 89 00 28 8a 89 00  H. .....(...(...
0012f968  d7 e5 40 00 e0 99 9f 00 - 00 00 00 00 84 0a 4a 00  .. ...........J.
0012f978  00 00 00 00 70 8a 89 00 - 00 00 00 00 e0 99 9f 00  ....p...........
0012f988  70 8a 89 00 d8 a5 a5 00 - 48 31 ab 00 00 00 00 00  p.......H1......

0012f9a8  f6 fd 40 00 e0 99 9f 00 - 00 00 00 00 e0 99 9f 00  .. .............
0012f9b8  a0 b2 89 00 e0 89 89 00 - e8 f1 86 00 20 00 00 00  ............ ...
0012f9c8  20 31 ab 00 7e 6e 49 00 - 00 00 00 00 cc 98 9f 00   1..~nI.........
0012f9d8  e0 99 9f 00 e0 99 9f 00 - ca 50 42 00 e0 99 9f 00  .........PB.....
0012f9e8  94 8a 89 00 a0 b2 89 00 - d9 8a 42 00 e0 99 9f 00  ..........B.....
0012f9f8  00 00 00 00 94 8a 89 00 - f4 52 a5 00 84 52 89 00  .........R...R..
0012fa08  7b 53 42 00 cc 98 9f 00 - f4 52 a5 00 cc 98 9f 00  {SB......R......
0012fa18  74 89 89 00 c8 b2 89 00 - f4 52 a5 00 25 52 42 00  t........R..%RB.
0012fa28  60 47 86 00 41 01 00 00 - c8 b2 89 00 f4 52 a5 00  `G..A........R..
0012fa38  17 56 42 00 60 47 86 00 - 25 56 42 00 cc 98 9f 00  .VB.`G..%VB.....
Oct 10 2004
next sibling parent Ant <Ant_member pathlink.com> writes:
In article <ckd4v0$khv$1 digitaldaemon.com>, Ant says...
In article <opsfouxhem5a2sq9 digitalmars.com>, Regan Heath says...

thanks.

dmd 0.101
typo - it's 0.102 Ant
Oct 10 2004
prev sibling parent reply "Walter" <newshound digitalmars.com> writes:
Are you saying it does build successfully on WinXP, but fails on Win2K?

"Ant" <Ant_member pathlink.com> wrote in message
news:ckd4v0$khv$1 digitaldaemon.com...
 In article <opsfouxhem5a2sq9 digitalmars.com>, Regan Heath says...

 thanks.

 dmd 0.101, win2k.

 to be sure I deleted the dm and dmd dirs and rebuild them from the zip
files.
 same result.
 I updated today to SP4. didn't try before updating.
 Every thing goes OK on windows XP, just confirmed it.

 Ant

 -------------------------------------------------------

 Microsoft (R) Windows 2000 (TM) Version 5.00 DrWtsn32
 Copyright (C) 1985-1999 Microsoft Corp. All rights reserved.



 Application exception occurred:
 App:  (pid=1060)
 When: 10/11/2004   01:11:30.740
 Exception number: c0000005 (access violation)

 *----> System Information <----*
 Computer Name: MAPLE
 User Name: Antonio
 Number of Processors: 1
 Processor Type: x86 Family 6 Model 5 Stepping 2
 Windows 2000 Version: 5.0
 Current Build: 2195
 Service Pack: 4
 Current Type: Uniprocessor Free
 Registered Organization:
 Registered Owner: maple

 *----> Task List <----*
 0 Idle.exe
 8 System.exe
 136 SMSS.exe
 164 CSRSS.exe
 184 WINLOGON.exe
 212 SERVICES.exe
 224 LSASS.exe
 424 svchost.exe
 448 spoolsv.exe
 480 svchost.exe
 528 regsvc.exe
 544 mstask.exe
 612 vsmon.exe
 724 WinMgmt.exe
 740 svchost.exe
 760 explorer.exe
 988 jusched.exe
 976 zlclient.exe
 968 createcd.exe
 1092 qbupdate.exe
 1000 CMD.exe
 1180 firefox.exe
 436 make.exe
 1060 dmd.exe
 940 DRWTSN32.exe
 0 _Total.exe

 (00400000 - 004D4000)
 (77F80000 - 77FFD000)
 (7C570000 - 7C628000)
 (77E10000 - 77E75000)
 (77F40000 - 77F7E000)

 State Dump for Thread Id 0x4b8

 eax=00a55330 ebx=0089e3ec ecx=004c2bec edx=009f99e0 esi=0089d090
edi=00000000
 eip=00414e42 esp=0012f908 ebp=008638d4 iopl=0         nv up ei pl nz ac pe
nc
 cs=001b  ss=0023  ds=0023  es=0023  fs=0038  gs=0000
efl=00000212
 function: <nosymbols>
 00414e22 53               push    ebx
 00414e23 e85c6a0700       call    0048b884
 00414e28 8b7344           mov     esi,[ebx+0x44]
ds:013182d2=????????
 00414e2b 8b460c           mov     eax,[esi+0xc]
ds:01316f76=????????
 00414e2e 89430c           mov     [ebx+0xc],eax
ds:013182d2=????????
 00414e31 8bcb             mov     ecx,ebx
 00414e33 e82d050000       call    00415365
 00414e38 8b54243c         mov     edx,[esp+0x3c]
ss:00ba97ef=????????
 00414e3c 894304           mov     [ebx+0x4],eax
ds:013182d2=????????
 00414e3f 8b7a08           mov     edi,[edx+0x8]
ds:014738c6=????????
 FAULT ->00414e42 837f2000         cmp   dword ptr [edi+0x20],0x0
 ds:00a79ee6=00160089
 00414e46 740c             jz      0041d954
 00414e48 8b54243c         mov     edx,[esp+0x3c]
ss:00ba97ef=????????
 00414e4c 8b4a08           mov     ecx,[edx+0x8]
ds:014738c6=????????
 00414e4f 8b7120           mov     esi,[ecx+0x20]
ds:00f3cad2=????????
 00414e52 eb06             jmp     0041d95a
 00414e54 8b4a04           mov     ecx,[edx+0x4]
ds:014738c6=????????
 00414e57 8b7120           mov     esi,[ecx+0x20]
ds:00f3cad2=????????
 00414e5a 31d2             xor     edx,edx
 00414e5c 395604           cmp     [esi+0x4],edx
ds:01316f76=????????
 00414e5f 750a             jnz     0041a16b
 00414e61 53               push    ebx

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


 008638D4 00000013 00000000 00862964 00000000 00000000 !<nosymbols>

 *----> Raw Stack Dump <----*
 0012f908  00 00 00 00 e0 99 9f 00 - 04 8a 89 00 ec e3 89 00
................
 0012f918  68 31 ab 00 ec e3 89 00 - 08 00 00 00 80 e3 89 00
h1..............
 0012f928  a0 38 86 00 00 00 00 00 - 00 00 00 00 00 00 00 00
.8..............
 0012f938  00 00 00 00 bc 44 89 00 - da c8 40 00 e0 99 9f 00
.....D.... .....
 0012f948  00 00 00 00 e0 99 9f 00 - 00 00 00 00 28 8a 89 00
............(...
 0012f958  48 d5 40 00 e0 99 9f 00 - 28 8a 89 00 28 8a 89 00
H. .....(...(...
 0012f968  d7 e5 40 00 e0 99 9f 00 - 00 00 00 00 84 0a 4a 00
.. ...........J.
 0012f978  00 00 00 00 70 8a 89 00 - 00 00 00 00 e0 99 9f 00
....p...........
 0012f988  70 8a 89 00 d8 a5 a5 00 - 48 31 ab 00 00 00 00 00
p.......H1......
 0012f998  23 d6 40 00 e0 99 9f 00 - e0 99 9f 00 70 8a 89 00
 0012f9a8  f6 fd 40 00 e0 99 9f 00 - 00 00 00 00 e0 99 9f 00
.. .............
 0012f9b8  a0 b2 89 00 e0 89 89 00 - e8 f1 86 00 20 00 00 00  ............
...
 0012f9c8  20 31 ab 00 7e 6e 49 00 - 00 00 00 00 cc 98 9f 00
1..~nI.........
 0012f9d8  e0 99 9f 00 e0 99 9f 00 - ca 50 42 00 e0 99 9f 00
.........PB.....
 0012f9e8  94 8a 89 00 a0 b2 89 00 - d9 8a 42 00 e0 99 9f 00
..........B.....
 0012f9f8  00 00 00 00 94 8a 89 00 - f4 52 a5 00 84 52 89 00
.........R...R..
 0012fa08  7b 53 42 00 cc 98 9f 00 - f4 52 a5 00 cc 98 9f 00
{SB......R......
 0012fa18  74 89 89 00 c8 b2 89 00 - f4 52 a5 00 25 52 42 00
t........R..%RB.
 0012fa28  60 47 86 00 41 01 00 00 - c8 b2 89 00 f4 52 a5 00
`G..A........R..
 0012fa38  17 56 42 00 60 47 86 00 - 25 56 42 00 cc 98 9f 00
.VB.`G..%VB.....

Oct 10 2004
parent reply Ant <duitoolkit yahoo.ca> writes:
On Sun, 10 Oct 2004 22:56:35 -0700, Walter wrote:

 Are you saying it does build successfully on WinXP, but fails on Win2K?
yes. the w2k it's an old machine. Ant
Oct 10 2004
parent reply "Walter" <newshound digitalmars.com> writes:
Very strange! Any chance you can minimize the example that causes it?

"Ant" <duitoolkit yahoo.ca> wrote in message
news:pan.2004.10.11.05.59.52.655331 yahoo.ca...
 On Sun, 10 Oct 2004 22:56:35 -0700, Walter wrote:

 Are you saying it does build successfully on WinXP, but fails on Win2K?
yes. the w2k it's an old machine. Ant
Oct 13 2004
next sibling parent Ant <Ant_member pathlink.com> writes:
In article <ckiq9v$2hcm$2 digitaldaemon.com>, Walter says...
Very strange! Any chance you can minimize the example that causes it?
Well, it crashes on std.format compiled by itself. it will be easy to start commenting code until it doesn't crash and then add it back. I'll do it tonight. Ant
Oct 13 2004
prev sibling parent Ant <duitoolkit yahoo.ca> writes:
On Wed, 13 Oct 2004 01:46:37 -0700, Walter wrote:

 Very strange! Any chance you can minimize the example that causes it?
sorry my fault. I was using an old version of dmd. the win32.mak defines DMD=\dmd\bin\dmd my phobos is at \devel\dmd\src\phobos and I had an older dmd version at \dmd\bin\dmd. why don't you define it as DMD=..\..\bin\dmd.exe ? who drops directories on the root anyway!? Ant
Oct 13 2004