On Wed, May 8, 2013 at 6:04 PM, Lluís Batlle i Rossell <[email protected]>wrote:

> I see the same.


i suspected it was recursion, but gdb proves me wrong:

[stephan@host:~/cvs/fossil/fossil]$ ./fossil test-th-eval info
...
Program received signal SIGSEGV, Segmentation fault.
__memcpy_ssse3_back () at
../sysdeps/x86_64/multiarch/memcpy-ssse3-back.S:1579
1579 ../sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: No such file or
directory.
(gdb) bt
#0  __memcpy_ssse3_back ()
    at ../sysdeps/x86_64/multiarch/memcpy-ssse3-back.S:1579
#1  0x00000000004f040c in Th_StringAppend (interp=0x7a3030,
    pzStr=0x7fffffffe1e0, pnStr=0x7fffffffe1ec,
    zElem=0x6f666e6900000004 <Address 0x6f666e6900000004 out of bounds>,
    nElem=<optimized out>) at
/usr/include/x86_64-linux-gnu/bits/string3.h:52
#2  0x00000000004f138a in Th_ErrorMessage (interp=0x7a3030,
    zPre=0x578061 "Expected sub-command, got:",
    z=0x6f666e6900000004 <Address 0x6f666e6900000004 out of bounds>,
    n=1868983913) at ./src/th.c:1302
#3  0x00000000004f4b84 in Th_CallSubCommand (interp=0x7a3030, ctx=0x0,
argc=1,
    argv=0x7a4d60, argl=0x7a4d68, aSub=0x7fffffffe290) at
./src/th_lang.c:900
#4  0x00000000004f4c0f in info_command (interp=<optimized out>,
    ctx=<optimized out>, argc=<optimized out>, argv=<optimized out>,
    argl=<optimized out>) at ./src/th_lang.c:954
#5  0x00000000004f1bf6 in thEvalLocal (interp=0x7a3030,
    zProgram=<optimized out>, nProgram=<optimized out>) at ./src/th.c:878
#6  0x00000000004f26be in Th_Eval (interp=0x7a3030, iFrame=<optimized out>,
    zProgram=0x7fffffffe853 "info", nProgram=-1) at ./src/th.c:973
#7  0x000000000046c4fb in test_th_eval () at ./src/th_main.c:1022
#8  0x0000000000407a59 in main (argc=<optimized out>, argv=<optimized out>)
---Type <return> to continue, or q <return> to quit---
    at ./src/main.c:603

_Seems_ (without having looked at the code yet) to be an over-eager loop in
Th_ErrorMessage. i'll have a look at it this evening.

-- 
----- stephan beal
http://wanderinghorse.net/home/stephan/
http://gplus.to/sgbeal
_______________________________________________
fossil-users mailing list
[email protected]
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to