flat assembler
Message board for the users of flat assembler.

Index > IDE Development > fasmw 1.69.24 crashes on replacement, cannot reproduce bug

Author
Thread Post new topic Reply to topic
edemko



Joined: 18 Jul 2009
Posts: 549
edemko
ollydbg's window:
Image
Post 26 Oct 2010, 12:30
View user's profile Send private message Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 7725
Location: Kraków, Poland
Tomasz Grysztar
1.69.24 is version of fasm, but not editor. To see the version of interface, look at the bottom of "About" window in fasmw.
As for the report - thanks, however without reproducibility of such bug I am afraid I'm lost in the woods.
Post 26 Oct 2010, 12:40
View user's profile Send private message Visit poster's website Reply with quote
ouadji



Joined: 24 Dec 2008
Posts: 1081
Location: Belgium
ouadji
Code:
UNDO.INC
--------
 or      esi,esi
     jz      segment_for_undo_done
       mov     ebx,[esi]
   mov     eax,[esp+4]
 call    prepare_slot_for_undo_storage
       jc      segment_for_undo_done
       push    edi
 call    allocate_segment
    pop     edi
 mov     ebx,eax
     stosd
       mov     eax,[esp+4]
 stosd
       jc      memory_shortage
     mov     esi,eax
     mov     edi,ebx
     mov     ecx,SEGMENT_LENGTH shr 2

        rep     movsd ;<----------------------------- line 61

    segment_for_undo_done:
      popa
    store_segment_for_undo_ok:
  retn
    prepare_slot_for_undo_storage:
      mov     esi,[undo_data]
     mov     esi,[esi]
   mov     ecx,[esi+4]
 lea     edi,[esi+8]
 repne   scasd
       jne     get_free_slot
       stc
 retn
    get_free_slot:
      mov     ecx,[esi+4]
 lea     edi,[esi+8+ecx*8]
   inc     ecx
 cmp     ecx,SEGMENT_DATA_LENGTH/8
   jbe     slot_ok
     push    esi
 call    allocate_segment

    

_________________
I am not young enough to know everything (Oscar Wilde)- Image
Post 26 Oct 2010, 14:45
View user's profile Send private message Send e-mail Reply with quote
edemko



Joined: 18 Jul 2009
Posts: 549
edemko
mention
before the bug: mov ecx,$40
after the bug: ecx=$40
after the bug: edi=ebx=$700
Post 26 Oct 2010, 14:54
View user's profile Send private message Reply with quote
edemko



Joined: 18 Jul 2009
Posts: 549
edemko
seems you are missing stack somewhere
Post 26 Oct 2010, 14:57
View user's profile Send private message Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 7725
Location: Kraków, Poland
Tomasz Grysztar
ouadji: I know where it is, but that is not the problem. The difficulty comes from the fact that this is most probably result of data corruption that occured elsewhere, maybe even at different time.

edemko: it is $D00700, not $700.
Post 26 Oct 2010, 15:44
View user's profile Send private message Visit poster's website Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17279
Location: In your JS exploiting you and your system
revolution
It could be because of something like this
Post 26 Oct 2010, 15:58
View user's profile Send private message Visit poster's website Reply with quote
edemko



Joined: 18 Jul 2009
Posts: 549
edemko
we have wireless modem right on the system unit

i've had "unresolved" situations many times suspecting all but myself and finally myself was the fault Smile

our pc was grounded, memory was ok, tv was off, sound was on, edemko was smiling
Post 26 Oct 2010, 17:52
View user's profile Send private message Reply with quote
ouadji



Joined: 24 Dec 2008
Posts: 1081
Location: Belgium
ouadji
Quote:
The difficulty comes from the fact that this is most probably result
of data corruption that occured elsewhere, maybe even at different time.
yes, 100% agree, it's often like that!

_________________
I am not young enough to know everything (Oscar Wilde)- Image
Post 26 Oct 2010, 18:59
View user's profile Send private message Send e-mail Reply with quote
edemko



Joined: 18 Jul 2009
Posts: 549
edemko
composing a stub i was lighted with cosmic rays:
recompile all your software, people:
Code:
;1 passes, 0 bytes
;dw ?


;1 passes, 0 bytes
;dw ?,?


;1 passes, 0 bytes
;dw ?
;dw ?


;1 passes, 2 bytes
;dw 0


;1 passes, 4 bytes
;dw ?,0


;1 passes, 2 bytes
;dw 0,?


;1 passes, 0 bytes
;db ?
;dw ?
;dd ?
;dq ?
    
Post 27 Oct 2010, 18:42
View user's profile Send private message Reply with quote
ouadji



Joined: 24 Dec 2008
Posts: 1081
Location: Belgium
ouadji
Code:
A)
mov ax,[toto]
toto dw ?,?

B)
xor al,al
mov [bop-1],al
toto db 1000 dup ?
bop:
    

A) 2 passes 3 bytes
A) 2 passes 5 bytes Shocked

Tomasz, this is not quite normal i think ?
your view ?

_________________
I am not young enough to know everything (Oscar Wilde)- Image
Post 27 Oct 2010, 21:02
View user's profile Send private message Send e-mail Reply with quote
Fanael



Joined: 03 Jul 2009
Posts: 168
Fanael
ouadji wrote:
this is not quite normal i think ?
How come you think it's not normal?
Post 28 Oct 2010, 09:03
View user's profile Send private message Reply with quote
idle



Joined: 06 Jan 2011
Posts: 359
Location: Ukraine
idle
Post 31 Jan 2011, 10:56
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-2020, Tomasz Grysztar. Also on YouTube, Twitter.

Website powered by rwasa.