All of lore.kernel.org
 help / color / mirror / Atom feed
* Unable to access memory address.
@ 2005-03-24 23:08 J.
  2005-03-25  9:46 ` Frank Kotler
  2005-04-11  3:39 ` Bug in Gas? Randall Hyde
  0 siblings, 2 replies; 8+ messages in thread
From: J. @ 2005-03-24 23:08 UTC (permalink / raw)
  To: linux-assembly

Thursday, March 24 23:54:49

Hello,

I am totally new to asm and have a question. I trying the following
nasm program from the document http://www.leto.net/writing/nasm.txt . 

section .text
 global main

main:
 pop     ebx
 dec     ebx
 pop     ebp
 pop     ebp

When I try to execute it this is what happends.
~: ./program 12 7
Illegal instruction

Some searches on the Internet the only clou's turned up are type of `howto
bufferoverflow' ... Hmmzz.. :( So I decided to use GDB. 

The debugger says:
Cannot access memory at address 0x6d6f682f

What am I doing wrong and how do I make sure that I use the right memory
addresses ?

Thanks a lot..

J.


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2005-04-11  3:39 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-24 23:08 Unable to access memory address J.
2005-03-25  9:46 ` Frank Kotler
2005-03-26 11:18   ` J.
2005-03-26 21:15     ` Problem with nasm Mateusz Kocielski
2005-03-26 22:15       ` Frank Kotler
2005-03-26 23:50       ` Brian Raiter
2005-03-26 23:58         ` Mateusz Kocielski
2005-04-11  3:39 ` Bug in Gas? Randall Hyde

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.