From: Blackstone, J. D. <jda...@ci...> - 2003-09-22 12:20:29
|
> -----Original Message----- > From: Roland Giersig [mailto:RGi...@cp...] > Sent: Saturday, September 20, 2003 3:38 AM > To: Joerg Behrend > Cc: exp...@li... > Subject: Re: [Expectperl-discuss] Perl debugger hanging after > expectperl spawn in 5.8.0 > > > Joerg Behrend wrote: > > Unter perl-5.8.0, the perl debugger is hanging after > > issuing the spawn command in the perl test script shown > below (called > > from a terminal window with perl -d). Under perl-5.6.0, > debugging the > > same script works fine. > > I don't think this is an Expect-related problem, I'd rather > guess this > is a problem with the debugger in 5.8.0 given the fact that there are > plans to rewirte it from scratch... > > Spawn does a fork() and this is where the debuggers problems probably > comes from, I'd guess that the debugger also has this problem > with code > that does a simle fork(), without the Expect package loaded. > (Actually > I'm astonished that debugging spawn() works at all in 5.6.0...) I don't recall debugging ever working with Expect.pm in any Perl version I've used. I'm pretty certain I've tried this at least under 5.6.1 and 5.8.0. fork() has always confused the debugger. I think in more recent versions (5.6.1 onward?) work was done to make the debugger handle forks better. Perhaps Expect.pm worked in 5.6.0 and the work done in the debugger to fix fork() for 5.6.0 broke it? jdb |