On 2009-02-11 14:01-0700 Orion Poplawski wrote:

> Fedora is moving to gcc 4.4 with Fedora 11. I'm trying to build plplot
> 5.9.2 and getting the following error:

> fci = 0xbf947ae1

Hi Orion:

Just in case you didn't know this already, what distinguishes an FCI from
UCS4 code is the most significant bit is turned on (see
http://plplot.sourceforge.net/docbook-manual/plplot-html-5.9.2/characters.html#fci).
So the above hex pattern does qualify as an FCI, and that is why you got
into the FCI part of the code. 
However, other than that marker bit, the other thing that distinguishes FCI's
is only their 3 lowest order hex fields are set.  So valid values look like
0x80000???.  Clearly, the above value is completely invalid if interpreted
as an FCI rather than an ordinary UCS4 character.  However, the maximum
UCS4 is supposed to be 0x10FFFF so the above is not consistent with UCS4
either.  Thus, I think the basic problem is
that garbage is getting into the array we use to hold a combination of UCS4
and FCI 32-bit unsigned integers.

> Seems like I need to track down where fci is getting set incorrectly?

Yes or investigate where an ordinary UCS4 code is being set to garbage.

Have you had success before with your ppc hardware?  If you have never
tested before on that hardware platform, it could be an endian issue for
PLplot. Another possibility is it could be an endian issue in some/all of
the gcc-4.4 suite of compilers. Sorry, I don't have access to gcc-4.4 to do
some complementary tests here.

What languages do you have to disable before the problem goes away?  If only
f77 (or f77 and f95) have the issue, but C does not, then that greatly
limits where we have to look for the issue.

I assume your fortran compiler is gfortran (i.e., part of the suite of
gcc-based compilers), but could you confirm that?  Also, if gfortran, is its
version consistent with the gcc compiler version?

Does valgrind show any memory management issues?  Such issues are one way to
get garbage in the array of unsigned 32-bit integers (a combination of UCS4
and FCI) that are interpreted for plotting.

Hope some of these ideas and questions help you to figure out the source of
the problem.

Alan
__________________________
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state implementation
for stellar interiors (freeeos.sf.net); PLplot scientific plotting software
package (plplot.org); the libLASi project (unifont.org/lasi); the Loads of
Linux Links project (loll.sf.net); and the Linux Brochure Project
(lbproject.sf.net).
__________________________

Linux-powered Science
__________________________

------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to