flat assembler
Message board for the users of flat assembler.

Index > IDE Development > Bug Report, with save dialog

Author
Thread Post new topic Reply to topic
madmatt



Joined: 07 Oct 2003
Posts: 1045
Location: Michigan, USA
madmatt 15 Dec 2005, 16:32
This bug crops up from time to time and cause fasmw to crash, It happens in the save dialog, when this crash happens the filename in the 'filename:' text box is trashed, then sooner rather than later fasmw will crash. The crash dump below should help in solving this mystery.

Code:
*----> State Dump for Thread Id 0xac4 <----*

eax=00000001 ebx=00a40000 ecx=0006f5ec edx=7c90eb94 esi=00a40000 edi=00000000
eip=0040e35d esp=0006f63c ebp=0006f8d4 iopl=0  nv up ei pl nz na po nc
cs=001b  ss=0023  ds=0023  es=0023  fs=003b  gs=0000             efl=00000206

*** ERROR: Module load completed but symbols could not be loaded for C:\FASMWIN - DirectX Library\FASMW.EXE
function: FASMW
        0040e2fa ffff             ???
        0040e2fc 89c7             mov     edi,eax
        0040e2fe 31c0             xor     eax,eax
        0040e300 b904000000       mov     ecx,0x4
        0040e305 f3ab             rep     stosd
        0040e307 b820202020       mov     eax,0x20202020
        0040e30c b93c000000       mov     ecx,0x3c
        0040e311 f3ab             rep     stosd
        0040e313 31c0             xor     eax,eax
        0040e315 8985a8fdffff     mov     [ebp-0x258],eax
        0040e31b 898588fdffff     mov     [ebp-0x278],eax
        0040e321 898594fdffff     mov     [ebp-0x26c],eax
        0040e327 40               inc     eax
        0040e328 898598fdffff     mov     [ebp-0x268],eax
        0040e32e 8985a4fdffff     mov     [ebp-0x25c],eax
        0040e334 898584fdffff     mov     [ebp-0x27c],eax
        0040e33a e838000000       call    FASMW+0xe377 (0040e377)
        0040e33f 0f821c010000     jb      FASMW+0xe461 (0040e461)
        0040e345 89851cfeffff     mov     [ebp-0x1e4],eax
        0040e34b 89c7             mov     edi,eax
        0040e34d 31c0             xor     eax,eax
        0040e34f b940000000       mov     ecx,0x40
        0040e354 f3ab             rep     stosd
        0040e356 c3               ret
        0040e357 8bb578fdffff     mov     esi,[ebp-0x288]
FAULT ->0040e35d 8b1e             mov     ebx,[esi]         ds:0023:00a40000=????????
        0040e35f 89f0             mov     eax,esi
        0040e361 e8f3f9ffff       call    FASMW+0xdd59 (0040dd59)
        0040e366 89de             mov     esi,ebx
        0040e368 09f6             or      esi,esi
        0040e36a 75f1             jnz     FASMW+0xe35d (0040e35d)
        0040e36c c78578fdffff00000000 mov dword ptr [ebp-0x288],0x0
        0040e376 c3               ret
        0040e377 8b8508feffff     mov     eax,[ebp-0x1f8]
        0040e37d 3b850cfeffff     cmp     eax,[ebp-0x1f4]
        0040e383 740c             jz      FASMW+0xe391 (0040e391)
        0040e385 818508feffff00010000 add dword ptr [ebp-0x1f8],0x100
        0040e38f f8               clc
        0040e390 c3               ret
        0040e391 53               push    ebx
        0040e392 56               push    esi
        0040e393 8b9d14feffff     mov     ebx,[ebp-0x1ec]
        0040e399 8bb518feffff     mov     esi,[ebp-0x1e8]
        0040e39f 83bd10feffff10   cmp     dword ptr [ebp-0x1f0],0x10
        0040e3a6 721b             jb      FASMW+0xe3c3 (0040e3c3)
        0040e3a8 39de             cmp     esi,ebx
        0040e3aa 0f8488000000     je      FASMW+0xe438 (0040e438)
        0040e3b0 833eff           cmp     dword ptr [esi],0xffffffff
        0040e3b3 7465             jz      FASMW+0xe41a (0040e41a)
        0040e3b5 81c600010000     add     esi,0x100
        0040e3bb 3bb518feffff     cmp     esi,[ebp-0x1e8]
    
Post 15 Dec 2005, 16:32
View user's profile Send private message Reply with quote
Vasilev Vjacheslav



Joined: 11 Aug 2004
Posts: 392
Vasilev Vjacheslav 16 Dec 2005, 08:24
maybe it caused because you have spaces in path?
Post 16 Dec 2005, 08:24
View user's profile Send private message Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8367
Location: Kraków, Poland
Tomasz Grysztar 16 Dec 2005, 08:33
All I can say from this dump is that editor tried to release the memory block associated with control (for what reason? it should happen to be called only on WM_DESTROY), while this block of memory was already released/bad. Well, it's also possible that due to some stack error this procedure was jumped to, and this would explain the bad data. Is it possible you'd recall at least few final operations that caused this crash?
Post 16 Dec 2005, 08:33
View user's profile Send private message Visit poster's website Reply with quote
madmatt



Joined: 07 Oct 2003
Posts: 1045
Location: Michigan, USA
madmatt 16 Dec 2005, 11:08
Well I found where my post went Smile . I did forget to mention that I had multiple files open. I did hit the F9 key to rerun a program, and because fasmw saves all files before running and app, the save dialog came up, and the filename was trashed, each time I selected the save dialog menuitem, the filname came up trashed. When I clicked the close button, that's when it crashed. If this happens again, I'll take a screen snap shot and post it. Fortunately it doesn't happen too often.
Post 16 Dec 2005, 11:08
View user's profile Send private message Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8367
Location: Kraków, Poland
Tomasz Grysztar 16 Dec 2005, 12:01
If you could find out how to reproduce the bug, this would be the best help in finding it out. But it might be also related to what OS you're running it on. On my XP the fasmw with rewritten asmedit control has never crashed yet.
Post 16 Dec 2005, 12:01
View user's profile Send private message Visit poster's website Reply with quote
madmatt



Joined: 07 Oct 2003
Posts: 1045
Location: Michigan, USA
madmatt 16 Dec 2005, 12:25
I'll see if I can.
Post 16 Dec 2005, 12:25
View user's profile Send private message Reply with quote
madmatt



Joined: 07 Oct 2003
Posts: 1045
Location: Michigan, USA
madmatt 17 Dec 2005, 09:37
I can't repoduce the bug, at least I haven't been able to yet. By the way I'm using windows xp sp2. I won't post this problem again unless I can reproduce the crash.
MadMatt
Post 17 Dec 2005, 09:37
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.