Closed
Bug 198938
Opened 23 years ago
Closed 21 years ago
DumpStackToFile broken on Windows XP SP1
Categories
(Core :: XPCOM, defect)
Tracking
()
VERIFIED
DUPLICATE
of bug 297723
People
(Reporter: dbradley, Assigned: dougt)
Details
DumpStackToFile no longer gives accurate stacks under Windows XP SP1. The first
function seems ok, but then after that it displays the wrong functions. I'm also
using OBJDIR. I also tried an older version of the imagehlp.dll and the results
were the same. So not completely sure this is a WinXP issue.
| Reporter | ||
Comment 1•23 years ago
|
||
Also the addresses reported seem to be accurate, it's the translation to a
symbol name that appears to be off. And it appears it may be related to
functions statically linked into the executable as apposed to a DLL
Comment 2•23 years ago
|
||
I'm definitely seeing this as well. Using XPCOM_MEM_REFCNT_LOG on WinXP I get
symbols for JS_ stuff and some general looking xpcom stuff, but for nothing
else. I can attach a file if you need.
| Reporter | ||
Comment 3•23 years ago
|
||
dougt and I talked last night. Dougt thinks it may be the fact that Microsoft no
longer supports the non-64 bit api of these functions. I guess I can see that,
but it's odd that it works for the first few functions. So I'm skeptical, but
anxious to be proven wrong ;-)
| Assignee | ||
Comment 4•23 years ago
|
||
just to clarify, i see no documentation on MSDN regarding the functions that we
are using. It maybe that this approach wasn't supported.
Comment 5•23 years ago
|
||
dougt: which functions? My MSDN library CD (that came next to MSVC 6.0) lists
StackWalk and the other ImageHlp functions... but msdn.microsoft.com doesn't...
what are the new 64bit debugging functions? I coudn't find them.
| Assignee | ||
Comment 6•23 years ago
|
||
I recently got burnt by not looking at the web.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/debug/base/stackwalk64.asp
Comment 7•23 years ago
|
||
I tried to use refcount logging on WinME, and got no stacks at all. It gave an
"tried to access invalid address" or something (localized, too) error message.
I saw
Redistributable: Requires DbgHelp.dll on Windows NT 4.0 and Windows Me/98/95.
on the mentioned msn page, so this might help.
| Reporter | ||
Comment 8•23 years ago
|
||
That's a slightly different problem. The new version of DbgHelp.dll that comes
with WinXP apparently works slightly different, either needing to use the 64 bit
API or something else. Hopefully their isn't some incompatibility between the
VC++ 6.0 symbols and it. It would be interesting to know if the problem
persists on a build using 7.0.
| Reporter | ||
Comment 9•21 years ago
|
||
This should just be marked as a dupe since all the work is done in bug 297723.
At least I was right about the 64 bit api's ;-)
This will make the ref count logging on XP useful again.
*** This bug has been marked as a duplicate of 297723 ***
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → DUPLICATE
Comment 10•21 years ago
|
||
sorry about that, i did know there was a bug for this, i should have had colin
find it (or found it for him).
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•