XPInstall dumps core on startup itself....

VERIFIED FIXED in mozilla0.9

Status

SeaMonkey
Installer
P4
normal
VERIFIED FIXED
18 years ago
14 years ago

People

(Reporter: Girish Manwani, Assigned: Samir Gehani)

Tracking

Trunk
mozilla0.9
Sun
Solaris

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [xpibug])

Attachments

(1 attachment)

(Reporter)

Description

18 years ago
The installer binary namely mozilla-installer-bin dumps core when started..

The stack trace seems to imply that some variable is uninitialized before it is
used.

The culprit is ..

int
nsComponent::AddDependee(char *aDependee)
{
    if (!aDependee)
        return E_PARAM;

-->culprit    mDependees[mNextDependeeIdx] = aDependee;
    mDependees[++mNextDependeeIdx] = NULL;

    return OK;
}

at this point mNextDependeeIdx is not initialized so has a very large value(out 
of bounds and dumps core).
(Reporter)

Comment 1

18 years ago
Created attachment 19073 [details] [diff] [review]
patch to initialize variable before it is used...
(Assignee)

Updated

18 years ago
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Priority: P3 → P1

Updated

18 years ago
QA Contact: gemal → gbush
Keywords: nsbeta1, patch
Whiteboard: [xpibug]
Moz 0.9 tasks
Target Milestone: --- → mozilla0.9
(Assignee)

Updated

18 years ago
Priority: P1 → P4

Updated

18 years ago
Keywords: nsbeta1 → nsbeta1+
(Assignee)

Comment 3

18 years ago
This was fixed last Friday (2001-03-02).
Status: ASSIGNED → RESOLVED
Last Resolved: 18 years ago
Resolution: --- → FIXED

Comment 4

18 years ago
verified in build 2001030704
verified code fix
Status: RESOLVED → VERIFIED
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.