digitalmars.D.bugs - IPF case of circular imports
- Stewart Gordon <smjg_1998 yahoo.com> Oct 26 2005
- Thomas Kuehne <thomas-dloop kuehne.cn> Oct 28 2005
Using DMD 0.136, Windows 98SE.
This case crashes out if you try compiling circular_import_1a.d. Tried
for various array types and enum base types. And declaring the array as
const makes no difference.
----- circular_import_1a.d -----
import circular_import_1b;
enum Qwert : byte { YUIOP, ASFDG }
----- circular_import_1b.d -----
import circular_import_1a;
int[Qwert.max + 1] hkjl = [ 42, 105 ];
----------
DMD caused an invalid page fault in
module DMD.EXE at 0167:00404fb9.
Registers:
EAX=0073260c CS=0167 EIP=00404fb9 EFLGS=00010216
EBX=00882b48 SS=016f ESP=0071fc0c EBP=0073a174
ECX=00000000 DS=016f ESI=0073a174 FS=4b97
EDX=004b02bc ES=016f EDI=0073a174 GS=0000
Bytes at CS:EIP:
8b 49 04 ff 70 0c ff 70 08 e8 8d 8a 09 00 85 c0
Stack dump:
0040a5c0 0073260c 00882b48 00882c68 00734528 0073a174 0041088c 0073a174
00887e04 0073260c 0073a174 00884ed0 0073a174 00882b90 00000000 00734522
----------
Stewart.
--
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS/M d- s:- C++ a->--- UB P+ L E W++ N+++ o K- w++ O? M V? PS-
PE- Y? PGP- t- 5? X? R b DI? D G e++>++++ h-- r-- !y
------END GEEK CODE BLOCK------
My e-mail is valid but not my primary mailbox. Please keep replies on
the 'group where everyone may benefit.
Oct 26 2005
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Stewart Gordon schrieb am 2005-10-26:Using DMD 0.136, Windows 98SE. This case crashes out if you try compiling circular_import_1a.d. Tried for various array types and enum base types. And declaring the array as const makes no difference. ----- circular_import_1a.d ----- import circular_import_1b; enum Qwert : byte { YUIOP, ASFDG } ----- circular_import_1b.d ----- import circular_import_1a; int[Qwert.max + 1] hkjl = [ 42, 105 ]; ---------- DMD caused an invalid page fault in module DMD.EXE at 0167:00404fb9. Registers: EAX=0073260c CS=0167 EIP=00404fb9 EFLGS=00010216 EBX=00882b48 SS=016f ESP=0071fc0c EBP=0073a174 ECX=00000000 DS=016f ESI=0073a174 FS=4b97 EDX=004b02bc ES=016f EDI=0073a174 GS=0000 Bytes at CS:EIP: 8b 49 04 ff 70 0c ff 70 08 e8 8d 8a 09 00 85 c0 Stack dump: 0040a5c0 0073260c 00882b48 00882c68 00734528 0073a174 0041088c 0073a174 00887e04 0073260c 0073a174 00884ed0 0073a174 00882b90 00000000 00734522 ---------- Stewart.
Added to DStress as http://dstress.kuehne.cn/run/i/import_11_A.d http://dstress.kuehne.cn/run/i/import_11_B.d Thomas -----BEGIN PGP SIGNATURE----- iD8DBQFDYiWQ3w+/yD4P9tIRAtPmAKCcdNk9KzNVzFG6ekSHvod3TKGMawCdF6OK xZ5lEKs7yEmvqJSa0NjUhQU= =1YkJ -----END PGP SIGNATURE-----
Oct 28 2005








Thomas Kuehne <thomas-dloop kuehne.cn>