Re: ANNOUNCE: SText 0.1



I uploaded another version to fix the compile issue (sorry about that,
last minute change). It also improves comment handling with the tcl
lexer. I tested the X11 version under Cygwin/X11. Any chance you can
"make gdb" and see where the segfault is?

(gdb) run
Starting program: /target/staff/koen/install/tcltk8.4.12/LNx86/bin/wish8.4
./demos/demo.tcl
***** TkTextRelayoutWindow
AsyncUpdateLineMetrics .w1.text REDRAW_PENDING
DINFO_RELAYOUT_WINDOW .w1.text
***** TkTextRelayoutWindow
***** TkTextRelayoutWindow

Program received signal SIGSEGV, Segmentation fault.
0x400c9f7f in CharDisplayProc (chunkPtr=0x8108fd0, x=135391896, y=52,
height=0, baseline=13, display=0xa, dst=134617784, screenY=48234565)
at /target/staff/koen/src/tk8.4.12/generic/tkTextDisp.c:4625
4625 sValuePtr = stylePtr->sValuePtr;
(gdb) quit


Note: the segfault is in tk's original tkTextDisp.c, not in stext's.
I don't know if that's the cause of the error, but it is at least a bit
confusing to use the same filenames and function-names as in tk...


That is definitely the cause of the error. I have used macros
to redefine TkTextXXX to STextXXX to make it easier to patch
the stext sources. The package uses stubs so there should be
no linking against Tcl or Tk. I don't understand why any
linking is occurring against the original tktTextDisp.c, unless
it is happening at run-time, but CharDisplayProc is static.

-- Tim Baker


.



Relevant Pages