Missing the Blindingly Obvious

All off topic discussions go here. Everything from the funny thing your cat did to your favorite tv shows. Non-programming computer questions are ok too.
Post Reply
User avatar
AJ
Member
Member
Posts: 2646
Joined: Sun Oct 22, 2006 7:01 am
Location: Devon, UK
Contact:

Missing the Blindingly Obvious

Post by AJ »

[rant]
I just spent an hour debugging a problem that cause my OS to lock up on programs calling the service interrupt. The cause of the problem? jmp $ :roll:

I started by doing basic putchar('1'), putchar('2')... debugging. I eventually did an objdump. Bochs even *said* the last instruction was JMP $. It told me which routine contains the bug and I still couldnt see it :? . The reason. I indent my assembly code:

Code: Select all

asm_function:
     mov x, y
     ....
ret
and I had done:

Code: Select all

asm_function:
    mov x, y
    ...
jmp $
I just los a *whole hour*. What a prat :roll: .
[/rant]
User avatar
neon
Member
Member
Posts: 1567
Joined: Sun Feb 18, 2007 7:28 pm
Contact:

Post by neon »

I hate it when that happens :)
Post Reply