I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
Posted on 2010-10-12 23:30:21.383602-07 by nai111ux
segfault on paste, Text, TextUndo, ROText
first of all thank you very much for all who are working on the perl/tk project. I am reporting an issue that is crash related: perl/tk programs segfault when pasting large amounts + of data from the perl/tk window to another program or terminal. I have reproduced this on the following 32-bit i386 systems... Debian (Lenny 5) GNU/Linux (Perl 5 10 0 , Tk 804.029) Debian (Etch 4) GNU/Linux (Perl 5 8 8 , Tk 804.029) //reproduced in multiple window managers.. blackbox, wmaker, kde(etch) //also tested with Tk 804.027502 (Tk-804.027_502.tar.gz) on Debian Etch OpenBSD 4.4 (Perl 5 8 8 , Tk 804.029) OpenBSD 4.7 (Perl 5 10 1 , Tk 804.029) //reproduced in default fvwm window manager and blackbox other systems may be effected also. CentOS seems to not be effected by this bug, however that is installing many gigabytes of software +compared to the minimal systems mentioned above. I tested window managers gnome, kde, blackbox, tw +m, mwm with no crash occurring. I also have a custom 64-bit AMD install of Debian on netbook which did not show the crash.. below is a program used to reproduce the problem, if you can generate 1010 lines and paste it out o +f the program without it crashing then it should be fine and working on target system. #!/usr/bin/perl use Tk; use Tk::ROText; print "number of lines to fill tk window, above 197 for crash..\n> "; chomp($input=<STDIN>); $mw = new MainWindow; $mw->configure(-background=>'#004433',-title=>'r'); $mw->geometry('640x480+74+62'); $ROPrint=$mw->ROText()->pack(); for (1..$input) { $ROPrint->insert('end',"text info text line text text number $_\n"); } MainLoop; steps to reproduce... 1. run the program in a terminal. 2. just enter the number of lines and press enter. 3. right click and select-all. 4. either middle click to your target to emulate unix paste, alternatively right click and go copy, + then in your target program do a paste function. 5. &gt;segfault. on OpenBSD the error is different but still a program crash. In Kde on Debian as s +oon as you select the text it crashes even before the paste. to set up a Debian test machine you can do that quickly in vmware-server using the 150mb netinst .i +so image then just 'apt-get install xorg' and proceed to cpan "install Tk". OpenBSD is also a smal +l installation image 245mb and Tk is easy to install. thanks for reading, this bug is causing problems with my text management program "collusion" availa +ble on sourceforge. currently it is using TextUndo. regards,
Direct Responses: Write a response