[MacPorts] #31030: mpq_canonicalize hangs in GMP 5.02

MacPorts noreply at macports.org
Tue Aug 30 07:50:05 PDT 2011


#31030: mpq_canonicalize hangs in GMP 5.02
--------------------------------+-------------------------------------------
 Reporter:  bruck@…             |       Owner:  mcalhoun@…           
     Type:  defect              |      Status:  new                  
 Priority:  Normal              |   Milestone:                       
Component:  ports               |     Version:  2.0.1                
 Keywords:                      |        Port:  gmp                  
--------------------------------+-------------------------------------------
Changes (by macsforever2000@…):

  * owner:  macports-tickets@… => mcalhoun@…
  * keywords:  GMP, mpq_canonicalize =>
 * cc: bruck@… (removed)
  * port:  => gmp


Old description:

> Running this short program:
> #include <stdio.h>
> #include <gmp.h>
> int main()
> {
>   mpq_t qx;
>
>   mpq_init (qx);
>   mpq_set_str (qx, "537/238", 10);
>   gmp_printf ("%Qd\n", qx);
>   mpq_canonicalize(qx);
>   gmp_printf ("%Qd\n", qx);
>   return 0;
> }
>
> HANGS in my GMP 5.02 as installed by MacPorts (and also when I install it
> myself).  It prints 537/238 once, and apparently hangs
> in the "canonicalize" routine.  It definitely does NOT do this
> on my SuSE 11.4 box, but it does it both on my Mac laptop and on
> my Mac Pro (both running Lion and with Xcode installed).  Both
> gcc and icc compile it, but it hangs on Mac boxes.
>
> Can anybody reproduce this?  Picking rational numbers at random,
> it seems to happen on about 5% of them.
>
> --Ron Bruck

New description:

 Running this short program:
 {{{
 #include <stdio.h>
 #include <gmp.h>
 int main()
 {
   mpq_t qx;

   mpq_init (qx);
   mpq_set_str (qx, "537/238", 10);
   gmp_printf ("%Qd\n", qx);
   mpq_canonicalize(qx);
   gmp_printf ("%Qd\n", qx);
   return 0;
 }
 }}}

 HANGS in my GMP 5.02 as installed by MacPorts (and also when I install it
 myself).  It prints 537/238 once, and apparently hangs
 in the "canonicalize" routine.  It definitely does NOT do this
 on my SuSE 11.4 box, but it does it both on my Mac laptop and on
 my Mac Pro (both running Lion and with Xcode installed).  Both
 gcc and icc compile it, but it hangs on Mac boxes.

 Can anybody reproduce this?  Picking rational numbers at random,
 it seems to happen on about 5% of them.

 --Ron Bruck

--

Comment:

 In the future, please use WikiFormatting, fill in the Port field and Cc
 the maintainer(s).

-- 
Ticket URL: <https://trac.macports.org/ticket/31030#comment:1>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list