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
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.