Subject: [Boost-bugs] [Boost C++ Libraries] #2555: SIGTRAP received while calling a wrapped function with ""
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-12-01 16:00:35
#2555: SIGTRAP received while calling a wrapped function with ""
------------------------------------------------+---------------------------
Reporter: bruno dot lalande at gmail dot com | Owner: dave
Type: Bugs | Status: new
Milestone: Boost 1.38.0 | Component: Python
Version: Boost 1.36.0 | Severity: Problem
Keywords: |
------------------------------------------------+---------------------------
We have a function that takes a std::string in parameter, and we wrap it
using Boost.Python:
void foo(string s)
{
cout << "foo" << endl;
}
BOOST_PYTHON_MODULE(mymodule)
{
def("foo", &foo);
}
When we call it under gdb, we receive a SIGTRAP signal (see attachment).
Note that the problem disappears if the std::string is replaced by a const
char* or if we pass a non-empty literal string. Also, it only appears
under gdb, a normal run won't make the program crash.
Here are the different platforms tested:
* win32 - python2.2.3 - gcc3.4.5 - boost1.35 - gdb6.8 : KO
* win32 - python2.5.2 - gcc3.4.5 - boost1.35 - gdb6.8 : KO
* win32 - python2.5.2 - gcc3.4.5 - boost1.36 - gdb6.8 : KO
* win32 - python2.5.2 - gcc4.2.1-sjlj - boost1.36 - gdb6.8 : KO
* redhat 7.2 - python2.4. - gcc3.3.6 - boost1.35 - gdb5.0 : OK
* ubuntu 8.10 - python2.5.2 - gcc4.3.2 - boost1.35 - gdb6.8: OK
So the problem seems to be reproducible only with win32.
Bruno
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/2555> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:59 UTC