[Nickle] nickle 2.41 seg fault

Bart Massey bart at po8.org
Sun Aug 22 16:47:36 PDT 2004


Fixed, the easy way.  Grab latest bits from CVS.  Base for
printing must now be at least 2.  Should probably allow
unary, but didn't feel like thinking about it.  Thanks much
for the clear bug report!

	Bart Massey
	bart at cs.pdx.edu

In message <41290ED0.6070909 at comcast.net> you wrote:
> I saw a reference to nickle in a recent slashdot article. I think nikle 
> will replace bc in my toolbox.
> 
> The following typo segfaults with nickle 2.41 (x86_64, gcc 3.3.3)
> 
>  > 3**4 # 1
> Program received signal SIGSEGV, Segmentation fault.
> 0x000000000041b499 in IntPrint (f=0x5681c0, av=0x61, format=0 '\0',
>      base=1, width=0, prec=808464432, fill=32) at int.c:271
> 271                     *--s = digit;
> (gdb) where
> #0  0x000000000041b499 in IntPrint (f=0x5681c0, av=0x61, format=0 '\0',
>      base=1, width=0, prec=808464432, fill=32) at int.c:271
> #1  0x000000000042ee2a in Print (f=0x5681c0, v=0xa3, format=103 'g',
>      base=1, width=0, prec=-1, fill=48) at value.c:563
> #2  0x0000000000430dcb in do_File_print (file=0x5681c0, value=0xa3,
>      format=0x972cd0, base=0x51, width=0x20, prec=0xffffffff,
>      fill=0x972cf0)
>      at builtin-file.c:228
> #3  0x000000000040f04d in ThreadCall (thread=0xbd5ef0, tail=False,
>      next=0x7fbffff4b8, stack=0x7fbffff4b4) at execute.c:219
> #4  0x0000000000412043 in ThreadsRun (thread=0xbd5ef0, lex=0x0)
>      at execute.c:1213
> #5  0x0000000000438527 in yyparse () at gram.y:284
> #6  0x000000000041cc7f in main (argc=0, argv=0x7fbffff7c0) at main.c:86
> 
> I'd imagine this is a simple fix...
> 
>                    Thanks,
>                    Clem
> 
> _______________________________________________
> Nickle mailing list
> Nickle at nickle.org
> http://nickle.org/mailman/listinfo/nickle



More information about the Nickle mailing list