eebenson / haggle

Automatically exported from code.google.com/p/haggle
Apache License 2.0
0 stars 0 forks source link

Sending data object to remote ethernet haggle causes Illegal instruction #10

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Started haggle on one linux system xxx.xxx.xxx.200
2. Tested haggle on local system using clitool - it worked
3. Created an interest 
4. On another linux system (same network), attempted to start haggle
5. The second haggle fails to start 

What is the expected output? What do you see instead?
I would expect the second haggle to start so I can use clitool on the 
second system to get the published interest.

What version of the product are you using? On what operating system?

Haggle 0.2
Ubuntu hardy and jaunty

Please provide any additional information below. Log output of the second 
system startup attempt:

0.045:[0]{int HaggleKernel::registerWatchable(haggle::Watchable, 
Manager*)}:Manager 'DebugManager' registered SOCKET:26
0.045:[0]{int HaggleKernel::registerWatchable(haggle::Watchable, 
Manager*)}:Manager 'DebugManager' registered SOCKET:25
0.045:[0]{int run_haggle()}:Starting Haggle...
0.046:[0]{void DebugManager::publicEvent
(Event*)}:EVENT_TYPE_RESOURCE_POLICY_NEW data=Yes
0.046:[0]{void NodeManager::onSendNodeDescription(Event*)}:No neighbors - 
not sending node description
0.047:[0]{void DebugManager::publicEvent
(Event*)}:EVENT_TYPE_NODE_DESCRIPTION_SEND data=No
0.054:[1]{virtual int SQLDataStore::_retrieveNode(NodeRef&, const 
EventCallback<EventHandler>*, bool)}:DataStore retrieve Node
0.054:[1]{virtual int SQLDataStore::_doFilterQuery
(DataStoreFilterQuery*)}:DataStore Filter Query
0.083:[0]{void SecurityManager::onRepositoryData(Event*)}:Got repository 
callback
0.083:[0]{void SecurityManager::onRepositoryData(Event*)}:No repository 
entries, generating new certificate and keypair
0.083:[4]{void SecurityHelper::doTask(SecurityTask*)}:Creating certificate
0.102:[0]{void SecurityManager::onSecurityTaskComplete
(Event*)}:Certificate generated!
0.102:[0]{void SecurityManager::onSecurityTaskComplete
(Event*)}:Certificate is my own
0.102:[0]{void HaggleKernel::signalIsReadyForStartup(Manager*)}:All 
managers are ready for startup, generating startup event!
0.102:void haggle::Thread::runloop(): Starting thread Local connectivity
[Thread:6]
0.107:[6]{int ConnectivityLocal::read_netlink()}:Interface newlink eth0 
00:11:d8:c7:f8:42 up
0.108:[6]{InterfaceStatus_t ConnectivityManager::report_interface(const 
Interface*, const InterfaceRef&, ConnectivityInterfacePolicy* (*)
())}:***CM_IFACE*** Local interface [00:11:d8:c7:f8:42/eth0] added/updated

0.108:void haggle::Thread::runloop(): Starting thread Ethernet connectivity
[Thread:7]
0.108:int haggle::Thread::start(): Thread 6 started for Runnable "Local 
connectivity"
0.108:int haggle::Thread::start(): Thread 7 started for Runnable "Ethernet 
connectivity"
0.108:[6]{int ConnectivityLocal::read_netlink()}:NLMSG_DONE
0.108:[0]{void ProtocolSocket::setSocketOptions()}:Set recv buffer size to 
349520 bytes on protocol ProtocolTCPServer:2
0.109:[0]{int HaggleKernel::registerWatchable(haggle::Watchable, 
Manager*)}:Manager 'ProtocolManager' registered SOCKET:35
0.109:[0]{ProtocolTCP::ProtocolTCP(const InterfaceRef&, const 
InterfaceRef&, short unsigned int, short int, 
ProtocolManager*)}:ProtocolTCPServer:2 Created TCP socket - 0.0.0.0:9697
0.109:[0]{void DebugManager::publicEvent
(Event*)}:EVENT_TYPE_LOCAL_INTERFACE_UP data=yes
0.283:[7]{InterfaceStatus_t ConnectivityManager::report_interface(const 
Interface*, const InterfaceRef&, ConnectivityInterfacePolicy* (*)
())}:***CM_IFACE*** Neighbor interface [00:23:54:2f:92:53/Remote Ethernet] 
added/updated

0.283:[1]{virtual int SQLDataStore::_retrieveNode(NodeRef&, const 
EventCallback<EventHandler>*, bool)}:DataStore retrieve Node
0.283:[0]{void DebugManager::publicEvent
(Event*)}:EVENT_TYPE_NEIGHBOR_INTERFACE_UP data=yes
0.284:[0]{void NodeManager::onRetrieveNode(Event*)}:Node Unnamed node [id=
[Unknown id]] not previously neighbor... Adding to node store
0.284:[0]{bool NodeStore::add(const NodeRef&)}:Adding new node to node 
store [Unknown id]
0.284:[0]{void NodeManager::onNewNodeContact(Event*)}:NodeManager - New 
node contact. Have not yet received node description!
0.284:[0]{int NodeManager::sendNodeDescription(NodeRef)}:Sending node 
description [id=52a8e767671079ef0426996f326e2c8e1ee0a02c] to 'Unnamed node'
0.284:[0]{void DebugManager::publicEvent
(Event*)}:EVENT_TYPE_NODE_CONTACT_NEW data=Yes
0.286:[0]{void DataObject::setSignature(string, unsigned char*, 
size_t)}:Set signature on data object, siglen=64
0.286:[0]{void SecurityManager::onSendDataObject(Event*)}:Successfully 
signed data object 52a8e767671079ef0426996f326e2c8e1ee0a02c
0.286:[0]{void DebugManager::publicEvent
(Event*)}:EVENT_TYPE_DATAOBJECT_SEND data=Yes
0.286:[0]{void ProtocolManager::onSendDataObjectActual(Event*)}:Sending to 
target num 1
0.286:[0]{void ProtocolSocket::setSocketOptions()}:Set recv buffer size to 
349520 bytes on protocol ProtocolTCPClient:3
0.286:[0]{ProtocolTCP::ProtocolTCP(const InterfaceRef&, const 
InterfaceRef&, short unsigned int, short int, 
ProtocolManager*)}:ProtocolTCPClient:3 Created TCP socket - 0.0.0.0:0
0.287:void haggle::Thread::runloop(): Starting thread ProtocolTCPClient:3
[Thread:8]
0.287:int haggle::Thread::start(): Thread 8 started for 
Runnable "ProtocolTCPClient:3"
0.287:[0]{void ProtocolManager::onSendDataObjectActual(Event*)}:Scheduled 
the sending of 1 data objects
0.291:[8]{virtual ProtocolEvent ProtocolTCPClient::connectToPeer
()}:ProtocolTCPClient:3 Connected to [10.18.10.200] tcp port=9697
0.291:[8]{virtual bool Protocol::run()}:ProtocolTCPClient:3 successfully 
connected
0.291:[8]{virtual bool Protocol::run()}:ProtocolTCPClient:3 Data object 
retrieved from queue, sending to [Remote Ethernet]
0.291:[8]{virtual ProtocolEvent Protocol::sendDataObjectNow(const 
DataObjectRef&)}:ProtocolTCPClient:3 : Sending data object to 'Remote 
Ethernet'
0.291:[8]{virtual ProtocolEvent Protocol::sendDataObjectNow(const 
DataObjectRef&)}:Getting accept/reject control message
0.293:[8]{ProtocolEvent Protocol::receiveControlMessage
(Protocol::ctrlmsg*)}:Got control message 'ACCEPT', 21 bytes
Illegal instruction

Original issue reported on code.google.com by JHollar2...@gmail.com on 29 Dec 2009 at 6:50