Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
Kea
Commits
bb22c63e
Commit
bb22c63e
authored
Jun 17, 2011
by
Jelte Jansen
Browse files
[master] workaround for OSX clang problem
reviewed on jabber
parent
2f0a32d5
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/python/isc/log/log.cc
View file @
bb22c63e
...
...
@@ -29,6 +29,20 @@ using namespace isc::log;
using
std
::
string
;
using
boost
::
bind
;
// We encountered a strange problem with Clang (clang version 2.8
// (tags/RELEASE_28 115909)) on OSX, where unwinding the stack
// segfaults the moment this exception was thrown and caught.
//
// Placing it in a named namespace instead of the original
// unnamed namespace appears to solve this, so as a temporary
// workaround, we create a local randomly named namespace here
// to solve this issue.
namespace
clang_unnamed_namespace_workaround
{
// To propagate python exceptions trough our code
class
InternalError
{};
}
using
namespace
clang_unnamed_namespace_workaround
;
namespace
{
// This is for testing only. The real module will have it always set as
...
...
@@ -361,9 +375,6 @@ Logger_isDebugEnabled(LoggerWrapper* self, PyObject* args) {
}
}
// To propagate python exceptions trough our code
class
InternalError
{};
string
objectToStr
(
PyObject
*
object
,
bool
convert
)
{
PyObject
*
cleanup
(
NULL
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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