On Mon, Mar 10, 2008 at 6:32 PM, Steve LoBasso <[EMAIL PROTECTED]> wrote:
> The only way for this change to actually solve the problem rather than simply 
> move it, would be if executeNewlineMacro() or executeModMacro() could be 
> re-entered before the arg copy in ExecuteMacro(). Another possibility is if 
> some of the fields were conditionally set and other times left to their "once 
> only" initialized values. I don't see how this is possible. When you can tell 
> me how this is possible, I will believe that this actually fixes the problem, 
> rather than simply hiding it.
>
>  To me, it sounds like we need to find this bug before we submarine it.
Ok ,actually, in this patch are two changes:

1) remove the static from the 'DataValue arg'
2) remove the 'static int inModCB'

I now know that 1) isn't a problem, thanks to steve.
But without the change for 2), i get this backtrace:

#1  0x0000000000492a31 in ContinueMacro (continuation=0xb3cd50,
result=0x7fffffe2dcf0, msg=0x7fffffe2dce0) at interpret.c:540
#2  0x000000000049cc63 in executeNewlineMacro (window=0xa229f0,
cbInfo=0x7fffffe2ddf0) at smartIndent.c:843
#3  0x000000000049cbcf in SmartIndentCB (w=0xaee5e0,
clientData=0xa229f0, callData=0x7fffffe2ddf0) at smartIndent.c:810
#4  0x00002aaaab2ec385 in XtCallCallbacks () from /usr/X11R6/lib64/libXt.so.6
#5  0x00000000004727b6 in createIndentString (tw=0xaee5e0,
buf=0xaf31c0, bufOffset=0, lineStartPos=0, lineEndPos=0, length=0x0,
column=0x7fffffe2de8c) at text.c:4048
#6  0x000000000046e597 in newlineAndIndentAP (w=0xaee5e0,
event=0x7fffffe2e530, args=0x0, nArgs=0x2aaaab43a1d0) at text.c:2316
#7  0x000000000046e458 in newlineAP (w=0xaee5e0, event=0x7fffffe2e530,
args=0x0, nArgs=0x2aaaab43a1d0) at text.c:2279
#8  0x00002aaaab322acc in HandleActions () from /usr/X11R6/lib64/libXt.so.6
#9  0x00002aaaab322eb6 in HandleSimpleState () from /usr/X11R6/lib64/libXt.so.6
#10 0x00002aaaab3235dd in _XtTranslateEvent () from /usr/X11R6/lib64/libXt.so.6
#11 0x00002aaaab2fa216 in XtDispatchEventToWidget () from
/usr/X11R6/lib64/libXt.so.6
#12 0x00002aaaab2fa915 in _XtDefaultDispatcher () from
/usr/X11R6/lib64/libXt.so.6
#13 0x00002aaaab2f99f5 in XtDispatchEvent () from /usr/X11R6/lib64/libXt.so.6
#14 0x00002aaaab2f9b63 in XtAppMainLoop () from /usr/X11R6/lib64/libXt.so.6
#15 0x000000000040a8df in main (argc=1, argv=0x7fffffe307c8) at nedit.c:798

Bert
>
>
>    -Steve
-- 
NEdit Develop mailing list - [email protected]
http://www.nedit.org/mailman/listinfo/develop

Reply via email to