New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NaN passed to gcvt #1837
Comments
From gin@mo.msk.ruCreated by gin@mo.msk.rulib/bigfltpm test fails in step 351. `perl' passes a NaN value to #0 0x80019223 in PL_regflags () Hex dump of double value in question is: 0x00 0x00 0x00 0x00 0x00 0x00 0xf8 0x7f It always causes my gcvt to get SIGFPE, regardless of program which I do not know, is such a behavior of perl considered proper (and gcvt Perl Info
|
From [Unknown Contact. See original ticket]One possible solution of gcvt SIGFPE problem is using sprintf instead This problem is specific to 5.0.2 or earlier versions. Perhaps this |
From @gsarOn Fri, 14 Apr 2000 17:32:06, gin@mo.msk.ru wrote:
Your platform likely needs to disable SIGFPE. See the end of unixish.h Sarathy |
From @schwernIs this still an issue with 5.8.6? |
@schwern - Status changed from 'open' to 'stalled' |
From gin@mo.msk.ruAgain, already posted the solution (<023a38fa0f7b94-gin@mo.msk.ru>). Moreover, one can reproduce the way `Gconvert' is called by batcktrace |
The RT System itself - Status changed from 'stalled' to 'open' |
From @doughera88On Tue, 14 Dec 2004, Ilya N. Golubev wrote:
Yes, that's in the bug database. However, the solution Sarathy suggested (ignoring SIGFPE) is also probably
Configure does indeed contain a framework for testing various inputs to Still, the following patch should be harmless and safe to apply. It Inline Patchdiff -r -u perl-current/hints/sco.sh perl-andy/hints/sco.sh
--- perl-current/hints/sco.sh Sun Jun 24 10:21:37 2001
+++ perl-andy/hints/sco.sh Wed Dec 15 10:13:25 2004
@@ -201,6 +201,15 @@
fi
###############################################################
+# At least for ORS5.0.2, prefer sprintf() over gcvt(), since gcvt()
+# used to cause a SIGFPE and a core dump when passed a NaN.
+# This may not be an issue in perl-5.8.x and later since we
+# try to trap SIGFPE. However, preferring sprintf() should be
+# safe anyway, so let's go ahead and set it. See the bugs database
+# item [perl #3100]. --A.D. 12/2004.
+ gconvert_preference='sprintf'
+
+###############################################################
# We disable ODBM_File if OSR5 because it's mostly broken
# but keep it for ODT3 as it seems to work.
if test "$scorls" = "5"; then
-- Andy Dougherty doughera@lafayette.edu |
From @rgsAndy Dougherty wrote:
Thanks, applied as #23655. |
@rgs - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#3100 (status was 'resolved')
Searchable as RT3100$
The text was updated successfully, but these errors were encountered: