in reply to Segmentation fault

I tried to trace my application by strace -f and I found that error 'Segmentation fault' shows after calling gettimeofday() function.
I found too, that this function consists only into the binary file Event.so (which belong to Tk package) from dir auto.
Maybe this error is bag of Tk::Event?
--------> SV* sv_bless(SV* sv, HV* stash);

Replies are listed 'Best First'.
Re: Re: Segmentation fault
by iburrell (Chaplain) on Apr 03, 2003 at 17:58 UTC
    It is probably a bug in the Event.so shared library. In my experience, segmentation faults with Perl are almost always caused by C extension libraries.

    One thing to check is the versions of the binary modules and the supporting libraries they use. What version of Perl/Tk are you using? Did you build the Tk module yourself or install a packaged distribution? Version mismatches between the module and the support library, and between Perl and the mdoule, always cause problems.

      I use latest varsion Perl/Tk - Tk-800.024 and I installed it from CPAN archive. I'm agree with you maybe this error caused not correct C library.
      Ok, many thanks, I will try to resolve this trouble!
      --------> SV* sv_bless(SV* sv, HV* stash);