Ilya Zakharevich on Fri, 12 Jul 2024 17:18:20 +0200


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

Re: Segfault in read()


On Thu, Jul 11, 2024 at 07:06:32PM -0700, Ilya Zakharevich wrote:
> Reading the attached file (created on Windows 7 in the same session by
> the latest stable version) leads to a segfault.

Bill asks me how this file was created.  It is the only way I know to
debug “a failing” PARI construct.

  OUT=[1];
  Data = Start␣a␣failing␣code;   OUT[1] = Data;   Fun␣code␣which␣crashes();

Only I put writebin(Data) in between too.  The literal excerpt:

    if(dbg, writebin("pos.wrbin",pos); POS[1]=pos; print("asX="asX", pos="pos", neg="neg", xRefl="xRefl", yRefl="yRefl,if(#pos>1,[pos2[1],pos2[2]]=pos[1..2]); …

Hope this helps,
Ilya