Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
98f09b5d
Commit
98f09b5d
authored
Nov 14, 2011
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winvlc: include address space layout in crash reports
Will help to 'undo' ASLR and make those reports useful
parent
1cbf94ae
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
1 deletion
+20
-1
bin/Makefile.am
bin/Makefile.am
+1
-1
bin/winvlc.c
bin/winvlc.c
+19
-0
No files found.
bin/Makefile.am
View file @
98f09b5d
...
...
@@ -45,7 +45,7 @@ vlc_static_LDADD = $(vlc_LDADD)
vlc_static_LDFLAGS
=
$(vlc_LDFLAGS)
if
HAVE_WIN32
vlc_LDADD
+=
-lwininet
vlc_win32_rc.
$(OBJEXT)
vlc_LDADD
+=
-l
psapi
-l
wininet
vlc_win32_rc.
$(OBJEXT)
vlc_DEPENDENCIES
=
vlc_win32_rc.
$(OBJEXT)
else
vlc_LDADD
+=
$(LIBDL)
...
...
bin/winvlc.c
View file @
98f09b5d
...
...
@@ -38,6 +38,8 @@
# endif
# include <shlobj.h>
# include <wininet.h>
# define PSAPI_VERSION 1
# include <psapi.h>
# define HeapEnableTerminationOnCorruption (HEAP_INFORMATION_CLASS)1
static
void
check_crashdump
(
void
);
LONG
WINAPI
vlc_exception_filter
(
struct
_EXCEPTION_POINTERS
*
lpExceptionInfo
);
...
...
@@ -343,6 +345,23 @@ LONG WINAPI vlc_exception_filter(struct _EXCEPTION_POINTERS *lpExceptionInfo)
pContext
->
Ebp
,
pContext
->
Eip
,
pContext
->
Esp
);
#endif
HANDLE
hpid
=
OpenProcess
(
PROCESS_QUERY_INFORMATION
|
PROCESS_VM_READ
,
FALSE
,
GetCurrentProcessId
());
if
(
hpid
)
{
HMODULE
mods
[
1024
];
DWORD
size
;
if
(
EnumProcessModules
(
hpid
,
mods
,
sizeof
(
mods
),
&
size
))
{
fwprintf
(
fd
,
L"
\n\n
[modules]
\n
"
);
for
(
unsigned
int
i
=
0
;
i
<
size
/
sizeof
(
HMODULE
);
i
++
)
{
wchar_t
module
[
256
];
GetModuleFileName
(
mods
[
i
],
module
,
256
);
fwprintf
(
fd
,
L"%p|%s
\n
"
,
mods
[
i
],
module
);
}
}
CloseHandle
(
hpid
);
}
fwprintf
(
fd
,
L"
\n
[stacktrace]
\n
#EIP|base|module
\n
"
);
#ifdef WIN64
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment