Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

Re: how to localise a problem?

by McA (Priest)
on Nov 26, 2012 at 14:40 UTC ( #1005677=note: print w/replies, xml ) Need Help??

in reply to how to localise a problem?


that looks like something is accumulating over time. So I would look at objects, variables which are probably used more then once over the time. Probably they are not initialized properly on every run. Another guess is that you expect that a object is shutdown correctly while going out of scope but it doesn't. Check the manual of the "bigger" objects you use.

UPDATE: I just looked at the GraphViz2 (2.06) package. It seems that there is exactly one line where IPC::Run is used:

$self -> dot_input(join('', @{$self -> command -> print} ) . "}\n"); $self -> log(debug => $self -> dot_input); my($stdout, $stderr); IPC::Run::run([$driver, "-T$format"], \$self -> dot_input, \$stdout, \ +$stderr);
So, the dot_input is logged if logging is enabled. Probably the right point to catch the culprit.

Best regards

Replies are listed 'Best First'.
Re^2: how to localise a problem?
by Dave Howorth (Scribe) on Nov 27, 2012 at 12:14 UTC

    Hi McA, thanks for your input. You were quite right about hacking Graphviz vs IPC::Run. I made a change almost identical to what you suggested. Now I'm just waiting for another crash.

    Uninitialised or left-over objects is usually my first thought with this kind of problem (don't ask me how I know!) but I'm not seeing any signs of steady process growth. It's also a rather odd method of crashing for an OOM fault, although it is still a possibility.

    So I'll see what the next lot of diagnostics shows me. Hopefully I won't have to iterate too many times until I find the root cause.

      Have you found the bug. I'm really curious.

      Best regards

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2018-04-20 16:46 GMT
Find Nodes?
    Voting Booth?