[Toybox] Editors and such.

Roy Tam roytam at gmail.com
Wed Sep 5 20:56:17 PDT 2012


2012/9/6 David Seikel <onefang at gmail.com>:
>> Program received signal SIGSEGV, Segmentation fault.
>> formatLine (view=0x8069168, input=0x0, output=0x806919c)
>>     at toys/other/boxes.c:843
>> 843        int len = strlen(input), i = 0, o = 0;
>> (gdb) bt
>> #0  formatLine (view=0x8069168, input=0x0, output=0x806919c)
>>     at toys/other/boxes.c:843
>> #1  0x0804f1dd in moveCursorAbsolute (view=0x8069168, cX=0, cY=10,
>> sX=0, sY=0) at toys/other/boxes.c:951
>> #2  0x0804f367 in moveCursorRelative (view=0x8069168, cX=0, cY=10,
>> sX=0, sY=0) at toys/other/boxes.c:1011
>> #3  0x0804f479 in upLine (view=0x8069168, event=0x0) at
>> toys/other/boxes.c:1442 #4  0x0804fb63 in handleKey (view=0x8069168,
>> i=2, keyName=<optimized out>, buffer=0xbffffad8 "\033[A") at
>> toys/other/boxes.c:1593 #5  0x0805008d in editLine (view=0x8069168,
>> X=-1, Y=-1, W=-1, H=-1) at toys/other/boxes.c:1785
>> #6  0x08050288 in boxes_main () at toys/other/boxes.c:2482
>> #7  0x0804b262 in toy_exec (argv=0xbffffd58) at main.c:104
>> #8  0x0804b29d in toybox_main () at main.c:118
>> #9  0x0804b262 in toy_exec (argv=0xbffffd54) at main.c:104
>> #10 0x0804b29d in toybox_main () at main.c:118
>> #11 0x0804affa in main (argc=5, argv=0xbffffd54) at main.c:159
>
> No segfault here when I try that, nor with different files.  As I said,
> it has bugs.  I have seen other cases before when NULL lines are passed
> around near that code.  Guess I've not got them all.  Might help to
> mention what terminal proggy you are using, it's size in characters,
> toybox version, OS, etc.  Something is different between you and me.

Terminal Program: PuTTY
Windows size: 80 * 25 chars
Toybox version: hg head
OS: Linux 3.2 (Debian wheezy)
File: Toybox LICENSE file

>
> The point of this code drop is a heads up on the basic design, not to
> pick out every little bug.  There's lots of them, we will be at that
> forever.  lol
>
> --
> A big old stinking pile of genius that no one wants
> coz there are too many silver coated monkeys in the world.
>
> _______________________________________________
> Toybox mailing list
> Toybox at lists.landley.net
> http://lists.landley.net/listinfo.cgi/toybox-landley.net
>

 1346903777.0


More information about the Toybox mailing list