Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^2: perlembed segmentation fault

by prashantktyagi (Scribe)
on Jul 25, 2012 at 09:57 UTC ( #983598=note: print w/ replies, xml ) Need Help??


in reply to Re: perlembed segmentation fault
in thread perlembed segmentation fault

You should be firstly very clear with why segmentation faults occurs. It can occur due to memory leaks, insufficient memory and other memory related issues.


Try with freeing up some space.
Prashant


Comment on Re^2: perlembed segmentation fault
Re^3: perlembed segmentation fault
by 4Xsake (Initiate) on Jul 25, 2012 at 11:03 UTC

    I wish I knew how to be clear why the fault occured: The problem seems to occur in libperl.a and I stronlgly suspect it's when it calls perl_alloc().

    I'll initially rule out memory leaks since my test app currently does nothing other than instantiate and invoke perl.

    Insufficient memory strikes a chord. I currently have a 2GB micro SD card which was initially pretty empty when I successfully ran my app. Since then I installed loads of things and almost filled the SD card (I have about 200MB left), so I certainly have much less disk space now than I had before.

    My confusion is this: I am low on disk space, not ram. As far as I know perl_alloc() requires ram and not SD card space so I can't see how low SD card space would cause a problem.
    I ran 'top' to see if any other processes were hogging ram but almost all of the ram seems to be available.
    I do think you're onto something here with the hole "freeing up space" but I don't understand why. Besides, 200MB is still a lot of disk space for one app.

    I can't delete much on the SD card, plus I'm afraid of deleting the wrong thing. As a stab in the dark, I'll go get a 16GB card from the supermarket and try again. Is this what you had in mind or did you mean freeing up memory some other way?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (9)
As of 2014-12-21 15:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (106 votes), past polls