tkperl segmentation fault 
Author Message
 tkperl segmentation fault

I just can't seem to get tkperl5a4 up and running.

I first tried to follow the INSTALL instructions,
but make gave an error while compiling Tk.a, something
like:

make: can't make target config

So I introduced an extra line with the label "config:"
in the Makefile, so that that section of it now reads:

        $(INSTALLBOOT): $(BOOTSTRAP)

        config:
        # Target for Static Loading:
        static: $(INSTALLSTATIC) $(INSTALLPM)

I did this so that Tk would be loaded statically. When I
did this, "make" and "make depend" ran perfectly in the
perl directory.

However, the example scripts in  ext/Tk/t/* all gave
segmentation faults. On using the Perl de{*filter*}, I found
the offending line:

[ earlier steps deleted ..]

main::(../ext/Tk/t/asyncreadtest:3):    $top = tkinit;
  DB<1> s

  DB<1> s
Tk::tkinit(Tk.pm:24):       local($top);
  DB<1> s
Tk::tkinit(Tk.pm:26):       $display = $ENV{DISPLAY} unless $display;
  DB<1> s
Tk::tkinit(Tk.pm:27):       die "no display argument and no DISPLAY in environment" unless $display;
  DB<1> s
Tk::tkinit(Tk.pm:29):       ($name = $0) =~ s:^[^/]*/:: unless $name;
  DB<1> s
Tk::tkinit(Tk.pm:30):       die 'no name set and $0 not appropriate' unless $name;
  DB<1> s
Tk::tkinit(Tk.pm:32):       $top = init($name, $display, $sync);

  0     'grabcurrent'
  1     'grabrelease'
  2     'grab'
  3     'grabstatus'
  4     'tcleval'
  5     'tclevalfile'
  6     'tclcmd'
  7     'tkinit'
  8     'tkmainloop'
  9     'tkbind'
  10    'tkpack'
  11    'wm'
  12    'focus'
  13    'focusdefault'
  14    'after'
  15    'destroy'
  16    'lower'
  17    'raise'
  18    'waitvar'
  19    'waitvis'
  20    'waitwin'
  21    'update'
  22    'idletasks'
  23    'addasyncio'
  24    'delasyncio'
  25    'EvWref'
  26    'path'
  27    'optadd'
  28    'optclear'
  29    'optget'
  30    'optaddstring'
)

  0     'Button'
  1     'Entry'
  2     'Listbox'
  3     'Scrollbar'
  4     'Scale'
  5     'Menubutton'
  6     'Menu'

  0     'Exporter'
  1     'DynaLoader'
)
  DB<1> s
Tk::tkinit(Tk.pm:32):       $top = init($name, $display, $sync);
  DB<1> s
Segmentation fault

I will be going over this much more carefully this weekend,
but could the fact that $sync is not defined (as shown by the
X command to the Perl De{*filter*}) have anything to do with the
error?

Any help will be really appreciated.

--prashanth



Wed, 19 Mar 1997 08:23:53 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. tkperl segmentation fault...

2. Tkperl 5.000 Segmentation Fault

3. PL_perl_destruct_level = 1 -> segmentation fault

4. Segmentation Fault on Pattern Match?!?!

5. Segmentation fault in perl5.000

6. debugging Segmentation fault

7. perl-5.000 segmentation fault - sort subroutine

8. Perl 5.8.0 Segmentation fault(critical)

9. Segmentation fault in perl 5.8.0

10. Segmentation fault using debugger in perl5b1.

11. Perl 4.036 on DEC-ALPHA-OSF/1 gives Segmentation Fault

12. Segmentation Fault

 

 
Powered by phpBB® Forum Software