Gonzalo Tornaria on Wed, 29 Sep 2004 18:06:44 +0200


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Bug in writebin/read


-----------------------------------------------------------------------
         GP/PARI CALCULATOR Version 2.2.8 (development CHANGES-1.1021)
                i686 running linux (ix86 kernel) 32-bit version
               compiled: Sep 29 2004, gcc-3.3.3 (Debian 20040401)
                (readline v4.3 enabled, extended help available)
[...]
parisize = 128000000, primelimit = 10000000
? a=0
%1 = 0
? writebin("a0",a)
? read("a0")
  *** read: malformed binary file (no GEN).
-----------------------------------------------------------------------

This happens only for variables set to 0; the file "a0" doesn't exist
before doing this. An hexdump of a0 follows:

0000000 10 01 12 09 2d 07 10 04 04 03 02 01 00 00 00 00
0000010 00 00 00 00 00 00 00 00 00 50 0f 0e 08

It also doesn't work when using writebin without second argument (to
save the whole session). I assume the problem is the same.

Thanks, Gonzalo
-- 
GM/CS/S d? a- C++(+++)  UL+++(++++)  P++>+++  L+++>++++  E---
W-(+) N+(++) w--- O M-(--) V-(--) PGP(--) b++(+++) G++ e>++++

... A mathematician is a machine for converting coffee into theorems.