public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug math/15194] New: pow leads to segmentation fault when called after fesetround(FE_UPWARD);
@ 2013-02-25 16:49 martinez at nsup dot org
  2013-02-25 19:53 ` [Bug math/15194] " bagnara at cs dot unipr.it
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: martinez at nsup dot org @ 2013-02-25 16:49 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=15194

             Bug #: 15194
           Summary: pow leads to segmentation fault when called after
                    fesetround(FE_UPWARD);
           Product: glibc
           Version: 2.18
            Status: NEW
          Severity: normal
          Priority: P2
         Component: math
        AssignedTo: unassigned@sourceware.org
        ReportedBy: martinez@nsup.org
    Classification: Unclassified


The following code leads to segmentation fault with the current git version of
GNU libc (and that is the case at least from 2.15).

#include <math.h>
#include <fenv.h>

int
main()
{
  double x = 2.8532681940591602;
  fesetround(FE_UPWARD);
  pow(x, 4);
}

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug math/15194] pow leads to segmentation fault when called after fesetround(FE_UPWARD);
  2013-02-25 16:49 [Bug math/15194] New: pow leads to segmentation fault when called after fesetround(FE_UPWARD); martinez at nsup dot org
@ 2013-02-25 19:53 ` bagnara at cs dot unipr.it
  2013-02-25 23:46 ` martinez at nsup dot org
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: bagnara at cs dot unipr.it @ 2013-02-25 19:53 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=15194

Roberto Bagnara <bagnara at cs dot unipr.it> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bagnara at cs dot unipr.it

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug math/15194] pow leads to segmentation fault when called after fesetround(FE_UPWARD);
  2013-02-25 16:49 [Bug math/15194] New: pow leads to segmentation fault when called after fesetround(FE_UPWARD); martinez at nsup dot org
  2013-02-25 19:53 ` [Bug math/15194] " bagnara at cs dot unipr.it
@ 2013-02-25 23:46 ` martinez at nsup dot org
  2013-02-26  0:57 ` joseph at codesourcery dot com
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: martinez at nsup dot org @ 2013-02-25 23:46 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=15194

--- Comment #1 from Thierry Martinez <martinez at nsup dot org> 2013-02-25 23:46:21 UTC ---
I forgot to include the output of uname -a:

Linux auxerrois 3.2.0-36-generic #57-Ubuntu SMP Tue Jan 8 21:44:52 UTC 2013
x86_64 x86_64 x86_64 GNU/Linux

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug math/15194] pow leads to segmentation fault when called after fesetround(FE_UPWARD);
  2013-02-25 16:49 [Bug math/15194] New: pow leads to segmentation fault when called after fesetround(FE_UPWARD); martinez at nsup dot org
  2013-02-25 19:53 ` [Bug math/15194] " bagnara at cs dot unipr.it
  2013-02-25 23:46 ` martinez at nsup dot org
@ 2013-02-26  0:57 ` joseph at codesourcery dot com
  2013-02-26  8:50 ` schwab@linux-m68k.org
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: joseph at codesourcery dot com @ 2013-02-26  0:57 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=15194

--- Comment #2 from joseph at codesourcery dot com <joseph at codesourcery dot com> 2013-02-26 00:56:58 UTC ---
Are you sure you've run the new binary with the new libc (by linking with 
appropriate -Wl,-dynamic-linker -Wl,-rpath options, for example, or 
running via /some/where/lib64/ld-linux-x86-64.so.2 --library-path 
/some/where/lib64, or using -static to link)?  I can't reproduce this with 
current sources; it sounds like a duplicate of bug 3976 (fixed) to me.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug math/15194] pow leads to segmentation fault when called after fesetround(FE_UPWARD);
  2013-02-25 16:49 [Bug math/15194] New: pow leads to segmentation fault when called after fesetround(FE_UPWARD); martinez at nsup dot org
                   ` (2 preceding siblings ...)
  2013-02-26  0:57 ` joseph at codesourcery dot com
@ 2013-02-26  8:50 ` schwab@linux-m68k.org
  2013-02-26 15:23 ` martinez at nsup dot org
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: schwab@linux-m68k.org @ 2013-02-26  8:50 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=15194

--- Comment #3 from Andreas Schwab <schwab@linux-m68k.org> 2013-02-26 08:50:42 UTC ---
The preferred way to run against an uninstalled build tree is to use
testrun.sh.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug math/15194] pow leads to segmentation fault when called after fesetround(FE_UPWARD);
  2013-02-25 16:49 [Bug math/15194] New: pow leads to segmentation fault when called after fesetround(FE_UPWARD); martinez at nsup dot org
                   ` (3 preceding siblings ...)
  2013-02-26  8:50 ` schwab@linux-m68k.org
@ 2013-02-26 15:23 ` martinez at nsup dot org
  2013-02-26 15:29 ` aj at suse dot de
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: martinez at nsup dot org @ 2013-02-26 15:23 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=15194

--- Comment #4 from Thierry Martinez <martinez at nsup dot org> 2013-02-26 15:23:11 UTC ---
Indeed, I am sorry: I forgot the -static option and ld did not choose the
uninstalled glibc version.

