X-Spam-Check-By: sourceware.org From: "Dave Korn" To: Subject: RE: isnan() causes segfault Date: Thu, 30 Nov 2006 17:51:07 -0000 Message-ID: <04bd01c714a8$1d0e34c0$a501a8c0@CAM.ARTIMI.COM> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On 30 November 2006 13:26, Eric Lilja wrote: > The following program stackdumps: > #include > > 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/