[Glade-users] [Glade-devel] Crash of glade-perl 0.58



Joachim,

You need to modify the PerlRun.pm, a diff can be found below.

Jim


Thanks for the super-fast report and diff and I have already changed
my development code (eventually will be version 0.59).




Hi,

Just downloaded and tried the 0.58  release.

Running test produced the following error.

 more test.out
PERL_DL_NONLAZY=1 /usr/bin/perl -Iblib/arch -Iblib/lib
-I/usr/lib/perl5/5.6.0/i386-linux -I/usr/lib/perl5/5.6.0 test.pl
Test 1..3 Building a UI from a string of XML
 (in cleanup) Can't access method `DESTROY' in class Glade::PerlRun
We were called from Glade::PerlGenerate, /Glade/PerlGenerate.pm, 280


I modified PerlRun.pm as follows to fix the problem - I believe this is a
correct patch:

diff PerlRun.pm PerlRun.pm~
290c290
<   } elsif($name ne "DESTROY") {
---
  } else {


I am happy to report that the gtkspinbutton bug has disappeared.

Jim


Joachim Backes wrote:

Hi,

having big problems to use glade-perl 0.58. When generating perl code
from my glade file, perl2glade simply crashes.

        Attempt to free unreferenced scalar at /usr/lib/perl5/5.6.0/Carp/Heavy.pm lin
        e 91 during global destruction.
        Carp::longmess_heavy('Can\'t access method `DESTROY\' in class Glade::PerlRun
        ^JWe were ...') called at /usr/lib/perl5/5.6.0/Carp.pm line 120
        Carp::confess('Can\'t access method `DESTROY\' in class Glade::PerlRun^JWe we
        re ...') called at /usr/lib/perl5/site_perl/5.6.0/Glade/PerlRun.pm line 291
        Glade::PerlRun::AUTOLOAD('CODE(0x868a5e4)', 'Glade::PerlRun=HASH(0x866e9f0)',
         'Glade::PerlRun=HASH(0x866e9f0)') called at /usr/lib/perl5/site_perl/5.6.0/G
        lade/PerlRun.pm line 291
        require 0 called at /usr/lib/perl5/site_perl/5.6.0/Glade/PerlRun.pm line 291
        Segmentation fault (core dumped)

It also crashes, when starting it without any input file :-)

_NO_ problems when using glade-perl 0.57.

My environment:

gtk+-1.2.9
LINUX RH 7.1, Kernel 2.4.5
Gtk-Perl-0.7007

The glade file is attached.

Regards

Joachim Backes

--

Joachim Backes <backes rhrk uni-kl de>       | Univ. of Kaiserslautern
Computer Center, High Performance Computing  | Phone: +49-631-205-2438
D-67653 Kaiserslautern, PO Box 3049, Germany | Fax:   +49-631-205-3056
---------------------------------------------+------------------------
WWW: http://hlrwm.rhrk.uni-kl.de/home/staff/backes.html

  ------------------------------------------------------------------------
                         Name: xmotd_about.gld
   xmotd_about.gld       Type: unspecified type (application/octet-stream)
                     Encoding: base64
                  Description: xmotd_about.gld






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]