Re: [gnuplot:bugs] #2195 html fails to compile on mipsel platform

Anton Gladky <[email protected]>
Newsgroups gmane.linux.debian.ports.mips
Message-ID <CALF6qJnGhak9ZfNqpqHO6VGmwhW8HAgSqJC7_y7wY=O8YHadpQ@mail.gmail.com>
Dear mips porters,

I am maintaining the gnuplot in the Debian and there is a segfault on the
mipsel, what I reported to upstream [1].

There is a question from the gnuplot author, which I am not able to response.
Could you please have a look?

It segfaults somewhere in the static global structure. And the problem appeared
recently, maybe due to the GCC-9 migration. There were not problems with GCC-8.
Some regressions?

[1] https://sourceforge.net/p/gnuplot/bugs/2195/

Thank you

Anton

Am Di., 3. Sept. 2019 um 21:27 Uhr schrieb Ethan Merritt
<[email protected]>:
>
> This trace does not make sense to me.
> The code lines highlighted are:
>
>    } else if (r >= R_AXIS.min) {
>         /* We store internally as if plotting r(theta) - rmin */
>         r = r - R_AXIS.min;
>
> R_AXIS is a static global structure that has been accessed repeated in the immediately preceding code, so I don't see any way it could cause a segfault here. r is a parameter to this routine so I would expect it to be on the stack (but I don't know mipsel compiler calling conventions so maybe not). Could the compiler somehow be setting a read-only flag that prevents modifying a local parameter?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.