Re: Segfault in read()
Ilya Zakharevich <[email protected]> Fri, 12 Jul 2024 08:18:14 -0700
| Newsgroups | gmane.comp.mathematics.pari.devel |
|---|---|
| Message-ID | <[email protected]> |
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