Breakpoint 1, rfn::PathMutation::mutate (this=0x808e7a8, network=0x808e650) at classes/C_PathMutation.cpp:116 116 short unsigned length = (*this->_len_gen)(); (gdb) l 111 void 112 rfn::PathMutation::mutate(rfn::Adjacency* const network) 113 { 114 115 // construct a path 116 short unsigned length = (*this->_len_gen)(); 117 short unsigned end = (*this->_out_gen)(); 118 short unsigned src = (*this->_in_gen)(); 119 short unsigned tar = 0; 120 if ((*this->_bool_gen)()) { (gdb) c Continuing. Breakpoint 1, rfn::PathMutation::mutate (this=0x808e7a8, network=0x808c2d8) at classes/C_PathMutation.cpp:116 116 short unsigned length = (*this->_len_gen)(); (gdb) Continuing. Breakpoint 1, rfn::PathMutation::mutate (this=0x808e7a8, network=0x808e650) at classes/C_PathMutation.cpp:116 116 short unsigned length = (*this->_len_gen)(); (gdb) Continuing. Breakpoint 1, rfn::PathMutation::mutate (this=0x808e7a8, network=0x808c2d8) at classes/C_PathMutation.cpp:116 116 short unsigned length = (*this->_len_gen)(); (gdb) boost::uniform_smallint::operator()&>, unsigned long> > (this=0x808f89c, eng=...) at /usr/local/include/boost/random/uniform_smallint.hpp:57 57 base_result _range = static_cast(_max-_min)+1; (gdb) 58 base_result _factor = 1; (gdb) 64 base_result r_base = (eng.max)() - (eng.min)(); (gdb) boost::random::detail::uniform_int_float&>, unsigned long>::max (this=0x808f880) at /usr/local/include/boost/random/detail/uniform_int_float.hpp:40 40 result_type max BOOST_PREVENT_MACRO_SUBSTITUTION () const { return _max; } (gdb) boost::random::detail::uniform_int_float&>, unsigned long>::min (this=0x808f880) at /usr/local/include/boost/random/detail/uniform_int_float.hpp:39 39 result_type min BOOST_PREVENT_MACRO_SUBSTITUTION () const { return _min; } (gdb) boost::uniform_smallint::operator()&>, unsigned long> > (this=0x808f89c, eng=...) at /usr/local/include/boost/random/uniform_smallint.hpp:65 65 if(r_base == (std::numeric_limits::max)()) { (gdb) std::numeric_limits::max () at /usr/include/c++/4.4/limits:932 932 { return __LONG_MAX__ * 2UL + 1; } (gdb) boost::uniform_smallint::operator()&>, unsigned long> > (this=0x808f89c, eng=...) at /usr/local/include/boost/random/uniform_smallint.hpp:69 69 r_base += 1; (gdb) 70 if(r_base % _range == 0) { (gdb) 76 r_base /= 2; (gdb) 75 for( ; r_base/_range/32 >= _range; _factor *= 2) (gdb) l 70 if(r_base % _range == 0) { 71 // No quantization effects, good 72 _factor = r_base / _range; 73 } else { 74 // carefully avoid overflow; pessimizing here 75 for( ; r_base/_range/32 >= _range; _factor *= 2) 76 r_base /= 2; 77 } 78 79 return ((eng() - (eng.min)()) / _factor) % _range + _min; (gdb) until 77 boost::uniform_smallint::operator()&>, unsigned long> > (this=0x808f89c, eng=...) at /usr/local/include/boost/random/uniform_smallint.hpp:79 79 return ((eng() - (eng.min)()) / _factor) % _range + _min; (gdb) s boost::random::detail::uniform_int_float&>, unsigned long>::operator() (this=0x808f880) at /usr/local/include/boost/random/detail/uniform_int_float.hpp:46 46 return static_cast(_rng() * _range) + _min; (gdb) Program received signal SIGSEGV, Segmentation fault. 0x08069830 in boost::random::lagged_fibonacci_01::fill (this=0x8080101) at /usr/local/include/boost/random/lagged_fibonacci.hpp:438 438 x[j] = t; (gdb) p t $2 = 2.4385941485715881e-284 (gdb) p x $3 = {1.6578066623128865e-315, 2.4385941485715881e-284, 9.1248820510723474e+192, 4.1976399615905824e-140, 12914794496, 8.0863493760552738e-174, 8590659712, 4.1445204798503149e-315, 2.4385941485715881e-284, 4.3836334281921704e-193, 4.2723352001259997e+96, 1.6578066623128865e-315, 2.4385941485715881e-284, -2.0000001788139343, 4.1976400867207759e-140, 12914794496, 4.3836187804979656e-193, 9.9473076204984434e+86, 1.6578066623128865e-315, 2.4385941485715881e-284, 2.3158420608161778e+77, 6.2419617613991015e+144, 5.7828752524977747e-270, 2.4385941485715881e-284, 1.8205262257909046e-154, -2.0524395635262476e-289, 2.0522739664241227e-289, 12914794753.055084, -1.1300687067387924e-279, 2.0000001788139357, 7.7432900303719725e-121, 12914794496, 5.3460428475793588e-193, 8590666624, 1.6578066771348558e-315, 2.4385941485715881e-284, 1.0565891567377541e+270, 1.2879147695982233e-231, 12914794496, 4.3836187804979656e-193, 4.0218729194188282e-87, 3.9787395735031224e-315, 2.4385941485715881e-284, -1.7272338654456166e-77, 2.3757834497634926e-212, 12914794496, 4.3836187804979656e-193, 2.5245710748203314e-29, 1.326244834796532e-315, 2.4385941485715881e-284, -9.1248820510723474e+192, 1.2879147384045295e-231, 12914794496, 8.0863493760552738e-174, 1.4917961993715992e-154, 7.957481681563008e-315, 2.4385941485715881e-284, 5.3500457348525716e-193, 4.0920900053269502e+149, 2.2380399012269225e-315, 2.4385941485715881e-284, 2.0000001788139343, 2.4804337823332222e-265, 12914794496, 8.0863493760552738e-174, 4.4605333859811058e+43, 5.7194392457793224e-315, 2.4385941485715881e-284, 4.3836334281921733e-193, 1.1032256446422908e+217, 2.8182731253189891e-315, 2.4385941485715881e-284, -4.3836190899428591e-193, 5.8760352699185438e-39, 12914794496, 4.3836187804979656e-193, -4.5771073594078131e-246, 2.8182731253189891e-315, 2.4385941485715881e-284, -2.3158419917987143e+77, 8.8122718980159045e-280, 12914794496, 4.3836187804979656e-193, 2.9742916950025088e+284, 3.2327254282418939e-315, 2.4385941485715881e-284, 3.7857673342076245e-270, 2.7989967704489006e+101, 12914794496, 5.3460553892130545e-193, -4.6570176187588075e-10, 2.984054046488151e-315, 2.4385941485715881e-284, -4.3836192205848767e-193, 9.1226524952445426e+192, 5.7831207589328923e-270, 2.4385941485715881e-284, 4.3836334281921802e-193, 1.6261162585826438e-260, 6.6312343171503693e-315, 2.4385941485715881e-284, -7.880402178695929e+115, -1.8822904527962501e-183, 5.783164083597913e-270, 2.4385941485715881e-284, 5.3500457348525745e-193, -7.4190606358206108e-68, 1.8235876032446742e-315, 2.4385941485715881e-284, -2.0000001788139343, 2.5677994989734846e+207, 12914794496, 4.3836187804979656e-193, -4.5384130157408859e+279, 2.8182731302596456e-315, 2.4385941485715881e-284, -1.0565891567377541e+270, 4.1976494949471972e-140, 12914794496, 4.3836187804979656e-193, 1.3450927246909073e-284, 9.9468300233952115e-316, 2.4385941485715881e-284, 1.7272338654456166e-77, 6.9818057053187966e-251, 12914794496, 4.3836187804979656e-193, -7.5485892267376919e+168, 9.9468299739886469e-316, 2.4385941485715881e-284, 9.1248820510723474e+192, 2.4804355060772283e-265, 12914794496, 4.3836187804979656e-193, -4.6570237249854429e-10, 2.4867112879213218e-315, 2.4385941485715881e-284, -1.4916682796055663e-154, 2.7989984078999002e+101, 12914794496, 5.3460553892130545e-193, -1.6123695454539036e+265, 7.045686620073274e-315, 2.4385941485715881e-284, -7.8804019442445063e+115, 2.7989989919588553e+101, 12914794496, 5.3460553892130545e-193, 1.3924698072301823e+188, 7.0456866250139305e-315, 2.4385941485715881e-284, 1.2882298691619946e-231, 2.7989995760178107e+101, 12914794496, 5.3460553892130545e-193, -7.8811014572499499e+115, 2.2380399111082354e-315, 2.4385941485715881e-284, 6.8056479468910574e+38, 3.8509228653784782e-34, 12914794496, 4.3836187804979656e-193, -1.3337216629041332e+241, 2.818273135200302e-315, 2.4385941485715881e-284, -7.880402178695929e+115, 7.2277175124066628e+221, 5.7832218498179407e-270, 2.4385941485715881e-284, 4.3836334281921831e-193, 131083.705078125, 2.9011636007255395e-315, 2.4385941485715881e-284, -2.0000001788139343, 8.8122832922100679e-280, 12914794496, 4.3836187804979656e-193, 7.4190763329205766e-68, 9.1179254669559666e-316, 2.4385941485715881e-284, -1.0565891567377541e+270, 6.1348749130401286e-92, 12914794496, 5.3460553892130545e-193, 1.7273886782401199e-77, 1.8235876131259871e-315, 2.4385941485715881e-284, 1.7272338654456166e-77, 1.0653396206261698e-255, 12914794496, 4.3836187804979656e-193, 4.3840129103051043e-193, 1.6578066919568252e-315, 2.4385941485715881e-284, 9.1248820510723474e+192, 6.6872448574748828e-198, 12914794496, 4.3836187804979656e-193, 1.6261211043643984e-260, 1.6578066919568252e-315...} (gdb) p x[j] $4 = 1.6578066623128865e-315 (gdb) s Program terminated with signal SIGSEGV, Segmentation fault. The program no longer exists.