Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

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

by Your Mother (Archbishop)
on Jul 29, 2012 at 23:10 UTC ( [id://984319]=note: print w/replies, xml ) Need Help??


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

Am I overlooking some important detail?

Simple logic. :P

Proposition: You can't get segfaults with pure Perl. Response: I disagree: code sample

Replies are listed 'Best First'.
Re^5: How to access the contents of a specific memory address?
by pat_mc (Pilgrim) on Jul 30, 2012 at 19:12 UTC
    Not sure I am finding your response very helpful. At any rate I'll pass your comment on to my bash shell that generated the output I quoted.

    Why can't Perl give rise to a segmentation fault? And what then is the meaning of the system output the given line of code produces?
      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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://984319]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (7)
As of 2024-03-19 02:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found