On Dec 24 2011, 9:07 pm, shlo...@shlomifish.org (Shlomi Fish) wrote:
> Hi Motaz,
>
> On Thu, 22 Dec 2011 10:57:48 -0800 (PST)
>
> Motaz SAAD <motaz.s...@gmail.com> wrote:
> > Hello,
>
> > Thanks very much, it is really helpful tool.
>
> You're welcome.
>
> > my script spend 10 min running until I get segmentation fault error,
> > but when I traced my script and it spend 2 days and still running !!!
> > I run tracing using -d flag (perl -d:Trace p.pl)
> > is this normal ?
>
> Well, the "-d:Trace" flag slows down the execution, but it shouldn't be such a
> dramatic difference. I guess you've ran into a Heisenbug:
>
> http://en.wikipedia.org/wiki/Unusual_software_bug#Heisenbug
>
> I'm not sure what's causing it, but I guess you can try doing manual traces
> using prints.
>
> Regards,
>
>         Shlomi Fish
>
> --
> -----------------------------------------------------------------
> Shlomi Fish      http://www.shlomifish.org/
> Chuck Norris/etc. Facts -http://www.shlomifish.org/humour/bits/facts/
>
> And the top story for today: wives live longer than husbands because they are
> not married to women.
>     — Colin Mochrie in Who’s Line is it, Anyway?
>
> Please reply to list if it's a mailing list post -http://shlom.in/reply.

Hello,
Thanks for reply,

I traced the code with print statements, I also run the script with -d
option and the debugger pointed to line
  while(defined($frPage = $frPages->next)) {
which cause the segmentation fault !!!
it is very strange that this statement worked thousands of time then
cause segmentation fault !. I am afraid it is a problem of memory or
it is a bug in cpan Parse::MediaWikiDump package

any comments, tips, will be appreciated

thanks
best regards,
Motaz


--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to