Hello,

we are developing an application in a virtual-vm-ware on linux/debian. when i debug the application on the virtual-vm-ware it works really good an nothing bad happens.

but when i compile the programm (arm-linux-gnueabi-g++) there are very strange problems now.

here is the last problem what i got, when i debug on the device with gdb:

Qt Code:
  1. Program received signal SIGSEGV, Segmentation fault.
  2. [Switching to Thread 0x4178a460 (LWP 534)]
  3. from /usr/local/packages/qt-armel-qvfb-4.7.1/lib/libQtNetwork.so.4
  4. (gdb) bt
  5. #0 0x4015dd7c in QNetworkInterface::QNetworkInterface(QNetworkInterface const&) ()
  6. from /usr/local/packages/qt-armel-qvfb-4.7.1/lib/libQtNetwork.so.4
  7. #1 0x0003a350 in cNetworkThread::run() ()
  8. #2 0x40222b90 in ?? () from /usr/local/packages/qt-armel-qvfb-4.7.1/lib/libQtCore.so.4
  9. #3 0x40222b90 in ?? () from /usr/local/packages/qt-armel-qvfb-4.7.1/lib/libQtCore.so.4
  10. Backtrace stopped: previous frame identical to this frame (corrupt stack?)
  11. (gdb) info frame
  12. Stack level 0, frame at 0x41789c48:
  13. saved pc 0x3a350
  14. called by frame at 0x41789ca8
  15. Arglist at 0x41789c38, args:
  16. Locals at 0x41789c38, Previous frame's sp is 0x41789c48
  17. Saved registers:
  18. r4 at 0x41789c38, r5 at 0x41789c3c, r6 at 0x41789c40, lr at 0x41789c44
  19. (gdb) info stack
  20. #0 0x4015dd7c in QNetworkInterface::QNetworkInterface(QNetworkInterface const&) ()
  21. from /usr/local/packages/qt-armel-qvfb-4.7.1/lib/libQtNetwork.so.4
  22. #1 0x0003a350 in cNetworkThread::run() ()
  23. #2 0x40222b90 in ?? () from /usr/local/packages/qt-armel-qvfb-4.7.1/lib/libQtCore.so.4
  24. #3 0x40222b90 in ?? () from /usr/local/packages/qt-armel-qvfb-4.7.1/lib/libQtCore.so.4
  25. Backtrace stopped: previous frame identical to this frame (corrupt stack?)
  26. (gdb) info bt
  27. Undefined info command: "bt". Try "help info".
  28. (gdb) bt
  29. #0 0x4015dd7c in QNetworkInterface::QNetworkInterface(QNetworkInterface const&) ()
  30. from /usr/local/packages/qt-armel-qvfb-4.7.1/lib/libQtNetwork.so.4
  31. #1 0x0003a350 in cNetworkThread::run() ()
  32. #2 0x40222b90 in ?? () from /usr/local/packages/qt-armel-qvfb-4.7.1/lib/libQtCore.so.4
  33. #3 0x40222b90 in ?? () from /usr/local/packages/qt-armel-qvfb-4.7.1/lib/libQtCore.so.4
  34. Backtrace stopped: previous frame identical to this frame (corrupt stack?)
To copy to clipboard, switch view to plain text mode 
Here is my cNetworkThread.h:

Qt Code:
  1. class cNetworkThread : public QThread
  2. {
  3. Q_OBJECT
  4.  
  5. public:
  6.  
  7. explicit cNetworkThread(QObject *parent = 0);
  8. void run();
  9.  
  10. };
To copy to clipboard, switch view to plain text mode 

and here is my .cpp:

Qt Code:
  1. cNetworkThread::cNetworkThread(QObject *parent) :
  2. QThread(parent)
  3. {
  4. qDebug() << "Network-Thread Konstruktor";
  5. qDebug() << "Network-Thread ID" << currentThreadId();
  6. }
  7.  
  8. void cNetworkThread::run()
  9. {
  10. qDebug() << "Network-Thread run-Methode" << currentThreadId();
  11. while(true)
  12. {
  13. msleep(200);
  14. QList<QNetworkInterface> ifaces = QNetworkInterface::allInterfaces();
  15.  
  16. for(int i = 0; i < ifaces.count(); i++)
  17. {
  18. msleep(200);
  19. QNetworkInterface iface = ifaces.at(i);
  20. QString interfaceName = ifaces[i].name();
  21. if(interfaceName == "eth0")
  22. {
  23. if(iface.flags().testFlag(QNetworkInterface::IsRunning) && !iface.flags().testFlag(QNetworkInterface::IsLoopBack))
  24. {
  25. // Connection still running
  26. }
  27. else
  28. {
  29. // Connection down
  30. cLedState::SetLED(LED_NETWORK);
  31. }
  32. }
  33. }
  34. ifaces.clear();
  35. }
  36. }
To copy to clipboard, switch view to plain text mode 
do you have any idea what is going wrong?

i do also have some problems with "qt glibc detected corrupted double-linked list".

i hope you can help me with my problem!
attached you find my complete project!

kind regards