[Botan-devel] Botan library with Netsieben core dump

Neetu Garg garg_neetu at yahoo.com
Mon Oct 26 18:22:54 EDT 2009


I am new to list if this message is already posted, sorry about that. 

Hi, 

I am using 
"Botan-1.8.5" with Netsieben SSH library
"ne7ssh-1.3.2rc2" . I built both of these libraries as shared and
static and I am linking my source 
code statically with these two 
libraries.

My code in multithreaded (boost thread) and I am running on Linux. It creates different channel for all threads as specified in multithreaded example 
of Netsieben library.Sometimes the code 
runs just fine without any issue. Sometimes it coredumps. I tried checking all the core dumps 
using gdb and looks like all the coming from Botan library calls.

I get 2 
different stack trace. 


The first one that I commonly 
get:--------------------
Core was generated by `./testBarrier'.
Program terminated with signal 11, 
Segmentation fault.
#0 0x081043f7 in Botan::SHA_224_256_BASE::compress_n 
()
(gdb) backtrace
#0 0x081043f7 in Botan::SHA_224_256_BASE::compress_n () 
Cannot access memory at address 0x678d8bc


The second 
one:------------------------Core was generated by `./testBarrier'.
Program terminated with signal 11, 
Segmentation fault.
#0 0x080bc69a in Botan::(anonymous namespace)::hmac_prf 
()
(gdb) backtrace
#0 0x080bc69a in Botan::(anonymous namespace)::hmac_prf 
()
#1 0x080bcbf9 in Botan::HMAC_RNG::randomize ()
#2 0x0811e30b in 
Botan::ANSI_X931_RNG::update_buffer ()
#3 0x0811f4cc in 
Botan::ANSI_X931_RNG::randomize ()
#4 0x0807f571 in 
Botan::AutoSeeded_RNG::is_seeded ()
#5 0x0805a4f4 in 
ne7ssh_kex::constructLocalKex ()
#6 0x0805aa23 in ne7ssh_kex::sendInit 
()
#7 0x08058604 in ne7ssh_connection::connectWithPassword ()
#8 
0x08053fea in ne7ssh::connectWithPassword ()
#9 0x08048573 in printmsg (i=2, 
b=0xbfffd9e8) at testBarrier.cpp:21 #10 0x0804ac5b in 
boost::_bi::bind_t<void, void (*)(int, boost::barrier*), 
boost::_bi::list2<boost::_bi::value<int>, 
boost::_bi::value<boost::barrier*> > >::operator() (this=0x8390258) 
at bind_template.hpp:20
#11 0x0804ac9f in 
__gnu_cxx::new_allocator<std::_List_node<boost::thread*> 
>::deallocate (this=0x8390254, __p=0x8390268)at new_allocator.h:93
#12 
0x0804acb8 in std::_List_base<boost::thread*, 
std::allocator<boost::thread*> >::_M_put_node (this=0x8390198, 
__p=0x8390198)at stl_list.h:320
#13 0x0804ed0c in thread_proxy ()
#14 
0x081e2575 in pthread_start_thread ()
#15 0x08272c2a in lseek64 
()

I 
appreciate any help

Regards,
NG.


      



More information about the botan-devel mailing list