* Re:[Patch]linuxppc gnuplot segfaults in save
@ 1999-04-15 19:00 Dean Luick
1999-04-15 20:34 ` [Patch]linuxppc " David Edelsohn
0 siblings, 1 reply; 2+ messages in thread
From: Dean Luick @ 1999-04-15 19:00 UTC (permalink / raw)
To: costabel, linuxppc-dev
> Here is a minimal example, adapted from the gnuplot sources. If used
as
> "a.out foo.gnu", it segfaults for me. Compiler is egcs-2.91.66
19990314
> (egcs-1.1.2 release) (PowerPC GNU/Linux), glibc-2.1.1-3a.
> gbd backtrace gives
Using egcs 1.0.2 prelease, it looks like egcs is messing up how it
pushes
arguements on the stack. In partiuclar, egcs should be filling all of
the integer
argument registers, r3-r10. Instead, it places what should to in r8 in
r10, and placing
what should be in r9 and r10 on the stack. This leave r8 and r9
completely random, plus
pushes the final two integer arguments (which should be on the stack) 8
bytes off from
their correct position.
Assuming that fprintf correctly interprets the format string, it is no
wonder that
it crashes.
Dean
[[ This message was sent via the linuxppc-dev mailing list. Replies are ]]
[[ not forced back to the list, so be sure to Cc linuxppc-dev if your ]]
[[ reply is of general interest. Please check http://lists.linuxppc.org/ ]]
[[ and http://www.linuxppc.org/ for useful information before posting. ]]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Patch]linuxppc gnuplot segfaults in save
1999-04-15 19:00 Re:[Patch]linuxppc gnuplot segfaults in save Dean Luick
@ 1999-04-15 20:34 ` David Edelsohn
0 siblings, 0 replies; 2+ messages in thread
From: David Edelsohn @ 1999-04-15 20:34 UTC (permalink / raw)
To: Dean Luick; +Cc: costabel, linuxppc-dev
You can try invoking EGCS with the additional commandline argument
-mdebug-arg for it to print out additional information about how it is
advancing through the arguments of functions and figure out where in
rs6000.c:function_arg() it is not matching what fprintf expects. FP gets
very complicated.
David
[[ This message was sent via the linuxppc-dev mailing list. Replies are ]]
[[ not forced back to the list, so be sure to Cc linuxppc-dev if your ]]
[[ reply is of general interest. Please check http://lists.linuxppc.org/ ]]
[[ and http://www.linuxppc.org/ for useful information before posting. ]]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1999-04-15 20:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-04-15 19:00 Re:[Patch]linuxppc gnuplot segfaults in save Dean Luick
1999-04-15 20:34 ` [Patch]linuxppc " David Edelsohn
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).