Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[text] crash on long lines

27 views
Skip to first unread message

Ian Gay

unread,
May 14, 2012, 3:15:23 PM5/14/12
to
I think I have found a way to crash Tk on linux by
displaying long lines in a text widget. At the moment
I only have access to OpenSuse 11.4. Could people try the
short program below, and see if the problem is more general?

----------------- cut here --------------------
# program to exhibit the text long line crash.
#
# With KDE on Linux, the KDE session crashes and returns to the
# display manager.
#
# there is no crash if [update idletasks] is omitted
#
# Running KDE 3.5 on OpenSuse 11.4
# With tk8.6b2 crash occurs with 895 in the log file.
# 8.5.9 also produces 895
# KDE 4.8 produces same result
# ICEWM also crashes back to display manager with a count of 895
# with a font size of 22, crash at count of 448, vs 895 with size 11.
# Looks like a crash at a fixed pixel width ... 8192?

pack [text .t -width 80 -height 20 -wrap none -font {courier 11}]
set n 0
while {1} {
.t insert end "Q"
update idletasks
set fd [open "tk_crash" w]
incr n
puts $fd $n
close $fd
}


tomás zerolo

unread,
May 14, 2012, 4:43:28 PM5/14/12
to
Ian Gay <g...@sfu.ca> writes:

> I think I have found a way to crash Tk on linux by
> displaying long lines in a text widget. At the moment
> I only have access to OpenSuse 11.4. Could people try the
> short program below, and see if the problem is more general?

Went up to > 10000 for tk 8.4, 8.5 and 8.6. Doesn't crash for me. But
note that this is on a 64 bit system (Debian GNU/Linux Wheezy:
Linux rasputin 3.1.0-1-amd64 #1 SMP Mon Nov 14 08:02:25 UTC 2011 x86_64
GNU/Linux

HTH
-- tomás

Ian Gay

unread,
May 14, 2012, 4:52:17 PM5/14/12
to
Interesting. Mine is also 64 bit. What's your video? Mine is
Intel 965.

Ian

tomás zerolo

unread,
May 17, 2012, 9:11:19 AM5/17/12
to
Ian Gay <g...@sfu.ca> writes:

> tomás zerolo wrote:
>
>> Ian Gay <g...@sfu.ca> writes:
>>
>>> I think I have found a way to crash Tk on linux [...]

>> Went up to > 10000 for tk 8.4, 8.5 and 8.6. Doesn't crash for me. [...]

> Interesting. Mine is also 64 bit. What's your video? Mine is
> Intel 965.

It's VGA compatible controller: Advanced Micro Devices [AMD] nee ATI
Wrestler [Radeon HD 6310] (prog-if 00 [VGA controller]), as reported by
lspci (it's one of those ATI-on-AMD-processor graphics "cards" (an AMD
E-350), on a Lenovo Ideapad S-205

Regards
-- tomás

Ian Gay

unread,
May 17, 2012, 11:44:48 AM5/17/12
to
I now have access to my sandy bridge system, using the on-chip
graphics. The crash does no occur there. I'm kind of suspecting
the video driver on my old core2 system (which crashes) - but it's the
stock OpenSuse driver, and you might imagine it would be
widely known if it were buggy. ???

Ian

--
*********** To reply by e-mail, make w single in address **************

tomás zerolo

unread,
May 19, 2012, 3:50:09 AM5/19/12
to
Ian Gay <g...@sfuu.ca> writes:

> I now have access to my sandy bridge system, using the on-chip
> graphics. The crash does no occur there. I'm kind of suspecting
> the video driver on my old core2 system (which crashes) - but it's the
> stock OpenSuse driver, and you might imagine it would be
> widely known if it were buggy. ???

Random crashes of video drivers due to some exotic things some GUI
toolkits do sometimes are not unheard of. Makes me shudder to think of it.

Regards
-- tomás
0 new messages