TkText freezes

ts wrote:

“q” == quillion me@privacy.net writes:

got it running under gdb cannot get it to segfault

Well, under gdb don’t run it with -d (it’s important because this can slow
down ruby) and try to press key very quickly.

Apparently it’s easier to have a segfault with a “fast” PC (or you must
have a stupid PC like svg to see the problem :-))

Guy Decoux

Thanks Guy you have been most helpfull, my Penetium II is slow by todays
standards :slight_smile: finally managed this,

Program received signal SIGSEGV, Segmentation fault.
0x400e6379 in mallopt () from /lib/i686/libc.so.6
(gdb) r ruple
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: /usr/local/bin/ruby ruple

Program received signal SIGSEGV, Segmentation fault.
st_free_table (table=0x81a65e8) at st.c:219
219 next = ptr->next;
(gdb) bt
#0 st_free_table (table=0x81a65e8) at st.c:219
#1 0x0806c009 in gc_sweep () at gc.c:985
#2 0x0806c5a0 in rb_gc () at gc.c:1351
#3 0x0806b385 in rb_newobj () at gc.c:350
#4 0x080a6eba in str_alloc (klass=1075652732) at string.c:45
#5 0x080a6f1f in str_new (klass=1075652732,
ptr=0x83e57f6 “%b %c %d %f %h %i %k %m %o %p %s %t %w %x %y %A %B
%D %E %K %N %R %S %T %W %X %Y”, len=2)
at string.c:67
#6 0x080a7b63 in rb_str_substr (str=1075890756, beg=1075446760,
len=138303472) at string.c:534
#7 0x080ab410 in rb_str_split_m (argc=1, argv=0xbfff7550,
str=1075890756) at string.c:2642
#8 0x080669d9 in call_cfunc (func=0x80ab140 <rb_str_split_m>,
recv=1075890756, len=136448568, argc=1,
argv=0xbfff7550) at eval.c:4900
#9 0x0805bf62 in rb_call0 (klass=1075652732, recv=1075890756, id=4441,
oid=1075652732, argc=1, argv=0xbfff7550,
body=0x401d214c, nosuper=0) at eval.c:5037
#10 0x0805c292 in rb_call (klass=1075652732, recv=1075890756, mid=4441,
argc=1, argv=0xbfff7550, scope=0)
at eval.c:5258
#11 0x08056057 in rb_eval (self=1076049104, n=0x401d287c) at ruby.h:627
#12 0x08055e86 in rb_eval (self=1076049104, n=0x401d287c) at eval.c:3047
#13 0x08058b42 in rb_eval (self=1076049104, n=0x401d287c) at eval.c:2773
#14 0x0805bd33 in rb_call0 (klass=1076049024, recv=1076049104, id=15137,
oid=1075652732, argc=0, argv=0xbfff89d8,
body=0x40297e6c, nosuper=0) at eval.c:5165
#15 0x0805c292 in rb_call (klass=1076049024, recv=1076049104, mid=15137,
argc=2, argv=0xbfff89d0, scope=0)
at eval.c:5258
#16 0x08056057 in rb_eval (self=1076024764, n=0x401d287c) at ruby.h:627
#17 0x08057bfe in rb_eval (self=1076024764, n=0x401d287c) at eval.c:2828
#18 0x08058167 in rb_eval (self=1076024764, n=0x401d287c) at eval.c:3030
#19 0x08058517 in rb_eval (self=1076024764, n=0x401d287c) at eval.c:3368
#20 0x0805a1e8 in rb_yield_0 (val=1076060384, self=1076024764, klass=0,
flags=1, avalue=2) at eval.c:4270
#21 0x08060557 in proc_invoke (proc=1080044500, args=1076060384, self=6,
klass=1076060384) at ruby.h:627
#22 0x08060686 in proc_call (proc=1080044500, args=1076060384) at
eval.c:7197
#23 0x080669d9 in call_cfunc (func=0x8060670 <proc_call>,
recv=1080044500, len=136448568, argc=29, argv=0x83e63f0)
at eval.c:4900
#24 0x0805bf62 in rb_call0 (klass=1075599292, recv=1080044500, id=5193,
oid=1076060384, argc=29, argv=0x83e63f0,
body=0x401c5730, nosuper=0) at eval.c:5037
#25 0x0805c292 in rb_call (klass=1075599292, recv=1080044500, mid=5193,
argc=29, argv=0x83e63f0, scope=1)
at eval.c:5258
#26 0x0805c5c9 in rb_funcall2 (recv=1076060384, mid=5193, argc=29,
argv=0x83e63f0) at ruby.h:627
#27 0x080541d6 in rb_eval_cmd (cmd=1080044500, arg=1075446760, tcheck=0)
at eval.c:1614
#28 0x402cc981 in tk_eval_cmd (argc=30, argv=0xbfffabb0) at tkutil.c:21
#29 0x080669d9 in call_cfunc (func=0x402cc940 <tk_eval_cmd>,
recv=1076058664, len=136448568, argc=30,
argv=0xbfffabb0) at eval.c:4900
#30 0x0805bf62 in rb_call0 (klass=1076058324, recv=1076058664, id=15665,
oid=5193, argc=30, argv=0xbfffabb0,
body=0x40235898, nosuper=0) at eval.c:5037
#31 0x0805c292 in rb_call (klass=1076058324, recv=1076058664, mid=15665,
argc=30, argv=0xbfffabb0, scope=0)
at eval.c:5258

Neil