This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: isnan() causes segfault


On 30 November 2006 13:26, Eric Lilja wrote:

> The following program stackdumps:
> #include <cmath>
> 
> int
> main()
> {
>     std::isnan(3);
> }
> If compiled with:
> $ g++ -Wall -Wextra -std=c++98 -pedantic -g isnantest.cpp -o run
> (those are the flags we have been using in this course).

  Can't reproduce.  I'm a couple of dll versions behind, I'll see what happens
after an update.

> But it doesn't stackdump if compiled simply with:
> $ make isnantest
> g++     isnantest.cpp   -o isnantest

  This, I can reproduce!

> Comments? cygcheck.out attached.

#1.  Might be informative to use addr2line to figure out exactly where the
thing is crashing: in the dll, or in your executable.

#2.  Re-compile both the crashing and non-crashing versions, using the
--save-temps option, and see if there are any obvious differences in the
assembler source files generated.


    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]