public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/18090] New: Valgrind errors while building libgfortran
@ 2004-10-20 20:02 drow at gcc dot gnu dot org
  2004-10-21 18:57 ` [Bug fortran/18090] " tobi at gcc dot gnu dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: drow at gcc dot gnu dot org @ 2004-10-20 20:02 UTC (permalink / raw)
  To: gcc-bugs

/home/drow/valgrind/gcc/gfortran -B/home/drow/valgrind/gcc/
-B/usr/local/i686-pc-linux-gnu/bin/ -B/usr/l
ocal/i686-pc-linux-gnu/lib/ -isystem /usr/local/i686-pc-linux-gnu/include
-isystem /usr/local/i686-pc-li
nux-gnu/sys-include -g -O2 -Wall -fno-repack-arrays -fno-underscoring -c
/home/drow/src/gcc/libgfortran/
intrinsics/selected_real_kind.f90  -fPIC -DPIC -o .libs/selected_real_kind.o

==9587== Conditional jump or move depends on uninitialised value(s)
==9587==    at 0x8757BB9: mpfr_round_raw_generic (in /home/drow/valgrind/gcc/f951)
==9587==    by 0x8758617: mpfr_set4 (in /home/drow/valgrind/gcc/f951)
==9587==    by 0x8758ED0: mpfr_set_str (in /home/drow/valgrind/gcc/f951)
==9587==    by 0x804D544: gfc_convert_real (arith.c:1883)
==9587== 
==9587== Conditional jump or move depends on uninitialised value(s)
==9587==    at 0x8757D5F: mpfr_round_raw_generic (in /home/drow/valgrind/gcc/f951)
==9587==    by 0x8758617: mpfr_set4 (in /home/drow/valgrind/gcc/f951)
==9587==    by 0x8758ED0: mpfr_set_str (in /home/drow/valgrind/gcc/f951)
==9587==    by 0x804D544: gfc_convert_real (arith.c:1883)
==9587== 
==9587== Conditional jump or move depends on uninitialised value(s)
==9587==    at 0x8757C39: mpfr_round_raw_generic (in /home/drow/valgrind/gcc/f951)
==9587==    by 0x8758617: mpfr_set4 (in /home/drow/valgrind/gcc/f951)
==9587==    by 0x8758ED0: mpfr_set_str (in /home/drow/valgrind/gcc/f951)
==9587==    by 0x804D544: gfc_convert_real (arith.c:1883)

-- 
           Summary: Valgrind errors while building libgfortran
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: drow at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: i686-pc-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18090


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug fortran/18090] Valgrind errors while building libgfortran
  2004-10-20 20:02 [Bug fortran/18090] New: Valgrind errors while building libgfortran drow at gcc dot gnu dot org
@ 2004-10-21 18:57 ` tobi at gcc dot gnu dot org
  2004-10-21 19:48 ` sgk at troutmask dot apl dot washington dot edu
  2004-10-21 22:33 ` tobi at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: tobi at gcc dot gnu dot org @ 2004-10-21 18:57 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From tobi at gcc dot gnu dot org  2004-10-21 18:57 -------
Adding Steve Kargl, as he converted gfortran to mpfr.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kargl at troutmask dot apl
                   |                            |dot washington dot edu
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2004-10-21 18:57:19
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18090


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug fortran/18090] Valgrind errors while building libgfortran
  2004-10-20 20:02 [Bug fortran/18090] New: Valgrind errors while building libgfortran drow at gcc dot gnu dot org
  2004-10-21 18:57 ` [Bug fortran/18090] " tobi at gcc dot gnu dot org
@ 2004-10-21 19:48 ` sgk at troutmask dot apl dot washington dot edu
  2004-10-21 22:33 ` tobi at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: sgk at troutmask dot apl dot washington dot edu @ 2004-10-21 19:48 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From sgk at troutmask dot apl dot washington dot edu  2004-10-21 19:48 -------
Tobi,

I won't be able to look into this problem until late November.  Yes,
I'm still on a boat in the Gulf of Mexico.  Valgrind's output suggests
that the problem is within the MPFR library.  At least, I know I never
used mpfr_set4 or mpfr_round_raw_generic.

-- 
steve

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18090


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug fortran/18090] Valgrind errors while building libgfortran
  2004-10-20 20:02 [Bug fortran/18090] New: Valgrind errors while building libgfortran drow at gcc dot gnu dot org
  2004-10-21 18:57 ` [Bug fortran/18090] " tobi at gcc dot gnu dot org
  2004-10-21 19:48 ` sgk at troutmask dot apl dot washington dot edu
@ 2004-10-21 22:33 ` tobi at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: tobi at gcc dot gnu dot org @ 2004-10-21 22:33 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From tobi at gcc dot gnu dot org  2004-10-21 22:33 -------
This is an issue in mpfr, and is fixed by a newer libmpfr. I didn't find
anything pertaining to this in mpfr's ChangeLog's, but the failure disappeared
after installing the current mpfr, and the code in gfortran is definitely right:
- I verified that all mpfr variables are initialized before being set in
gfc_convert_real ()
- I verified that the string buffers passed to mpfr_set_str are set to the right
lengths and correctly zero-terminated

I'm closing this as WONTFIX, if someone disagrees, feel free to reopen.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WONTFIX


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18090


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-10-21 22:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-20 20:02 [Bug fortran/18090] New: Valgrind errors while building libgfortran drow at gcc dot gnu dot org
2004-10-21 18:57 ` [Bug fortran/18090] " tobi at gcc dot gnu dot org
2004-10-21 19:48 ` sgk at troutmask dot apl dot washington dot edu
2004-10-21 22:33 ` tobi at gcc dot gnu dot org

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 read-only IMAP folder(s) and NNTP newsgroup(s).