Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

really no-one has any suggestions?

by tomgracey (Scribe)
on Nov 24, 2010 at 05:37 UTC ( [id://873365]=note: print w/replies, xml ) Need Help??


in reply to segmentation fault when trying to use mozrepl on VPS

I realise this *might* be an operating system/memory issue but at the end of the day it is perl code that is throwing up the error.

I am still stumped. Please help me. *sob*

Replies are listed 'Best First'.
Re: really no-one has any suggestions?
by roboticus (Chancellor) on Nov 24, 2010 at 12:47 UTC

    tomgracey:

    From a casual perusal of the stack dump, it looks like the segfault occurs during cleanup after your code runs. Possibly some things are freed out of order by the libraries and it may not be a serious problem for you. Have you tried putting in some code that does something after the get to see if it works as you expect it to? If everything works and it's just a cleanup bug at the end, you may be able suffer with it (i.e. code your app, report the cleanup bug to the appropriate parties, etc.)

    ...roboticus

      Ah yes...!

      Now I see the trap I fell into. My original code indeed had things after the get - it was supposed to write to a file.

      I was led astray by the fact the file wasn't generated by the original code. i assumed this went in hand with the segfault. However now I look without blinkers I see it is a permission error preventing the write. ie with tweaking it does in fact run to completion as you suggest.

      I never generated a segfault before and it frightened me...

      So you are saying I found a bug and this is NOT MY FAULT? Seriously never happened before..!

      roboticus - big hat off to you. Great diagnosis, very impressive!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (2)
As of 2024-04-20 06:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found