From: quillion Date: 2003-12-25T04:51:53+09:00 Subject: Re: TkText freezes quillion wrote: > Yukihiro Matsumoto wrote: > >> Hi, >> >> In message "TkText freezes" >> on 03/12/24, quillion writes: >> >> |I have been using this method for some years with Tk but now find it >> |freezing with ruby 1.8.1 (2003-12-05) [i686-linux and in the full app >> |will sometimes segfault and dump core. Works ok with a snapshot from >> |October ruby 1.8.0 (2003-10-02) [i686-linux] >> >> Currently I suspect this is caused by LinuxThread bug. I tried hard >> to solve Nathaniel Talbott's problem, which must be caused by the >> same reason, but I couldn't make complete success. >> >> Can you give us the information about your libpthread version? You >> must using LinuxThread included in glibc, so that glibc version will >> do. Mine was glibc-2.3.2.ds1-10 on Debian/sid. >> >> Of course, it's better to be proven that my suspicion is wrong, since >> it's a lot easier to fix bugs in Ruby. If you have any information >> about this problem, let me know. >> >> The only workaround I know for sure is use libraries compiled without >> -lpthread, if possible. >> >> matz. >> > > My glibc is glibc-2.3.2-14mdk on mandrake 9.2 I have a mandrake 9.0 > I can boot into I'll try that > > Neil On Mandrake 9.0 glibc-2.2.5-16mdk seg faults far easier on second key press rather than freezing. bt below Thanks very much for the advice, I feel rather honoured :-)) Program received signal SIGSEGV, Segmentation fault. 0x400e4427 in malloc () from /lib/i686/libc.so.6 (gdb) bt #0 0x400e4427 in malloc () from /lib/i686/libc.so.6 #1 0x400e4262 in malloc () from /lib/i686/libc.so.6 #2 0x403961df in TclpAlloc () from /usr/lib/libtcl8.3.so #3 0x4039ac4e in Tcl_Alloc () from /usr/lib/libtcl8.3.so #4 0x4035b492 in TkTextCharLayoutProc () from /usr/lib/libtk8.3.so #5 0x40357b8f in TkTextFreeDInfo () from /usr/lib/libtk8.3.so #6 0x4035806d in TkTextFreeDInfo () from /usr/lib/libtk8.3.so #7 0x4035b009 in TkTextPixelIndex () from /usr/lib/libtk8.3.so #8 0x403601a1 in TkTextPickCurrent () from /usr/lib/libtk8.3.so #9 0x40358fde in TkTextFreeDInfo () from /usr/lib/libtk8.3.so #10 0x403d964b in TclServiceIdle () from /usr/lib/libtcl8.3.so #11 0x403cbf08 in Tcl_DoOneEvent () from /usr/lib/libtcl8.3.so #12 0x40015b49 in lib_eventloop_core (check_root=1, check_var=0x0) at tcltklib.c:426 #13 0x40015e60 in lib_eventloop_main (check_rootwidget=2) at tcltklib.c:520 #14 0x0805aa5a in rb_ensure (b_proc=0x40015e30 , data1=2, e_proc=0x40015e80 , data2=0) at eval.c:4694 #15 0x40016008 in lib_eventloop_launcher (check_rootwidget=2) at tcltklib.c:555 #16 0x40016073 in lib_mainloop (argc=1, argv=0xbfffe690, self=1076020976) at tcltklib.c:576 #17 0x080661d6 in call_cfunc (func=0x40016030 , recv=1076020976, len=135944632, argc=1, argv=0x4018e690) at eval.c:4900 #18 0x0805b41f in rb_call0 (klass=1076020196, recv=1076020976, id=14393, oid=2, argc=1, argv=0xbfffe690, body=0x4022c358, nosuper=0) at eval.c:5037 #19 0x0805bc47 in rb_call (klass=1076020196, recv=1076020976, mid=14393, argc=1, argv=0xbfffe690, scope=0) at eval.c:5258 #20 0x080570dd in rb_eval (self=1075972236, n=0x2) at eval.c:3055 #21 0x0805b70f in rb_call0 (klass=1076005056, recv=1075972236, id=14393, oid=2, argc=0, argv=0x0, body=0x4027dc08, nosuper=0) at eval.c:5165 #22 0x0805bc47 in rb_call (klass=1076005056, recv=1075972236, mid=14393, argc=0, argv=0x0, scope=0) at eval.c:5258 #23 0x080570dd in rb_eval (self=1075604024, n=0x2) at eval.c:3055 #24 0x08053845 in ruby_exec () at eval.c:1407 #25 0x08053895 in ruby_run () at eval.c:1428 #26 0x08051c41 in main () at main.c:50 #27 0x4008f082 in __libc_start_main () from /lib/i686/libc.so.6 Happy Christmas again to all Neil