Compiling with
CPATH=$GLIBCGIT/include gcc --verbose -c -o test.o test.c

and linking with
LIBRARY_PATH=$GLIBCGIT/lib gcc --verbose -static -o test test.o

leads to an executable which
- exits with status 158 on Linux 3.2.0-36-generic x86_64, Ubuntu 12.04.1 LTS,
Intel(R) Xeon(R) CPU E5-1620
- exits with status 158 on Linux 2.6.32-44-generic x86_64, Ubuntu 10.04.4 LTS,
Intel(R) Core(TM)2 Quad CPU Q9550
- exits with success (status 0) Linux 2.6.32-5-amd64, Debian 6.0.7.

while the code associated to the bug 3976 works correctly on all these
computers when compiled with this glibc version.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug math/15194] pow leads to segmentation fault when called after fesetround(FE_UPWARD);
  2013-02-25 16:49 [Bug math/15194] New: pow leads to segmentation fault when called after fesetround(FE_UPWARD); martinez at nsup dot org
                   ` (4 preceding siblings ...)
  2013-02-26 15:23 ` martinez at nsup dot org
@ 2013-02-26 15:29 ` aj at suse dot de
  2013-02-26 15:32 ` martinez at nsup dot org
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: aj at suse dot de @ 2013-02-26 15:29 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=15194

Andreas Jaeger <aj at suse dot de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |UNCONFIRMED
                 CC|                            |aj at suse dot de
     Ever Confirmed|1                           |0

--- Comment #5 from Andreas Jaeger <aj at suse dot de> 2013-02-26 15:28:46 UTC ---
Thierry, your last statement is confusing since you did not mention the glibc
versions.

Am I correct that this is fixed in current git? In that case, let's resolve
this bug as WORKSFORME.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug math/15194] pow leads to segmentation fault when called after fesetround(FE_UPWARD);
  2013-02-25 16:49 [Bug math/15194] New: pow leads to segmentation fault when called after fesetround(FE_UPWARD); martinez at nsup dot org
                   ` (5 preceding siblings ...)
  2013-02-26 15:29 ` aj at suse dot de
@ 2013-02-26 15:32 ` martinez at nsup dot org
  2013-02-26 15:33 ` martinez at nsup dot org
  2014-06-13 18:47 ` fweimer at redhat dot com
  8 siblings, 0 replies; 10+ messages in thread
From: martinez at nsup dot org @ 2013-02-26 15:32 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=15194

--- Comment #6 from Thierry Martinez <martinez at nsup dot org> 2013-02-26 15:31:24 UTC ---
Oops.  Yes, that was with the last glibc version, but it was just the "return
0;" that was missing... Thank you, I was just confused and this bug is already
fixed.  I am sorry for the noise!

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug math/15194] pow leads to segmentation fault when called after fesetround(FE_UPWARD);
  2013-02-25 16:49 [Bug math/15194] New: pow leads to segmentation fault when called after fesetround(FE_UPWARD); martinez at nsup dot org
                   ` (6 preceding siblings ...)
  2013-02-26 15:32 ` martinez at nsup dot org
@ 2013-02-26 15:33 ` martinez at nsup dot org
  2014-06-13 18:47 ` fweimer at redhat dot com
  8 siblings, 0 replies; 10+ messages in thread
From: martinez at nsup dot org @ 2013-02-26 15:33 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=15194

Thierry Martinez <martinez at nsup dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |WORKSFORME

--- Comment #7 from Thierry Martinez <martinez at nsup dot org> 2013-02-26 15:33:06 UTC ---
Resolved.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug math/15194] pow leads to segmentation fault when called after fesetround(FE_UPWARD);
  2013-02-25 16:49 [Bug math/15194] New: pow leads to segmentation fault when called after fesetround(FE_UPWARD); martinez at nsup dot org
                   ` (7 preceding siblings ...)
  2013-02-26 15:33 ` martinez at nsup dot org
@ 2014-06-13 18:47 ` fweimer at redhat dot com
  8 siblings, 0 replies; 10+ messages in thread
From: fweimer at redhat dot com @ 2014-06-13 18:47 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=15194

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
              Flags|                            |security-

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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

end of thread, other threads:[~2014-06-13 18:47 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-25 16:49 [Bug math/15194] New: pow leads to segmentation fault when called after fesetround(FE_UPWARD); martinez at nsup dot org
2013-02-25 19:53 ` [Bug math/15194] " bagnara at cs dot unipr.it
2013-02-25 23:46 ` martinez at nsup dot org
2013-02-26  0:57 ` joseph at codesourcery dot com
2013-02-26  8:50 ` schwab@linux-m68k.org
2013-02-26 15:23 ` martinez at nsup dot org
2013-02-26 15:29 ` aj at suse dot de
2013-02-26 15:32 ` martinez at nsup dot org
2013-02-26 15:33 ` martinez at nsup dot org
2014-06-13 18:47 ` fweimer at redhat dot com

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).