Closed Bug 569427 Opened 15 years ago Closed 15 years ago

AvmDebugMsg truncates output

Categories

(Tamarin Graveyard :: Tools, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: pnkfelix, Assigned: lhansen)

References

Details

(Whiteboard: has-patch)

Attachments

(1 file)

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.)
See Also: → 473188
Doh. [[ sizeof(buf-2) ]] != [[ sizeof(buf) - 2 ]].
Comment on attachment 448613 [details] [diff] [review] belt and suspenders belong at waist, not feet. :) Doh!
Attachment #448613 - Flags: review?(lhansen) → review+
(In reply to comment #3) > (From update of attachment 448613 [details] [diff] [review]) > Doh! push me please.
(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
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.

Attachment

General

Created:
Updated:
Size: