[ 
https://issues.apache.org/jira/browse/MESOS-973?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13893074#comment-13893074
 ] 

Ian Downes commented on MESOS-973:
----------------------------------

GNU gdb 6.3.50-20050815 (Apple version gdb-1824) (Wed Feb  6 22:51:23 UTC 2013)
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 "x86_64-apple-darwin"...Reading symbols for shared 
libraries .... done

(gdb) run --gtest_filter="IO.BlockingWrite" --gtest_repeat=100 
--gtest_break_on_failure
Starting program: /Users/idownes/projects/mesos/build/3rdparty/libprocess/tests 
--gtest_filter="IO.BlockingWrite" --gtest_repeat=100 --gtest_break_on_failure
Reading symbols for shared libraries +++.............................. done

Repeating all tests (iteration 1) . . .

Note: Google Test filter = IO.BlockingWrite
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from IO
[ RUN      ] IO.BlockingWrite

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x0000000101418ff8
[Switching to process 58943 thread 0x1a07]
0x00007fff8ddc4308 in tiny_malloc_from_free_list ()

#0  0x00007fff8ddc4308 in tiny_malloc_from_free_list ()
#1  0x00007fff8ddc4b08 in szone_malloc_should_clear ()
#2  0x00007fff8ddb7183 in malloc_zone_malloc ()
#3  0x00007fff8ddb7bd7 in malloc ()
#4  0x00007fff82313347 in operator new ()
#5  0x0000000100023ee2 in std::_Deque_base<std::tr1::function<void ()(Nothing 
const&)>, std::allocator<std::tr1::function<void ()(Nothing const&)> > 
>::_M_initialize_map (this=0x
102cdf568, __num_elements=0) at http_tests.cpp:441
#6  0x0000000100024056 in std::_Deque_iterator<std::tr1::function<void 
()(Nothing const&)>, std::tr1::function<void ()(Nothing const&)>&, 
std::tr1::function<void ()(Nothing const
&)>*>::_Deque_iterator () at /usr/include/c++/4.2.1/bits/stl_deque.h:385
#7  0x0000000100024056 in std::deque<std::tr1::function<void ()(Nothing 
const&)>, std::allocator<std::tr1::function<void ()(Nothing const&)> > >::deque 
(this=0x102cdf568, __x=@0x
1014192b0) at stl_deque.h:708
#8  0x00000001000245bd in std::deque<std::tr1::function<void ()(Nothing 
const&)>, std::allocator<std::tr1::function<void ()(Nothing const&)> > >::deque 
() at /usr/include/c++/4.2
.1/bits/stl_deque.h:383
#9  0x00000001000245bd in process::Future<Nothing>::Data::Data 
(this=0x102cdf540) at stl_deque.h:135
#10 0x00000001001489e1 in process::Future<Nothing>::Data::Data () at 
/Users/idownes/projects/mesos/3rdparty/libprocess/include/process/future.hpp:787
#11 0x00000001001489e1 in process::Future<Nothing>::Future () at 
/Users/idownes/projects/mesos/3rdparty/libprocess/include/process/future.hpp:787
#12 0x00000001001489e1 in process::Future<unsigned long>::then<Nothing> 
(this=0x101419628, f=@0x101419560) at process.cpp:550
#13 0x0000000100149035 in std::tr1::_Function_base::~_Function_base () at 
/usr/include/c++/4.2.1/tr1/functional:355
#14 0x0000000100149035 in std::tr1::function<process::Future<Nothing> 
()(unsigned long const&)>::~function () at 
/usr/include/c++/4.2.1/tr1/functional:834
#15 0x0000000100149035 in process::Future<unsigned long>::then<Nothing, int, 
process::Owned<std::string>, unsigned long, unsigned long, int, 
process::Owned<std::string>, unsigned
 long, std::tr1::_Placeholder<1> > (this=0x3f243fd2, b=@0x65e0f000000000) at 
future.hpp:355
#16 0x000000010012b0d1 in process::io::internal::_write (fd=8, 
data=@0x65e0f000000000, index=278016) at process.cpp:3774
#17 0x000000010012b2cf in 
boost::shared_ptr<process::Owned<std::string>::Data>::~shared_ptr () at 
process.cpp:3764
#18 0x000000010012b2cf in boost::detail::shared_count::~shared_count () at 
/Users/idownes/projects/mesos/build/3rdparty/libprocess/3rdparty/boost-1.53.0/boost/smart_ptr/detail/sh
ared_count.hpp:23
#19 0x000000010012b2cf in process::io::internal::__write (fd=1059340242, 
data=@0x1014196c8, index=278016, length=256) at process.cpp:329
#20 0x0000000100135e5d in 
boost::shared_ptr<process::Owned<std::string>::Data>::~shared_ptr () at 
bind_iterate.h:45
#21 0x0000000100135e5d in boost::detail::shared_count::~shared_count () at 
/Users/idownes/projects/mesos/build/3rdparty/libprocess/3rdparty/boost-1.53.0/boost/smart_ptr/detail/sh
ared_count.hpp:23
#22 0x0000000100135e5d in std::tr1::_Bind<process::Future<Nothing> (*()(int, 
process::Owned<std::string>, unsigned long, std::tr1::_Placeholder<1>))(int, 
process::Owned<std::stri
ng>, unsigned long, unsigned long)>::operator()<unsigned long const> 
(this=0x3f243fd2, __u1=@0x65e0f000000000) at bind_iterate.h:329
#23 0x0000000100135f14 in std::tr1::_Function_handler<process::Future<Nothing> 
()(unsigned long const&), std::tr1::_Bind<process::Future<Nothing> (*()(int, 
process::Owned<std::st
ring>, unsigned long, std::tr1::_Placeholder<1>))(int, 
process::Owned<std::string>, unsigned long, unsigned long)> >::_M_invoke 
(__functor=@0x3f243fd2, __a1=@0x101605870) at func
tional_iterate.h:488
#24 0x0000000100148ef1 in std::tr1::function<process::Future<Nothing> 
()(unsigned long const&)>::operator() () at 
/usr/include/c++/4.2.1/tr1/functional_iterate.h:865
#25 0x0000000100148ef1 in process::internal::thenf<unsigned long, Nothing> 
(promise=@0x102cddca8, f=@0x102cddcb8, future=@0x101605870) at 
boost_shared_ptr.h:1182
#26 0x000000010014893c in std::tr1::function<void ()(process::Future<unsigned 
long> const&)>::operator() () at 
/usr/include/c++/4.2.1/tr1/functional_iterate.h:865
#27 0x000000010014893c in process::Future<unsigned long>::onAny 
(this=0x1014199a8, callback=@0x8) at functional_iterate.h:1167
#28 0x0000000100148b18 in process::Future<unsigned long>::then<Nothing> 
(this=0x1014199a8, f=@0x102cddc80) at future.hpp:1217
#29 0x0000000100149035 in std::tr1::_Function_base::~_Function_base () at 
/usr/include/c++/4.2.1/tr1/functional:355
#30 0x0000000100149035 in std::tr1::function<process::Future<Nothing> 
()(unsigned long const&)>::~function () at 
/usr/include/c++/4.2.1/tr1/functional:834
#31 0x0000000100149035 in process::Future<unsigned long>::then<Nothing, int, 
process::Owned<std::string>, unsigned long, unsigned long, int, 
process::Owned<std::string>, unsigned
 long, std::tr1::_Placeholder<1> > (this=0x3f243fd2, b=@0x101605870) at 
future.hpp:355

...... then lots, lots more, i.e., I killed it after 15k + frames!

> IO.BlockingWrite always crashes
> -------------------------------
>
>                 Key: MESOS-973
>                 URL: https://issues.apache.org/jira/browse/MESOS-973
>             Project: Mesos
>          Issue Type: Bug
>    Affects Versions: 0.18.0
>         Environment: OSX 10.8.5
>            Reporter: Vinod Kone
>            Assignee: Benjamin Hindman
>            Priority: Blocker
>             Fix For: 0.18.0
>
>
> [ RUN      ] IO.BlockingWrite
> make[5]: *** [check-local] Bus error: 10
> make[4]: *** [check-am] Error 2
> make[3]: *** [check-recursive] Error 1
> make[2]: *** [check-recursive] Error 1
> make[1]: *** [check] Error 2
> make: *** [check-recursive] Error 1



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to