Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

dprofpp segmentation fault

by jithoosin (Scribe)
on Dec 27, 2005 at 15:32 UTC ( #519345=perlquestion: print w/replies, xml ) Need Help??

jithoosin has asked for the wisdom of the Perl Monks concerning the following question:

Hi monks
i am getting "segmentation fault" when ever i use "dprofpp" in a linux machine. So to find where the error is i copied the "tmon.out" to another linux machine and ran it over there and found out that it was running properly.Could any of the monks tell me what could be the possible reason or help me in correcting the problem. One difference i found out between the 2 linux machines was the perl versions.It was 5.8.0(not working) in one and 5.8.5(working) in another

One more thing noticed was that ther segmentation fault comes when i use "use " in the perl function.But if it was the problem of some libraries then the generated "tmon.out" would not have worked in another linux machine.If i remove the "use" then then "dprofpp" doesnot generate "segFault" but it doesnot give any output.Please help me.

Thanks
Kiran

2005-12-27 Retitled by davido, as per Monastery guidelines
Original title: 'dprofpp'



After reading the first 2 replies i have given a sample code
use strict; print "hello\n";
Now i mean that "use strict" causes the problem. If i remove it out then there is no seg fault. If i use "use AnyModule" that is creating the problem. If i take out "use " then dprofpp will not give any output but doesnot result in seg fault

Replies are listed 'Best First'.
Re: dprofpp segmentation fault
by blazar (Canon) on Dec 27, 2005 at 16:13 UTC

    Sorry for pointing out the obvious, but since 5.8.5 appeared to work on another machine, and 5.8.0 had issues anyway, albeit only under certain OSen, why don't you try upgrading?

    What do you mean exactly with 'when i use "use " in the perl function'? Does it segfault for any script containing even one single use statement? Are you putting a use into a sub? That shouldn't make a difference: you may just be importing syntax after all. Please clarify!

Re: dprofpp segmentation fault
by GrandFather (Saint) on Dec 27, 2005 at 18:31 UTC

    A little sample code often helps. Reduce your code to a sensible minimum that shows the fault and post that.


    DWIM is Perl's answer to Gödel
Re: dprofpp segmentation fault
by diotalevi (Canon) on Dec 27, 2005 at 19:19 UTC

    I'd just like to add that it just sounds like it might not be supported to move tmon.out files between versions of that Devel::IForgetItsName module.

    ⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (3)
As of 2023-02-07 18:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I prefer not to run the latest version of Perl because:







    Results (40 votes). Check out past polls.

    Notices?