> > If you can reproduce the failure,
>
> Yes redo make test give me same error. I try on another PPC
> linux, (kernel 2.2), same error. If I run test by hand (perl t/...)
> same error.

Mmmmh, strange.

> > I'd appreciate if you could do the following:
> >
> > * Build the module with debugging support:
> >
> >     perl Makefile.PL enable-debug && make
> >
> > * Run "make test" again and see if the warnings test still
> >   crashes.
>
> Damm with enable-debug, I can't do any test because of this:
> Can't load 
>'/home/alb/.cpanplus/5.8.0/build/Convert-Binary-C-0.08/blib/arch/auto/Convert/Binary/C/C.so'
> for module
Convert::Binary::C:
> 
>/home/alb/.cpanplus/5.8.0/build/Convert-Binary-C-0.08/blib/arch/auto/Convert/Binary/C/C.so:
> undefined symbol: g_CT_dbfunc at
> /home/alb/.soft/perl-5.8.0/lib/5.8.0/ppc-linux/DynaLoader.pm line 229.
>   at t/901_memory.t line 19

I'm sure you didn't start with a clean distribution. You
have to "make realclean" before

> >     perl Makefile.PL enable-debug && make

otherwise only the XS part will be rebuilt with debugging
enabled, all the C files won't be compiled again, which
results in exactly the error message you've got. Sorry
I didn't mention this in my first reply, but I'm so used
to making realclean all the time...

> So the only debug I can do is:
>
> [...]
>
> #0  __strtol_internal (nptr=0x0, endptr=0x0, base=0, group=0) at eval.c:36
>
> HTH,

No, unfortunately that doesn't help very much. I still
don't have the slightest clue what's going wrong. There's
a file called "eval.c" in the preprocessor part of my module,
but line 36 is

  #include "mem.h"

which obviously doesn't call strtol(). I've found 4 locations
in my code where strtol() is actually called, but none of them
should be reached at the time where the test crashes.

I guess the strtol() isn't called directly from my code.

Unfortunately I don't have access to a PPC-Linux system to make
the tests on my own. So maybe you could do the following:

* cleanup the distribution

    make realclean

* build with debugging support and symbols

    perl Makefile.PL enable-debug OPTIMIZE=-g && make

* run the test script in GDB, create debug output and backtrace

    gdb perl
    ...
    > run -Mblib t/103_warnings.t debug all >debug.out 2>&1
    ...
    > bt

If that works, please send me the "debug.out" and the output
of the GDB session.

Thanks again!

-- Marcus

Reply via email to