| www.delorie.com/archives/browse.cgi | search |
| X-Spam-Check-By: | sourceware.org |
| From: | "Dave Korn" <dave DOT korn AT artimi DOT com> |
| To: | <cygwin AT cygwin DOT com> |
| 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 |
| X-Mailer: | Microsoft Office Outlook 11 |
| In-Reply-To: | <ekmm5a$fcm$1@sea.gmane.org> |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Id: | <cygwin.cygwin.com> |
| List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
| 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 <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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |