Closed
Bug 530012
Opened 16 years ago
Closed 15 years ago
[OS/2] build break in nsPresArena.cpp
Categories
(Core :: Layout, defect)
Tracking
()
RESOLVED
FIXED
mozilla2.0b12
| Tracking | Status | |
|---|---|---|
| status1.9.2 | --- | .17-fixed |
People
(Reporter: dragtext, Assigned: dragtext)
References
Details
Attachments
(2 files, 1 obsolete file)
|
4.61 KB,
patch
|
wuno
:
review+
dveditz
:
approval1.9.2.17+
|
Details | Diff | Splinter Review |
|
4.59 KB,
patch
|
wuno
:
review+
dbaron
:
approval2.0+
|
Details | Diff | Splinter Review |
This file fails to compile due to a lack of OS/2-specific memory handling code. The attached patch adds it.
Note: tests\TestPoisonArea.cpp probably needs similar code to compile on OS/2. I'll look into it when I can.
I:/comm-central/mozilla/layout/base/nsPresArena.cpp: In function 'bool ProbeRegion(PRUword, PRUword)':
I:/comm-central/mozilla/layout/base/nsPresArena.cpp:148: error: expected ')' before '{' token
I:/comm-central/mozilla/layout/base/nsPresArena.cpp:157: error: expected primary-expression before '}' token
I:/comm-central/mozilla/layout/base/nsPresArena.cpp:157: error: expected ';' before '}' token
I:/comm-central/mozilla/layout/base/nsPresArena.cpp:157: warning: no return statement in function returning non-void
Seems the patch needs
unsigned long limit;
if (DosQuerySysInfo(QSV_VIRTUALADDRESSLIMIT, QSV_VIRTUALADDRESSLIMIT,
- (void*)&limit, sizeof(limit)) {
+ (void*)&limit, sizeof(limit))) {
limit = 0x20000000;
| Assignee | ||
Comment 2•16 years ago
|
||
This adds OS/2 support to nsPresArena.cpp & tests/TestPoisonArea.cpp.
I selected 0xfffd0000 as the base address for the "poison memory" area because addresses from 0xfffc0000 to the end aren't mapped to anything (at least for the 4.5 kernel). So, when you're looking at a register dump, if you see 0xfffd07ff in a general purpose register or 0xfffd0800 in EIP, you'll know that something tried accessing memory that had already been freed.
Attachment #413530 -
Attachment is obsolete: true
Comment 3•16 years ago
|
||
(In reply to comment #2)
> Created an attachment (id=416205) [details]
> nsPresArena - v2
Rich, your test passes ok, everything as expected? How about asking zweinberg for review?
[E:\mozbuild1\layout\base\tests]..\..\..\DIST\BIN\TESTPOISONAREA
INFO | negative control allocated at 0x02520000
INFO | positive control allocated at 0x02530000
INFO | poison area allocated at 0xfffd0000 (consolation prize)
TEST-PASS | reading negative control
TEST-PASS | executing negative control
TEST-PASS | writing negative control
TEST-PASS | reading positive control | exception code c0000005
TEST-PASS | executing positive control | exception code c0000005
TEST-PASS | writing positive control | exception code c0000005
TEST-PASS | reading poison area | exception code c0000005
TEST-PASS | executing poison area | exception code c0000005
TEST-PASS | writing poison area | exception code c0000005
Comment 4•15 years ago
|
||
Rich, ping, we should really get your patch reviewed, since we need it for FF-4.x as well as FF-3.6.x. Your patch builds fine and the log of the test is documented in comment #3.
| Assignee | ||
Comment 5•15 years ago
|
||
update to fix bitrot
Attachment #416205 -
Attachment is obsolete: true
| Assignee | ||
Comment 6•15 years ago
|
||
(In reply to comment #3)
> everything as expected?
Given that all the tests pass and this patch has been in use by our nightlies for a year now without any problems, perhaps you could review and approve it.
| Assignee | ||
Updated•15 years ago
|
Attachment #500154 -
Flags: review?(wuno)
Updated•15 years ago
|
Attachment #500154 -
Flags: review?(wuno) → review+
Updated•15 years ago
|
Assignee: nobody → dragtext
Comment 7•15 years ago
|
||
Comment on attachment 500154 [details] [diff] [review]
nsPresArena - v3
The code added is all in ifdef XP_OS2 sections, should be zero risk for the tier1 platforms.
Attachment #500154 -
Flags: approval2.0?
Attachment #500154 -
Flags: approval2.0? → approval2.0+
Updated•15 years ago
|
Keywords: checkin-needed
Comment 8•15 years ago
|
||
Status: NEW → RESOLVED
Closed: 15 years ago
Flags: in-testsuite+
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → mozilla2.0b12
Comment 9•15 years ago
|
||
Comment on attachment 416205 [details] [diff] [review]
nsPresArena - v2 for 1.9.2
just revived v2 of the patch since it is needed for OS/2 on 1.9.2.x (the difference is just an output of the test).
The risk for tier_1 is zero as everything is correctly ifdefed XP_OS2 proven by the checkin of v3 for the trunk.
Attachment #416205 -
Attachment description: nsPresArena - v2 → nsPresArena - v2 for 1.9.2
Attachment #416205 -
Attachment is obsolete: false
Attachment #416205 -
Flags: review+
Attachment #416205 -
Flags: approval1.9.2.15?
Comment 10•15 years ago
|
||
Comment on attachment 416205 [details] [diff] [review]
nsPresArena - v2 for 1.9.2
Approved for 1.9.2.15, a=dveditz for release-drivers
Attachment #416205 -
Flags: approval1.9.2.15? → approval1.9.2.15+
Updated•15 years ago
|
Keywords: checkin-needed
Whiteboard: att 416205 to 1.9.2.15
Comment 11•15 years ago
|
||
Comment 12•15 years ago
|
||
The "3.6.15" we're releasing today does not fix this bug, the release containing this bug fix has been renamed to "3.6.16" and the bugzilla flags will be updated to reflect that soon. Today's release is a re-release of 3.6.14 plus a fix for a bug that prevented many Java applets from starting up.
Updated•7 years ago
|
Product: Core → Core Graveyard
Updated•7 years ago
|
Component: Layout: Misc Code → Layout
Product: Core Graveyard → Core
You need to log in
before you can comment on or make changes to this bug.
Description
•