Boost logo

Boost :

From: SourceForge.net (noreply_at_[hidden])
Date: 2005-08-17 07:37:49


Bugs item #1262038, was opened at 2005-08-17 14:37
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=107586&aid=1262038&group_id=7586

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: macchese (macchese)
Assigned to: Nobody/Anonymous (nobody)
Summary: boost:signals SIGSEV

Initial Comment:
hi all,
I'm using boost-1_33 with
$ g++ --v
Reading specs
from /usr/lib/gcc/i586-mandrake-linux-gnu/3.4.3/specs
Configured with: ../configure --prefix=/usr
--libexecdir=/usr/lib --with-slibdir=/lib
--mandir=/usr/share/man --infodir=/usr/share/info
--enable-shared --enable-threads=posix
--disable-checking --enable-long-long
--enable-__cxa_atexit --enable-clocale=gnu
--disable-libunwind-exceptions
--enable-languages=c,c++,ada,f77,objc,java
--host=i586-mandrake-linux-gnu --with-system-zlib
Thread model: posix
gcc version 3.4.3 (Mandrakelinux 10.2 3.4.3-7mdk)
 
and, just compiled the first example from
http://www.boost.org/doc/html/signals/tutorial.html#id1280117
 I obtain a segmentation fault.
 
this is the trace from gdb
[max_at_macchese temp]$ gdb ./unitest
GNU gdb 6.3-3.1.102mdk (Mandrakelinux)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public
License, and you are
welcome to change it and/or distribute copies of it under
certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show
warranty" for details.
This GDB was configured as
"i586-mandrake-linux-gnu"...Using host libthread_db library
"/lib/tls/libthread_db.so.1".
 
(gdb) r
Starting program: /home/max/src/temp/unitest
 
Program received signal SIGSEGV, Segmentation fault.
0x0804bbdf in std::less<int>::operator() ()
(gdb) bt
#0 0x0804bbdf in std::less<int>::operator() ()
#1 0x0804b901 in
boost::signals::detail::any_bridge_compare<std::less<int>,
int>::operator() ()
#2 0x0804b3d1 in
boost::detail::function::function_obj_invoker2<boost::signals::detail::any_bridge_compare<std::less<int>,
int>, bool, boost::any, boost::any>::invoke ()
#3 0xb7fdf7e0 in boost::function2<bool, boost::any,
boost::any, std::allocator<boost::function_base>
>::operator() (
    this=0x8050030, a0={content = 0x80500c0},
a1={content = 0x8050080}) at function_template.hpp:576
#4 0xb7fe049e in std::_Rb_tree<boost::any,
std::pair<boost::any const,
std::list<boost::signals::detail::connection_slot_pair,
std::allocator<boost::signals::detail::connection_slot_pair>
> >, std::_Select1st<std::pair<boost::any const,
std::list<boost::signals::detail::connection_slot_pair,
std::allocator<boost::signals::detail::connection_slot_pair>
> > >, boost::function2<bool, boost::any, boost::any,
std::allocator<boost::function_base> >,
std::allocator<std::pair<boost::any
const,std::list<boost::signals::detail::connection_slot_pair,
std::allocator<boost::signals::detail::connection_slot_pair>
> > >>::lower_bound (this=0x8050030, __k=@0xbffff1e0) at
stl_tree.h:1154
#5 0xb7fdf6dd in std::map<boost::any,
std::list<boost::signals::detail::connection_slot_pair,
std::allocator<boost::signals::detail::connection_slot_pair>
>, boost::function2<bool, boost::any, boost::any,
std::allocator<boost::function_base>
>,std::allocator<std::pair<boost::any const,
std::list<boost::signals::detail::connection_slot_pair,
std::allocator<boost::signals::detail::connection_slot_pair>
> > > >::lower_bound (this=0x8050030, __x=@0xbffff1e0)
at stl_map.h:540
#6 0xb7fdec09 in std::map<boost::any,
std::list<boost::signals::detail::connection_slot_pair,
std::allocator<boost::signals::detail::connection_slot_pair>
>, boost::function2<bool, boost::any, boost::any,
std::allocator<boost::function_base>
>,std::allocator<std::pair<boost::any const,
std::list<boost::signals::detail::connection_slot_pair,
std::allocator<boost::signals::detail::connection_slot_pair>
> > > >::operator[] (this=0x8050030, __k=@0xbffff1e0) at
stl_map.h:336
#7 0xb7fdddad in
boost::signals::detail::named_slot_map::clear
(this=0x8050030)
    
at /home/max/src/boost_1_33_0/libs/signals/build/../src/named_slot_map.cpp:81
#8 0xb7fddce7 in named_slot_map (this=0x8050030,
compare=@0xbffff2d0)
    
at /home/max/src/boost_1_33_0/libs/signals/build/../src/named_slot_map.cpp:74
#9 0xb7fe19bf in signal_base_impl (this=0x8050028,
comp=@0xbffff2d0, combiner=@0xbffff2e0)
    
at /home/max/src/boost_1_33_0/libs/signals/build/../src/signal_base.cpp:23
#10 0xb7fe23c0 in signal_base (this=0xbffff390,
comp=@0xbffff2d0, combiner=@0xbffff2e0)
    
at /home/max/src/boost_1_33_0/libs/signals/build/../src/signal_base.cpp:179
#11 0x0804a0cc in boost::signal0<void,
boost::last_value<void>, int, std::less<int>,
boost::function<void ()(), std::allocator<void> > >::signal0 ()
#12 0x08049921 in boost::signal<void ()(),
boost::last_value<void>, int, std::less<int>,
boost::function<void ()(), std::allocator<void> > >::signal ()
#13 0x08049601 in main ()
(gdb)
 
I compiled the source (in attach) by:
g++ main.cpp -o unitest -I/usr/local/include
-I/usr/local/include/boost-1_33/ -L/usr/local/lib
-lboost_signals-gcc-d
 
I tryied also libboost_signals-gcc-mt-d with the same
result.
hope this help
 
 

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=107586&aid=1262038&group_id=7586

-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Boost-bugs mailing list
Boost-bugs_at_[hidden]
https://lists.sourceforge.net/lists/listinfo/boost-bugs


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk