$ while true; do echo -n .; ./exc1; done ...........................................................................................................................Segmentation fault (core dumped) ..........................................Segmentation fault (core dumped) .........................................Segmentation fault (core dumped) ......................Segmentation fault (core dumped) ..........Segmentation fault (core dumped) .............................. $ gdb exc1 core.9889 GNU gdb 6.8-debian Copyright (C) 2008 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu"... Reading symbols from /usr/local/yimap/lib/libboost_thread.so.1.40.0...done. Loaded symbols for /usr/local/yimap/lib/libboost_thread.so.1.40.0 Reading symbols from /usr/local/yimap/lib/libboost_system.so.1.40.0...done. Loaded symbols for /usr/local/yimap/lib/libboost_system.so.1.40.0 Reading symbols from /usr/lib/libstdc++.so.6...done. Loaded symbols for /usr/lib/libstdc++.so.6 Reading symbols from /lib/libm.so.6...done. Loaded symbols for /lib/libm.so.6 Reading symbols from /lib/libgcc_s.so.1...done. Loaded symbols for /lib/libgcc_s.so.1 Reading symbols from /lib/libc.so.6...done. Loaded symbols for /lib/libc.so.6 Reading symbols from /lib/librt.so.1...done. Loaded symbols for /lib/librt.so.1 Reading symbols from /lib/libpthread.so.0...done. Loaded symbols for /lib/libpthread.so.0 Reading symbols from /lib/ld-linux-x86-64.so.2...done. Loaded symbols for /lib64/ld-linux-x86-64.so.2 Core was generated by `./exc1'. Program terminated with signal 11, Segmentation fault. [New process 10076] [New process 10800] [New process 10799] [New process 10797] [New process 10795] [New process 10796] [New process 10794] [New process 10793] [New process 10792] [New process 10791] [New process 10790] [New process 10789] [New process 10788] [New process 10787] [New process 10786] [New process 10785] [New process 10781] [New process 10780] [New process 10778] [New process 10777] [New process 10776] [New process 10774] [New process 10772] [New process 10755] [New process 10661] [New process 10660] [New process 10652] [New process 10650] [New process 10623] [New process 10560] [New process 10559] [New process 10556] [New process 10555] [New process 10542] [New process 10495] [New process 10494] [New process 10388] [New process 10342] [New process 10329] [New process 10274] [New process 10218] [New process 10188] [New process 10187] [New process 10161] [New process 10074] [New process 10073] [New process 10072] [New process 10070] [New process 9985] [New process 9984] [New process 9983] [New process 9982] [New process 9981] [New process 9923] [New process 9922] [New process 9921] [New process 9920] [New process 9919] [New process 9898] [New process 9897] [New process 9896] [New process 9895] [New process 9894] [New process 9893] [New process 9892] [New process 9891] [New process 9890] [New process 9889] #0 0x00002ab300000000 in ?? () (gdb) bt #0 0x00002ab300000000 in ?? () #1 0x00000000004054e0 in boost::exception_detail::refcount_ptr::release (this=0x2aaab0002938) at /usr/local/yimap/include/boost/exception/exception.hpp:73 #2 0x00000000004054f7 in ~refcount_ptr (this=0x2aaab0002938) at /usr/local/yimap/include/boost/exception/exception.hpp:28 #3 0x000000000040e3b8 in ~exception (this=0x2aaab0002930) at /usr/local/yimap/include/boost/exception/exception.hpp:255 #4 0x000000000040f04b in ~err (this=0x2aaab0002930) at exc1.cc:10 #5 0x000000000040f18b in ~clone_impl (this=0x2aaab0002930) at /usr/local/yimap/include/boost/exception/exception.hpp:368 #6 0x00000000004062ed in boost::checked_delete (x=0x2aaab0002960) at /usr/local/yimap/include/boost/checked_delete.hpp:34 #7 0x00000000004077a1 in boost::detail::sp_counted_impl_p::dispose (this=0x2aaab0000c40) at /usr/local/yimap/include/boost/smart_ptr/detail/sp_counted_impl.hpp:78 #8 0x0000000000404854 in boost::detail::sp_counted_base::release ( this=0x2aaab0000c40) at /usr/local/yimap/include/boost/smart_ptr/detail/sp_counted_base_gcc_x86.hpp:145 #9 0x00000000004048b0 in ~shared_count (this=0x55829f58) at /usr/local/yimap/include/boost/smart_ptr/detail/shared_count.hpp:217 #10 0x0000000000404c37 in ~shared_ptr (this=0x55829f50) at /usr/local/yimap/include/boost/smart_ptr/shared_ptr.hpp:169 #11 0x0000000000404dac in ~exception_ptr (this=0x55829f48) at /usr/local/yimap/include/boost/exception_ptr.hpp:43 #12 0x000000000040cd45 in ~future (this=0x55829f40) at exc1.cc:15 #13 0x00000000004042e4 in consumer () at exc1.cc:70 #14 0x000000000040438d in consume () at exc1.cc:77 #15 0x0000000000407455 in boost::detail::thread_data::run ( this=0x2aaaac000fc0) at /usr/local/yimap/include/boost/thread/detail/thread.hpp:56 #16 0x00002ab33dd8d33f in thread_proxy () from /usr/local/yimap/lib/libboost_thread.so.1.40.0 #17 0x00002ab33eeb1fc7 in start_thread () from /lib/libpthread.so.0 #18 0x00002ab33ea1d5ad in clone () from /lib/libc.so.6 #19 0x0000000000000000 in ?? () (gdb) $ g++ -v Using built-in specs. Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Debian 4.3.3-1' --with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.3 --program-suffix=-4.3 --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-mpfr --enable-cld --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu Thread model: posix gcc version 4.3.3 (Debian 4.3.3-1) $ cat /proc/cpuinfo processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 23 model name : Intel(R) Xeon(R) CPU E5440 @ 2.83GHz stepping : 6 cpu MHz : 2833.474 cache size : 6144 KB physical id : 0 siblings : 4 core id : 0 cpu cores : 4 fpu : yes fpu_exception : yes cpuid level : 10 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx lm constant_tsc pni monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr dca lahf_lm bogomips : 5670.97 clflush size : 64 cache_alignment : 64 address sizes : 38 bits physical, 48 bits virtual power management: processor : 1 vendor_id : GenuineIntel cpu family : 6 model : 23 model name : Intel(R) Xeon(R) CPU E5440 @ 2.83GHz stepping : 6 cpu MHz : 2833.474 cache size : 6144 KB physical id : 1 siblings : 4 core id : 0 cpu cores : 4 fpu : yes fpu_exception : yes cpuid level : 10 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx lm constant_tsc pni monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr dca lahf_lm bogomips : 5667.34 clflush size : 64 cache_alignment : 64 address sizes : 38 bits physical, 48 bits virtual power management: processor : 2 vendor_id : GenuineIntel cpu family : 6 model : 23 model name : Intel(R) Xeon(R) CPU E5440 @ 2.83GHz stepping : 6 cpu MHz : 2833.474 cache size : 6144 KB physical id : 0 siblings : 4 core id : 1 cpu cores : 4 fpu : yes fpu_exception : yes cpuid level : 10 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx lm constant_tsc pni monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr dca lahf_lm bogomips : 5619.28 clflush size : 64 cache_alignment : 64 address sizes : 38 bits physical, 48 bits virtual power management: processor : 3 vendor_id : GenuineIntel cpu family : 6 model : 23 model name : Intel(R) Xeon(R) CPU E5440 @ 2.83GHz stepping : 6 cpu MHz : 2833.474 cache size : 6144 KB physical id : 1 siblings : 4 core id : 1 cpu cores : 4 fpu : yes fpu_exception : yes cpuid level : 10 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx lm constant_tsc pni monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr dca lahf_lm bogomips : 5667.35 clflush size : 64 cache_alignment : 64 address sizes : 38 bits physical, 48 bits virtual power management: processor : 4 vendor_id : GenuineIntel cpu family : 6 model : 23 model name : Intel(R) Xeon(R) CPU E5440 @ 2.83GHz stepping : 6 cpu MHz : 2833.474 cache size : 6144 KB physical id : 0 siblings : 4 core id : 2 cpu cores : 4 fpu : yes fpu_exception : yes cpuid level : 10 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx lm constant_tsc pni monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr dca lahf_lm bogomips : 5667.31 clflush size : 64 cache_alignment : 64 address sizes : 38 bits physical, 48 bits virtual power management: processor : 5 vendor_id : GenuineIntel cpu family : 6 model : 23 model name : Intel(R) Xeon(R) CPU E5440 @ 2.83GHz stepping : 6 cpu MHz : 2833.474 cache size : 6144 KB physical id : 1 siblings : 4 core id : 2 cpu cores : 4 fpu : yes fpu_exception : yes cpuid level : 10 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx lm constant_tsc pni monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr dca lahf_lm bogomips : 5667.35 clflush size : 64 cache_alignment : 64 address sizes : 38 bits physical, 48 bits virtual power management: processor : 6 vendor_id : GenuineIntel cpu family : 6 model : 23 model name : Intel(R) Xeon(R) CPU E5440 @ 2.83GHz stepping : 6 cpu MHz : 2833.474 cache size : 6144 KB physical id : 0 siblings : 4 core id : 3 cpu cores : 4 fpu : yes fpu_exception : yes cpuid level : 10 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx lm constant_tsc pni monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr dca lahf_lm bogomips : 5667.31 clflush size : 64 cache_alignment : 64 address sizes : 38 bits physical, 48 bits virtual power management: processor : 7 vendor_id : GenuineIntel cpu family : 6 model : 23 model name : Intel(R) Xeon(R) CPU E5440 @ 2.83GHz stepping : 6 cpu MHz : 2833.474 cache size : 6144 KB physical id : 1 siblings : 4 core id : 3 cpu cores : 4 fpu : yes fpu_exception : yes cpuid level : 10 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx lm constant_tsc pni monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr dca lahf_lm bogomips : 5667.35 clflush size : 64 cache_alignment : 64 address sizes : 38 bits physical, 48 bits virtual power management: