Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

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.

Replies are listed 'Best First'.
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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://983598]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (6)
As of 2018-02-21 09:06 GMT
Find Nodes?
    Voting Booth?
    When it is dark outside I am happiest to see ...

    Results (276 votes). Check out past polls.