format error

Erik Stenman Erik.Stenman@REDACTED
Tue Sep 9 15:15:35 CEST 2003


It looks like it could be a deferred fp-exception.

Newer versions of the BEAM uses native fp support for some
fp operations. If you have e.g. a divide by zero somewhere
this can trigger a fp exception in the hardware of the machine
if this is not trapped at the right point it might show up 
as an Erlang exception at some other point in your program.
If this is the case then there is a bug in the BEAM.

Which Erlang version are you using and on what kind of hardware are you
running?

/Erik (Happi)

> -----Original Message-----
> From: owner-erlang-questions@REDACTED 
> [mailto:owner-erlang-questions@REDACTED] On Behalf Of 
> HEINRICH VENTER
> Sent: den 9 september 2003 14:55
> To: erlang-questions@REDACTED
> Subject: io:format error
> 
> 
> Hi
> 
> I am frankly stumped by this.
> 
> the following lines of code
> 
> finalize_result({TransactionData, R_ResponseCode, 
> TransactionAmount, EndBalance, Flags_2, CostingInfo}, 
> ConfigurationData) ->
>    io:format("~nTransactionAmount = ~p", [TransactionAmount]),
>    io:format("~n........ Finalize Result ..........."),
>    io:format("~n<<< leah:close_connection >>>"),
> 
>    io:format("~nTransactionAmount voor leah call : ~p", 
> [TransactionAmount]), 
> %% more processing follows
> 
> causes the following VERY odd behavior
> 
> TransactionAmount = 0.00000e+0
> ........ Finalize Result ...........
> <<< leah:close_connection >>>
> TransactionAmount voor leah call : {io_request,
>                                        <0.115.0>,
>                                        <0.112.0>,
>                                        {put_chars,
>                                            io_lib,
>                                            format,
>                                            
> ["~nTransactionAmount = ~p",[0.00000e+0]]}}
> 
> This does not happen consistantly however... it happens every 
> now and then. It would seem that the TransactionAmount 
> variable gets re-bound to the code in some way.
> 
> I am frankly at a loss.  HeeEEeEEeLp!
> 
> -]-[einrich
> Teba Bank
> 
> ##############################################################
> #######################
> The information contained in this message and or attachments 
> is intended only for the person or entity to which it is 
> addressed and may contain confidential and/or privileged 
> material.  Any review, retransmission, dissemination or other 
> use of, or taking of any action in reliance upon, this 
> information by persons or entities other than the intended 
> recipient is prohibited. If you received this in error, 
> please contact the sender and delete the material from any 
> system and destroy all copies. 
> ##############################################################
> #######################
> 




More information about the erlang-questions mailing list