|
2009-07-14
| ||
| 09:20 | • Closed ticket [2797112fff]: float point underflow exception at initialization</i... artifact: 1ffe4a6432 user: sf-robot | |
|
2009-06-29
| ||
| 23:18 | • Pending ticket [2797112fff]. artifact: af8002c914 user: kennykb | |
|
2009-05-27
| ||
| 22:52 | • Ticket [2797112fff]: 1 change artifact: 1eaf8fcb40 user: dgp | |
| 18:35 | • Ticket [2797112fff]: 4 changes artifact: 0ee0832927 user: dkf | |
|
2009-05-26
| ||
| 23:03 | • New ticket [2797112fff]. artifact: a4347d3dfd user: plushy | |
float point underflow exception at initialization
Closed / Wont Fix2797112fffffffffffffffffffffffffffffffffCreated 18 years agoUpdated 17 years ago
Descriptionplain2009-05-26 23:03:41
Sorry I'm note sure about category. The platform is windows XP. the compiler is VC8.0 I've put the attention that my app with builin tcl fails without any message when it works together with ecl(embedabble common list). After some research I found that it stops if I asks lisp not to catch floating point exceptions. Then I compiled tcl 8.5.7 in debug mode and found that float point underflow detected in the SafeLdExp <- TclInitDoubleConversion <- TclInitSubsystems <- Tcl_FindExecutable when I've called Tcl_FindExecutable in my app.
dkfplain2009-05-27 18:35:31
Initial guess is that the two codebases are fighting over how the hardware should handle floating point exceptions. How lovely... (NOT!)
dgp Ticket [2797112fff]: 1 change
[History diff]2009-05-27 22:52:51
kennykbplain2009-06-29 23:18:30
Configuring the hardware to throw exceptions on floating point underflow and floating point denormalization is quite a weird thing to do. If you're going to ask Common Lisp not to catch them, you really ought to be asking the hardware not to throw them. Tcl presumes that the hardware floating point exceptions are masked (and that Inf, -Inf, 0, -0, denormals, and NaN result from exceptional conditions as appropriate). If someone else changes the floating point exception mask, that's bound to lead to trouble. The only alternative from Tcl's standpoint would be to save, set and restore the exception mask around every operation that might throw a floating point exception. (This is essentially all floating point operations, since 'imprecise' can be thrown at practically any time.) Far better would be for the inter-language interface code to do the _controlfp or _FPU_GETCW/_FPU_SETCW to set the masks as required. I've never seen anyone set 'underflow is an error' intentionally. It's that strange.
sf-robotplain2009-07-14 09:20:49
allow_comments - 1 This Tracker item was closed automatically by the system. It was previously set to a Pending status, and the original submitter did not respond within 14 days (the time period specified by the administrator of this Tracker).
Log in (anonymous is fine) to add a comment.