- priority: 5 --> 7
- assigned_to: nobody --> rolandriegel
Hi,
nload compiles fine on OpenBSD 4.3/sparc64. However, when starting it, it dies immediately, due to a sigbugs:
(gdb) r
Starting program: /usr/ports/net/nload/w-nload-0.7.1/nload-0.7.1/src/nload
Program received signal SIGBUS, Bus error.
DevReaderBsd::readFromDevice(DataFrame&) (this=0x45734090, dataFrame=@0xfffffffffffcb090) at dataframe.h:42
42 void setTotalDataIn(long long totalDataIn) { m_totalDataIn = totalDataIn; }
(gdb) bt
#0 DevReaderBsd::readFromDevice(DataFrame&) (this=0x45734090, dataFrame=@0xfffffffffffcb090) at dataframe.h:42
#1 0x0000000000109a6c in DevReader::getNewDataFrame() (this=0x45734090) at devreader.cpp:60
#2 0x00000000001062d4 in Device::update() (this=0x4b8cc400) at device.cpp:42
#3 0x000000000010f6a8 in main (argc=1, argv=0xfffffffffffcb788) at main.cpp:363
Due to my little knowledge in c++, I only figured out, when comment out the line in device.cpp:42, where the dataFrame gets initialized, then at least nload starts up, but well, it is not able to show me the stuff I want to see.
// update the device's data
void Device::update()
{
// read current traffic
DataFrame dataFrame = m_devReader.getNewDataFrame();