Closed
Bug 569427
Opened 15 years ago
Closed 15 years ago
AvmDebugMsg truncates output
Categories
(Tamarin Graveyard :: Tools, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: pnkfelix, Assigned: lhansen)
References
Details
(Whiteboard: has-patch)
Attachments
(1 file)
|
494 bytes,
patch
|
lhansen
:
review+
|
Details | Diff | Splinter Review |
avmplus::AvmDebugMsg is overloaded with two (well, really three) variants:
void AvmDebugMsg(bool debuggerBreak, const char* format, ...);
void AvmDebugMsg(const char* msg, bool debuggerBreak);
void AvmDebugMsg(const wchar* msg, bool debuggerBreak);
However, it seems to me like the first does not properly handle reasonably long strings.
As an illustration, when I instrumented GC::FindMissingWriteBarriers() as follows:
void GC::FindMissingWriteBarriers()
{
avmplus::AvmDebugMsg(false, "12345678901234567890\n");
avmplus::AvmDebugMsg( "abcdefghijklmnopqrst\n", false);
I saw the following on 64-bit builds:
...
12345678abcdefghijklmnopqrst
12345678abcdefghijklmnopqrst
...
and the following on 32-bit builds:
...
1234abcdefghijklmnopqrst
1234abcdefghijklmnopqrst
...
(Its possible that something is wrong with my build configuration, but the above struck me as quite strange.)
| Reporter | ||
Comment 1•15 years ago
|
||
Doh. [[ sizeof(buf-2) ]] != [[ sizeof(buf) - 2 ]].
| Reporter | ||
Comment 2•15 years ago
|
||
Attachment #448613 -
Flags: review?(lhansen)
| Assignee | ||
Comment 3•15 years ago
|
||
Comment on attachment 448613 [details] [diff] [review]
belt and suspenders belong at waist, not feet. :)
Doh!
Attachment #448613 -
Flags: review?(lhansen) → review+
| Reporter | ||
Comment 4•15 years ago
|
||
(In reply to comment #3)
> (From update of attachment 448613 [details] [diff] [review])
> Doh!
push me please.
| Assignee | ||
Comment 5•15 years ago
|
||
(In reply to comment #4)
> (In reply to comment #3)
> > (From update of attachment 448613 [details] [diff] [review] [details])
> > Doh!
>
> push me please.
I'll take care of it tomorrow.
Assignee: nobody → lhansen
Status: NEW → ASSIGNED
Whiteboard: has-patch
| Assignee | ||
Comment 6•15 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•