Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^6: How to access the contents of a specific memory address?

by bulk88 (Priest)
on Jul 30, 2012 at 20:26 UTC ( #984511=note: print w/replies, xml ) Need Help??


in reply to Re^5: How to access the contents of a specific memory address?
in thread How to access the contents of a specific memory address?

You are asking why does null pointer (or something near null pointer such as memory address 1), causes a segmentation fault. It is that way because null pointer has caused segmentation fault since the begin of computers in the 20th century, decades ago ( see http://en.wikipedia.org/wiki/Segmentation_fault and http://en.wikipedia.org/wiki/Null_pointer#Null_pointer). You may be also asking, why does an example that is intended to crash the perl interp crash the perl interp. The answer to that is, because it is an example to crash the perl interp. A different question is, why does the perl interp crash from that example, read my second sentence.
  • Comment on Re^6: How to access the contents of a specific memory address?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://984511]
help
Chatterbox?
[ambrus]: Sometimes it's easier to just match elements in ways other than xpath, like directly with perl code.
[marto]: this is a cheap hack, a script that doesn't need to run for long, using WWW::Mechanize:: Firefox to drive some awful interface.
[marto]: if it were anything more serious I'd spend more time looking into it properly :P

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (8)
As of 2016-12-08 10:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (140 votes). Check out past polls.