Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Floating point exception dynamically loading a library



On Tue, May 27, 2008 at 01:38:57PM +1200, Mark Davies wrote:

> I have a bunch of currentish i386 systems with identical /usr/pkg's 
> that includes the p5-PerlMagick-6.3.6.1 package and its dependencies.
> 
> Running "perl ./Core.pm" where Core.pm is:
> 
> -----
> use Image::Magick;
> 1;
> -----
> 
> works fine on all of them _except_ _all_ the XEN3_DOMU systems where 
> it dies with a SIGFPE
> 
>  Program received signal SIGFPE, Arithmetic exception.
>  0xbbbf6a85 in _rtld_symlook_obj () from /usr/libexec/ld.elf_so
> 
> ktrace'ing both the working and failing systems, no significant 
> difference leaps out at me. (ktraces available at 
> http://www.mcs.vuw.ac.nz/~mark/ktrace.out.{good,xen3domu}).
> 
> Can anyone reproduce this? Suggest whats happening?

Assuming that the backtrace is correct, then obj->nbuckets is probably zero
on this line:

        symnum = obj->buckets[hash % obj->nbuckets];

Andrew


Home | Main Index | Thread Index | Old Index