Closed
Bug 205980
Opened 22 years ago
Closed 22 years ago
mozipcd.exe fails to initialize modules if launched from command line
Categories
(Core :: IPC, defect, P3)
Core
IPC
Tracking
()
RESOLVED
FIXED
mozilla1.5alpha
People
(Reporter: darin.moz, Assigned: darin.moz)
Details
(Whiteboard: [ETA: June 12, 2003])
Attachments
(1 file)
1.71 KB,
patch
|
ccarlen
:
review+
alecf
:
superreview+
|
Details | Diff | Splinter Review |
mozipcd.exe fails to initialize modules if launched from command line.
steps to reproduce:
C:\> cd \path\to\mozilla\dist\bin
C:\path\to\mozilla\dist\bin\> mozipcd.exe
running as .\mozipcd.exe works or specifying any other relative path or the full
path works. the problem is that ipcdWin.cpp looks at argv[0] to determine the
location of the executable. it looks for modules relative to the executable.
this is not a major bug since the client IPC code always launches the daemon
with a full file path.
another related issue is that we should be using WinMain for release builds
instead of main. this is related because it changes how we get at the path of
the executable.
Assignee | ||
Updated•22 years ago
|
Status: NEW → ASSIGNED
Priority: -- → P3
Target Milestone: --- → mozilla1.4final
Assignee | ||
Updated•22 years ago
|
Whiteboard: [ETA: June 12, 2003]
Assignee | ||
Comment 1•22 years ago
|
||
i'm not going to get a chance to work on this because i'm going on vacation now,
but it seems like something that would be trivial to fix... just need to replace
main() with WinMain() in optimized builds (see ipcdWin.cpp) and fixup the
command line handling a bit.
conrad, john: either of you interested in taking this for 1.4 final?
Target Milestone: mozilla1.4final → mozilla1.5alpha
Assignee | ||
Comment 2•22 years ago
|
||
simple patch to make use of GetModuleFileName instead of argv. also, this
patch makes it so the console is disabled in non-debug builds.
Assignee | ||
Updated•22 years ago
|
Attachment #126279 -
Flags: review?(ccarlen)
Comment 3•22 years ago
|
||
Comment on attachment 126279 [details] [diff] [review]
v1 patch
r=ccarlen
Attachment #126279 -
Flags: review?(ccarlen) → review+
Assignee | ||
Updated•22 years ago
|
Attachment #126279 -
Flags: superreview?(alecf)
Comment 4•22 years ago
|
||
Comment on attachment 126279 [details] [diff] [review]
v1 patch
I think you can check for MOZ_WINCONSOLE as well, to decide if you need a
WinMain - its supposed to be used to force a console in optimized builds (which
you might find useful for debugging mozipcd!)
sr=alecf with or without the MOZ_WINCONSOLE stuff
Attachment #126279 -
Flags: superreview?(alecf) → superreview+
Assignee | ||
Comment 5•22 years ago
|
||
fixed-on-trunk
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Updated•16 years ago
|
QA Contact: carosendahl → ipc
You need to log in
before you can comment on or make changes to this bug.
Description
•