Opened 18 years ago

Closed 16 years ago

#303 closed Support Requests (Out of Date)

bug in boost using STLport?

Reported by: andreasfuchs Owned by: nobody
Milestone: Component: None
Version: None Severity:
Keywords: Cc:

Description

Hi,

I want to run a project under Visual .Net 2003 using 
boost1.31.0 and STLport. Compilation and linking runs 
perfect. But if I start the excecutable the debugger 
terminates with an "Access violation" error at at line 97 
in _construct.h of STLport.
I posted this message to the STLport forum. They told 
me that this could also be a bug in the boost library 
because before this error occurs some boost functions 
are called.
So are there any known bugs using boost together with 
STLport und Visual .Net?

Any help would be appreciated. Thanks a lot

Andi

Change History (3)

comment:1 by david_abrahams, 18 years ago

Logged In: YES 
user_id=52572

This could also just as easily be a bug in your code, or your 
code or the Boost libraries you're linking with may have 
different (incompatible) build options than the STLPort library 
you're linking with.  I don't know of any problems using Boost 
with STLPort, but to tell you any more we'd need more 
information, like a stack backtrace, and some hint of what 
your code is doing with Boost.  If you could post a minimal, 
stripped-down application that demonstrates the crash, that 
would be best.

comment:2 by andreasfuchs, 18 years ago

Logged In: YES 
user_id=1126269

Hi,

the project I am trying to run under Visual .Net formarly runs 
perfect under Unix with the boost and standard STL.
Unfortunately I can not post a minimal application because 
the project is no open source. Maybe the stack backtrace 
can help:

The Call Stack of this is:
> pendelbeispiel.exe!
_STL::_Construct<CrobTransformationSetRNE 
*,CrobTransformationSetRNE *>(CrobTransformationSetRNE * 
* __p=0x004752b0, CrobTransformationSetRNE * const & 
__val=0x002f7df0) Line 97 + 0x1f C++
pendelbeispiel.exe!_STL::vector<CrobTransformationSetRNE 
*,_STL::allocator<CrobTransformationSetRNE *> 
>::push_back(CrobTransformationSetRNE * const & 
__x=0x002f7df0) Line 333 + 0x10 C++
pendelbeispiel.exe!
CrobSolverSetupDFSDefaultVisitor2C<CrobSolverInvDynRNE,Cro
bConnectorImplRNE3d<CrobMBSCoordReprBF>,CrobConnectorI
mplRNE1d<CrobMBSCoordReprBF> 
>::finish_verteCbConnectableNode * v=0x002f7df0, const 
CrobBoostGraph & g={...}) Line 226 C++
pendelbeispiel.exe!
boost::detail::depth_first_visit_impl<CrobSolverInvDynRNE,Cro
bSolverSetupDFSDefaultVisitor2C<CrobSolverInvDynRNE,CrobC
onnectorImplRNE3d<CrobMBSCoordReprBF>,CrobConnectorImpl
RNE1d<CrobMBSCoordReprBF> 
>,boost::associative_property_map<_STL::map<CbConnectabl
eNode *,enum 
boost::default_color_type,_STL::less<CbConnectableNode 
*>,_STL::allocator<_STL::pair<CbConnectableNode * 
const,enum boost::default_color_type> > > 
>,boost::detail::nontruth2>(const CrobSolverInvDynRNE & g=
{...}, CbConnectableNode * u=0x002f7df0, 
CrobSolverSetupDFSDefaultVisitor2C<CrobSolverInvDynRNE,Cro
bConnectorImplRNE3d<CrobMBSCoordReprBF>,CrobConnectorI
mplRNE1d<CrobMBSCoordReprBF> > & vis={...}, 
boost::associative_property_map<_STL::map<CbConnectableN
ode *,enum 
boost::default_color_type,_STL::less<CbConnectableNode 
*>,_STL::allocator<_STL::pair<CbConnectableNode * 
const,enum boost::default_color_type> > > > color={...}, 
boost::detail::nontruth2 func={...}) Line 168 C++
pendelbeispiel.exe!
boost::depth_first_visit<CrobSolverInvDynRNE,CrobSolverSetu
pDFSDefaultVisitor2C<CrobSolverInvDynRNE,CrobConnectorImpl
RNE3d<CrobMBSCoordReprBF>,CrobConnectorImplRNE1d<Crob
MBSCoordReprBF> 
>,boost::associative_property_map<_STL::map<CbConnectabl
eNode *,enum 
boost::default_color_type,_STL::less<CbConnectableNode 
*>,_STL::allocator<_STL::pair<CbConnectableNode * 
const,enum boost::default_color_type> > > > >(const 
CrobSolverInvDynRNE & g={...}, CbConnectableNode * 
u=0x002f6b38, 
CrobSolverSetupDFSDefaultVisitor2C<CrobSolverInvDynRNE,Cro
bConnectorImplRNE3d<CrobMBSCoordReprBF>,CrobConnectorI
mplRNE1d<CrobMBSCoordReprBF> > vis={...}, 
boost::associative_property_map<_STL::map<CbConnectableN
ode *,enum 
boost::default_color_type,_STL::less<CbConnectableNode 
*>,_STL::allocator<_STL::pair<CbConnectableNode * 
const,enum boost::default_color_type> > > > color={...}) 
Line 368 + 0x1e C++
pendelbeispiel.exe!
CrobSolverBuilderInvDynRNE<CrobMBSCoordReprBF>::setupSw
eeps(CrobSolverInvDynRNE & model={...}, 
CrobTransmissionImpl * rootImpl=0x002f6b38) Line 219 + 0x27 
C++
pendelbeispiel.exe!CrobSolverBuilderInvDynRNEBase::create
(CrobModelSpec & spec={...}, CrobMbsEntSpec * 
refNode=0x0012fdf4, const _STL::vector<type_info const 
*,_STL::allocator<type_info const *> > & refNode_signature=
{...}) Line 420 C++
pendelbeispiel.exe!
CrobSolverBuilderInvDynRNE<CrobMBSCoordReprBF>::create
(CrobModelSpec & spec={...}, CrobMbsEntSpec * 
root=0x0012fdf4, const _STL::vector<type_info const 
*,_STL::allocator<type_info const *> > & root_signature=
{...}) Line 245 + 0x18 C++
pendelbeispiel.exe!main() Line 77 + 0x4f C++
pendelbeispiel.exe!mainCRTStartup() Line 259 + 0x19 C
KERNEL32.DLL!77e81af6() 



The most important part we use is th Boost Graph Library.

Thanks

Andi

comment:3 by René Rivera, 16 years ago

Status: assignedclosed
Note: See TracTickets for help on using tickets.