[ tktoolkit-Bugs-1288128 ] crash bug in '$text tag configure'

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[ tktoolkit-Bugs-1288128 ] crash bug in '$text tag configure'

SourceForge.net
Bugs item #1288128, was opened at 2005-09-11 17:24
Message generated for change (Comment added) made by hobbs
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=112997&aid=1288128&group_id=12997

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: 18. [text]
Group: current: 8.4.11
Status: Open
Resolution: None
Priority: 9
Submitted By: Nobody/Anonymous (nobody)
>Assigned to: Donal K. Fellows (dkf)
Summary: crash bug in '$text tag configure'

Initial Comment:
In Tk 8.4.11, running the 'tag configure' subcommand on
a text widget for a tag which has not previously
been 'declared', with no arguments, crashes the
program. For example,

  text .t
  .t tag configure foobar

will crash, but

  text .t
  .t tag configure foobar -underline 0
  .t tag configure foobar

will not.

----------------------------------------------------------------------

>Comment By: Jeffrey Hobbs (hobbs)
Date: 2005-09-12 10:03

Message:
Logged In: YES
user_id=72656

This was caused by a change in generic/tkOldConfig.c by dkf
when doing some sort of caching.

Last few lines of a stack trace:

Tk_ConfigureInfo(Tcl_Interp * 0x00a65240, Tk_Window_ *
0x00c06a00, Tk_ConfigSpec * 0x004f4d88 tagConfigSpecs, char
* 0x00c08468, const char * 0x00000000, int 0) line 697 + 3 bytes
TkTextTagCmd(TkText * 0x00c06b18, Tcl_Interp * 0x00a65240,
int 4, const char * * 0x0012e4e8) line 298 + 28 bytes
TextWidgetCmd(void * 0x00c06b18, Tcl_Interp * 0x00a65240,
int 4, const char * * 0x0012e4e8) line 862 + 21 bytes

The problem is really line 697 where cachedSpecPtr is trying
to be set to Tcl_GetHashValue of an entryPtr that is NULL.
I'm passing to dkf as he knows more what was changed and why.


----------------------------------------------------------------------

Comment By: Vince Darley (vincentdarley)
Date: 2005-09-12 07:14

Message:
Logged In: YES
user_id=32170

I have no knowledge about Tk 8.4's pre-objectified text
widget. Handing over to maintainer.



----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=112997&aid=1288128&group_id=12997


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Tcl-Bugs mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/tcl-bugs