"Undefined subroutine &main:: called." from nowhere??

Discussion in 'Perl Misc' started by Matthias Urlichs, Aug 11, 2004.

  1. This happens when my program ends:

    $ perl -d tools/dbdiff [..arguments..]
    [... set break on last line of tools/dbdiff ...]
    [... c ...]
    [... various regular no-error program output ...]
    main::(tools/dbdiff:449): print STDERR "Exiting\n";
    DB<2> s
    Exiting
    Undefined subroutine &main:: called.
    END failed--call queue aborted at tools/dbdiff line 1.
    Dbase::CODE(0x8633f44)(/opt/ess/pp01/src/datenbank/dbperl/Dbase.pm:859):
    859: print STDERR "PreEnd1\n";

    OK. Needless to say, line 1 contains of "#!/usr/bin/perl" and nothing else.

    So which *CENSORED* unsinglesteppable part of Perl decided to do this??

    $ perl -v
    This is perl, v5.8.4 built for i386-linux-thread-multi

    Any help on where to dig further would be appreciated.

    --
    Matthias Urlichs
     
    Matthias Urlichs, Aug 11, 2004
    #1
    1. Advertising

  2. Addendum:

    > Exiting


    .... and it stops here (endless loop, non-interruptible) when I do this
    with PERLDB_OPTS="NonStop AutoTrace".

    Time to recompile with debugging support. With my luck the problem will
    then go away.
     
    Matthias Urlichs, Aug 11, 2004
    #2
    1. Advertising

  3. Hi, Matthias Urlichs wrote:

    Addendum2:

    > Time to recompile with debugging support. With my luck the problem will
    > then go away.


    debugperl -DltorDRJ reported:
    [... LOTS ...]
    (tools/dbdiff:449) print
    Exiting
    (tools/dbdiff:449) leave
    (tools/dbdiff:0) POPBLOCK scope 2 at pp_hot.c:1800
    Leaving block 0, type BLOCK
    (tools/dbdiff:0) LEAVE scope 2 at pp_hot.c:1837
    (tools/dbdiff:0) LEAVE scope 1 at perl.c:2257
    (tools/dbdiff:0) Setting up jumplevel bffff5d0, was bffffa10
    (tools/dbdiff:0) ENTER scope 1 at perl.c:2126
    (tools/dbdiff:0) ENTER scope 2 at perl.c:2176
    Entering block 0, type EVAL
    (tools/dbdiff:0) Setting up jumplevel bffff430, was bffff5d0

    .... and here it exits.

    Interesting. :-/
     
    Matthias Urlichs, Aug 11, 2004
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Michael Borgwardt

    Empty stack trace/method call from nowhere?

    Michael Borgwardt, Sep 29, 2004, in forum: Java
    Replies:
    3
    Views:
    654
    Michael Borgwardt
    Sep 29, 2004
  2. Werner Lehmann

    Default timezone changes out of nowhere?

    Werner Lehmann, Jun 30, 2005, in forum: Java
    Replies:
    6
    Views:
    10,583
    Werner Lehmann
    Jul 2, 2005
  3. Stephane

    redirecting stdout to nowhere

    Stephane, Mar 6, 2005, in forum: C++
    Replies:
    0
    Views:
    462
    Stephane
    Mar 6, 2005
  4. Richard Kessler

    sys.path - stuff from nowhere?

    Richard Kessler, Jul 22, 2005, in forum: Python
    Replies:
    0
    Views:
    274
    Richard Kessler
    Jul 22, 2005
  5. Replies:
    0
    Views:
    325
Loading...

Share This Page