Closed Bug 686475 Opened 13 years ago Closed 13 years ago

Assertion while converting a float to boolean

Categories

(Tamarin Graveyard :: Virtual Machine, defect, P3)

Tracking

(Not tracked)

VERIFIED FIXED
Q1 12 - Brannan

People

(Reporter: brbaker, Assigned: virgilp)

References

Details

var v:Boolean;
v = float(+0.0);

Assertion failed: "((((avmplus::Atom)(uintptr_t(atom) & 7))==kDoubleType))" ("../core/AvmCore-inlines.h":487)

#0  0x00007fff8a0430b6 in __kill ()
#1  0x0000000100008bbe in VMPI_debugBreak () at ../VMPI/MacDebugUtils.cpp:55
#2  0x0000000100008a2b in avmplus::AvmDebugMsg (p=0x10020dee0 "Assertion failed: \"((((avmplus::Atom)(uintptr_t(atom) & 7))==kDoubleType))\" (\"../core/AvmCore-inlines.h\":487)\n", debugBreak=true) at ../AVMPI/AvmAssert.cpp:69
#3  0x000000010000849a in avmplus::AvmAssertFail (message=0x10020dee0 "Assertion failed: \"((((avmplus::Atom)(uintptr_t(atom) & 7))==kDoubleType))\" (\"../core/AvmCore-inlines.h\":487)\n") at AvmAssert.h:66
#4  0x0000000100000cd6 in avmplus::_AvmAssertMsg (condition=0, message=0x10020dee0 "Assertion failed: \"((((avmplus::Atom)(uintptr_t(atom) & 7))==kDoubleType))\" (\"../core/AvmCore-inlines.h\":487)\n") at AvmAssert.h:72
#5  0x00000001000e9069 in avmplus::AvmCore::atomToDouble (atom=4311941260) at AvmCore-inlines.h:487
#6  0x0000000100088686 in avmplus::AvmCore::boolean (atom=4311941260) at ../core/AvmCore.cpp:1902
#7  0x0000000100120bfc in avmplus::ScriptObject::coerceAndSetSlotAtom (this=0x1010060a8, slot=151, value=4311941260) at ../core/ScriptObject.cpp:781
#8  0x00000001000f80c2 in avmplus::interpBoxed () at ../core/Interpreter.cpp:2454
#9  0x00000001000e6b49 in avmplus::BaseExecMgr::invokeInterpNoCoerce (env=0x1011edfb8, argc=0, atomv=0x7fff5fbfee40) at ../core/exec.cpp:928
#10 0x00000001000e8804 in avmplus::BaseExecMgr::initInvokeInterpNoCoerce (env=0x1011edfb8, argc=0, args=0x7fff5fbfee40) at ../core/exec.cpp:216
#11 0x00000001000e86b5 in avmplus::BaseExecMgr::verifyInvoke (env=0x1011edfb8, argc=0, args=0x7fff5fbfee40) at ../core/exec.cpp:322
#12 0x0000000100040839 in avmplus::MethodEnv::coerceEnter (this=0x1011edfb8, thisArg=4311769257) at MethodEnv-inlines.h:137
#13 0x000000010008be87 in avmplus::AvmCore::callScriptEnvEntryPoint (this=0x101023008, main=0x1011edfb8) at ../core/AvmCore.cpp:818
#14 0x000000010008bffe in avmplus::AvmCore::handleActionPool (this=0x101023008, pool=0x101045240, toplevel=0x10114c0d8, codeContext=0x101145fb8) at ../core/AvmCore.cpp:1055
#15 0x000000010008c0c1 in avmplus::AvmCore::handleActionBlock (this=0x101023008, code=@0x7fff5fbff280, start=0, toplevel=0x10114c0d8, ninit=0x0, codeContext=0x101145fb8, apiVersion=avmplus::kApiVersion_SWF_14) at ../core/AvmCore.cpp:1122
#16 0x0000000100043cd4 in avmshell::ShellCore::handleArbitraryExecutableContent (this=0x101023008, settings=@0x7fff5fbff5e0, code=@0x7fff5fbff340, filename=0x7fff5fbff908 "as3/Types/Float/flt_9_7.abc") at ../shell/ShellCore.cpp:564
#17 0x0000000100044241 in avmshell::ShellCore::evaluateFile (this=0x101023008, settings=@0x7fff5fbff5e0, filename=0x7fff5fbff908 "as3/Types/Float/flt_9_7.abc") at ../shell/ShellCore.cpp:541
#18 0x000000010003701a in avmshell::Shell::singleWorkerHelper (shell=0x101023008, settings=@0x7fff5fbff5e0) at ../shell/avmshell.cpp:219
#19 0x0000000100037854 in avmshell::Shell::singleWorker (settings=@0x7fff5fbff5e0) at ../shell/avmshell.cpp:178
#20 0x0000000100037ae3 in avmshell::Shell::run (argc=2, argv=0x7fff5fbff7c0) at ../shell/avmshell.cpp:141
#21 0x0000000100065fcc in main (argc=2, argv=0x7fff5fbff7c0) at ../shell/avmshellMac.cpp:114

This is using mq 101:636b057e8cfa
Flags: in-testsuite+
Flags: flashplayer-triage+
Flags: flashplayer-qrb?
Flags: flashplayer-bug-
changeset:   102:bcbb732b25e0
parent:      100:a77e21435671
user:        Virgil Palanciuc <virgilp@adobe.com>
date:        Thu Sep 15 15:16:31 2011 +0300
summary:     fixed most issues with float/float4 on x32/x64
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Status: RESOLVED → VERIFIED
Severity: normal → minor
Flags: flashplayer-qrb? → flashplayer-qrb+
Priority: -- → P3
Target Milestone: --- → Q1 12 - Brannan
You need to log in before you can comment on or make changes to this bug.