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
3f14ac41
Commit
3f14ac41
authored
May 30, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Print backtrace in vlc_pthread_fatal
parent
234a17d0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
src/misc/threads.c
src/misc/threads.c
+10
-2
No files found.
src/misc/threads.c
View file @
3f14ac41
...
@@ -83,6 +83,10 @@ static inline unsigned long vlc_threadid (void)
...
@@ -83,6 +83,10 @@ static inline unsigned long vlc_threadid (void)
return
v
.
i
;
return
v
.
i
;
}
}
#ifdef __GLIBC__
# include <execinfo.h>
#endif
/*****************************************************************************
/*****************************************************************************
* vlc_thread_fatal: Report an error from the threading layer
* vlc_thread_fatal: Report an error from the threading layer
*****************************************************************************
*****************************************************************************
...
@@ -100,7 +104,11 @@ void vlc_pthread_fatal (const char *action, int error,
...
@@ -100,7 +104,11 @@ void vlc_pthread_fatal (const char *action, int error,
#ifdef __GLIBC__
#ifdef __GLIBC__
/* Avoid the strerror_r() prototype brain damage in glibc */
/* Avoid the strerror_r() prototype brain damage in glibc */
errno
=
error
;
errno
=
error
;
fprintf
(
stderr
,
" Error message: %m
\n
"
);
dprintf
(
2
,
" Error message: %m at:
\n
"
);
void
*
stack
[
20
];
int
len
=
backtrace
(
stack
,
sizeof
(
stack
)
/
sizeof
(
stack
[
0
]));
backtrace_symbols_fd
(
stack
,
len
,
2
);
#else
#else
char
buf
[
1000
];
char
buf
[
1000
];
const
char
*
msg
;
const
char
*
msg
;
...
@@ -118,9 +126,9 @@ void vlc_pthread_fatal (const char *action, int error,
...
@@ -118,9 +126,9 @@ void vlc_pthread_fatal (const char *action, int error,
break
;
break
;
}
}
fprintf
(
stderr
,
" Error message: %s
\n
"
,
msg
);
fprintf
(
stderr
,
" Error message: %s
\n
"
,
msg
);
fflush
(
stderr
);
#endif
#endif
fflush
(
stderr
);
abort
();
abort
();
}
}
#else
#else
...
...
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