Closed Bug 58778 Opened 25 years ago Closed 25 years ago

Boehm GC's getTypeName() implementation is flaky on Linux

Categories

(Core :: XPCOM, defect, P3)

x86
Linux
defect

Tracking

()

RESOLVED FIXED

People

(Reporter: waterson, Assigned: waterson)

Details

Attachments

(2 files)

The problem is that calling typeinfo(foo) ends up calling through a random pointer. Attaching a patch that makes it a bit more robust...
This: 1. checks against a pointer that is a "known problem" 2. tries to determine if the place you're about to branch to looks at all like a function
Good heuristic! We'll need one for PowerPC code as well. I can supply. (A nit, "looks like a 4-bit aligned pointer" should read 4-byte aligned.) r=beard
r=beard
+// The following are pointers that bamboozle are otherwise feeble "are" s.b. "our", no? "extensible" is misspelled a bit later on. a=brendan@mozilla.org otherwise. /be
checked in, with spelling errors fixed.
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: