Re: Threads and Gtk2



I think I am not freeing up something that I sholuld, any takers?
I am writing a perl-gtk frontend to vmware-mui if anyone is
interested, let me know.

Javier Godinez

Here is my backtrace:
#############
(gdb) backtrace
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb7e889b1 in raise () from /lib/tls/i686/cmov/libc.so.6
#2  0xb7e8a2c9 in abort () from /lib/tls/i686/cmov/libc.so.6
#3  0xb7ec7925 in malloc_set_state () from /lib/tls/i686/cmov/libc.so.6
#4  0xb7ec3275 in free () from /lib/tls/i686/cmov/libc.so.6
#5  0xb71a69f8 in VMControlAuthDestroyConnectParams (s=0x86be550)
    at /build/mts/release/bora-14497/bora/lib/vmcontrol/vmcontrolAuth.c:518
#6  0xb71aa210 in VMControl_VMDestroy (vm=0x86c6bf0)
    at /build/mts/release/bora-14497/bora/lib/vmcontrol/vmcontrolVM.c:640
#7  0xb718933b in XS_VMware__VmPerl__VM_DESTROY ()
   from /usr/local/lib/perl/5.8.7/auto/VMware/VmPerl/VmPerl.so
#8  0x080c406d in Perl_pp_entersub ()
#9  0x08060cfd in Perl_get_cv ()
#10 0x080646ee in Perl_call_sv ()
#11 0x080c6a4d in Perl_sv_clear ()
#12 0x080c7253 in Perl_sv_free ()
#13 0x080c59d3 in Perl_sv_add_arena ()
#14 0x080c5a1f in Perl_sv_clean_objs ()
#15 0x08066484 in perl_destruct ()
#16 0xb7003517 in Perl_ithread_destruct ()
   from /usr/lib/perl/5.8/auto/threads/threads.so
#17 0xb7003929 in ithread_mg_free ()
   from /usr/lib/perl/5.8/auto/threads/threads.so
#18 0x080c742e in Perl_sv_unmagic ()
#19 0xb7004a9a in Perl_ithread_DESTROY ()
   from /usr/lib/perl/5.8/auto/threads/threads.so
#20 0xb7005538 in XS_threads_DESTROY ()
   from /usr/lib/perl/5.8/auto/threads/threads.so
#21 0x080c406d in Perl_pp_entersub ()
#22 0x08060cfd in Perl_get_cv ()
#23 0x080646ee in Perl_call_sv ()
#24 0x080c6a4d in Perl_sv_clear ()
#25 0x080c7253 in Perl_sv_free ()
#26 0x080c59d3 in Perl_sv_add_arena ()
#27 0x080c5a1f in Perl_sv_clean_objs ()
#28 0x08066484 in perl_destruct ()
#29 0x0805fd9a in main ()
#####################################

On 10/20/05, muppet <scott asofyet org> wrote:

Javier Godinez said:
Thanks ofey, it works now, I really appreciate your help...

I don't think this is releated but has anybody seen an error like this:

*** glibc detected *** free(): invalid pointer: 0x086a69c8 ***

It occours when I call  Gtk2->main_quit;
(Not in this example, but the application I am writing)

Two ways to track that down:

  $ MALLOC_CHECK_=2  gdb perl
  (gdb) r myscript.pl
  ... script will abort() on the bad free() and drop you at the
      gdb prompt:
  (gdb) backtrace
  <this is the info we need>

or:

  $ valgrind --tool=memcheck --num-callers=50 perl myscript.pl >log 2>&1
  ... there will be very helpful information in log.


Works best if you have debugging symbols, but not completely necessary.

--
muppet <scott at asofyet dot org>

_______________________________________________
gtk-perl-list mailing list
gtk-perl-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-perl-list




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