problem with run the unittest
When I run the unittest, I got this message
/openwns-
Loading...
Library: copper
Module: copper
Loading libcopper.so
Library: ip
Module: ip
Loading libip.so
Library: constanze
Module: constanze
Loading libconstanze.so
Library: tcp
Module: tcp
Loading libtcp.so
Library: dllbase
Module: dll
Loading libdllbase.so
Library: imtaphy
Module: imtaphy
Loading libimtaphy.so
Library: glue
Module: Glue
Loading libglue.so
Library: imtaphy
Module: imtaphy
Loading libimtaphy.so
Backtrace (most recent call last, stack size: 0):
No backtrace available.
Backtrace is currently only available on systems with glibc, sorry.
openWNS: Caught wns::Exception:
StaticFactory<
You tried to create a 'imtaphy' instance.
Valid choices are:
* Glue
* constanze
* copper
* dll
* ip
* tcp
I don't know how to deal with this problem? Many THANKS
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- IMTAphy Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Revision history for this message
|
#1 |
Hi sunzn,
most likely something went wrong when you tried to compile. Please check if the file sandbox/
Greats,
Maciej
Revision history for this message
|
#2 |
Thanks for answering, Maciej. I was about to write the same.
In addition, it could be that a library IMTAphy depends on is not found when you try to run it (e.g., because you try to run it in a different shell or a different machine where the MKL environment variables are not set or something like that.) If the libimtaphy.so file is there, check whether ldd shows you any unmet dependencies by running
openwns-sdk$ ldd sandbox/
Cheers
Jan
Revision history for this message
|
#3 |
Hi Jan and Maciej
I have checked the libintaphy.so, and then ldd sandbox/
linux-vdso.so.1 => (0x00007fff53bf
libboost_
libboost_
libpython2.
libdl.so.2 => /lib/x86_
libutil.so.1 => /lib/x86_
libitpp.so.6 => /usr/lib/
libboost_
libcppunit-
libboost_
libmkl_
libmkl_
libmkl_core.so => /opt/intel/
libiomp5.so => /opt/intel/
libpthread.so.0 => /lib/x86_
libstdc++.so.6 => /usr/lib/
libm.so.6 => /lib/x86_
libgcc_s.so.1 => /lib/x86_
libc.so.6 => /lib/x86_
libboost_
librt.so.1 => /lib/x86_
libssl.so.0.9.8 => /lib/libssl.
libcrypto.so.0.9.8 => /lib/libcrypto.
libz.so.1 => /lib/x86_
/lib64/
libfftw3.so.3 => /usr/lib/
liblapack.so.3gf => /usr/lib/
libblas.so.3gf => /usr/lib/
libgfortran.so.3 => /usr/lib/
Revision history for this message
|
#4 |
I think maybe something is wrong with the Backtrace , whether I need to install the "backtrace"?
Backtrace (most recent call last, stack size: 0):
No backtrace available.
Backtrace is currently only available on systems with glibc, sorry.
Thanks
Revision history for this message
|
#5 |
Hi,
could you please provide more details about your system (Linux distribution, compiler versions (g++ --version)).
You did not modify anything in the code and you upgraded to the latest revision (playground.py upgrade)?
I've seen similar problems when symbols are undefined for some reason. Could you please paste the output of the following:
nm -u sandbox/
and
nm -u sandbox/
Thanks
Jan
Revision history for this message
|
#6 |
Hi Jan
1. Linux: ubuntu 11.04 64
g++ --version:4.5.2
2. I have not modify the code, and installed it following the "http://
3 . I got nothing after input the following command:
nm -u sandbox/
and
nm -u sandbox/
Revision history for this message
|
#7 |
Hi,
your system seems to be fine in general and the (missing) output from "nm" shows that there are no undefined imtaphy/ltea symbols that might cause this problem.
It still sounds like a compilation problem. Could you please try to recompile. Before doing that, remove all previous object files by doing:
openwns-sdk$ rm -rf .build
openwns-sdk$ rm -rf sandbox
Then re-compile with playground.py install
If the problem persists, you could try to get more insights from a debugger. Start the test like this:
openwns-
(gdb) catch throw
(gdb) run -tv
and then when the execution stops, say
(gdb) bt
and paste the backtrace information. Maybe this gives a clue as to what happens there.
Thanks
Jan
Revision history for this message
|
#8 |
Hi
I have done as your said,
[Thread debugging using libthread_db enabled]
Loading...
Library: copper
Module: copper
Loading libcopper.so
Library: ip
Module: ip
Loading libip.so
Library: constanze
Module: constanze
Loading libconstanze.so
Library: tcp
Module: tcp
Loading libtcp.so
Library: dllbase
Module: dll
Loading libdllbase.so
Library: imtaphy
Module: imtaphy
Loading libimtaphy.so
Library: glue
Module: Glue
Loading libglue.so
Library: imtaphy
Module: imtaphy
Loading libimtaphy.so
Catchpoint 1 (exception thrown), 0x00007ffff4704a00 in __cxa_throw () from /usr/lib/
(gdb) bt
#0 0x00007ffff4704a00 in __cxa_throw () from /usr/lib/
#1 0x00007ffff6c00ca3 in wns::StaticFact
#2 0x00007ffff6bfac39 in wns::simulator:
#3 0x00007ffff6bf7368 in wns::simulator:
#4 0x00007ffff6bf596f in wns::simulator:
#5 0x0000000000402521 in wns::simulator:
#6 0x00007ffff6bf596f in wns::simulator:
#7 0x0000000000401f48 in main (argc=2, argv=0x7fffffff
(gdb)
Many Thanks
Zhennian
Revision history for this message
|
#9 |
Hi,
two more thinks you could try:
enter the directory modules/
if this fails please use the absolute path( replace the bla bla accordingly for your absolute path to openWNS)
/bla/bla/
Revision history for this message
|
#10 |
Hi ALL
The problem has not solved yet
Feel sad
Revision history for this message
|
#11 |
Hi,
please try installing IMTAPhy from scratch following the directions in http://
Be sure to delete the old openwns-sdk directory: "rm -rf openwns-sdk"
Greats,
Mac
Revision history for this message
|
#12 |
Hello dear colleagues,
I faced the following problem when I run the unitTests:
root@stojan-
Loading...
Library: copper
Module: copper
Loading libcopper.so
Library: ip
Module: ip
Loading libip.so
Library: constanze
Module: constanze
Loading libconstanze.so
Library: tcp
Module: tcp
Loading libtcp.so
Library: dllbase
Module: dll
Loading libdllbase.so
Library: imtaphy
Module: imtaphy
Loading libimtaphy.so
Library: glue
Module: Glue
Loading libglue.so
Library: imtaphy
Module: imtaphy
Loading libimtaphy.so
ModuleFactory contains the following modules:
Glue
constanze
copper
dll
ip
tcp
Backtrace (most recent call last, stack size: 10):
10) unknown
9) __libc_start_main
8) unknown
7) wns::simulator:
6) wns::simulator:
5) wns::simulator:
4) wns::simulator:
3) wns::simulator:
2) wns::Exception:
1) wns::Backtrace:
openWNS: Caught wns::Exception:
Can't load all specified modules. Reason:
/usr/local/
root@stojan-
Any idea what may cause this exception.
Stojan
Revision history for this message
|
#13 |
I haven't seen this error before.
The unresolved symbol should be coming from the it++ library. It seems the itpp library is not installed correctly or cannot be found during runtime.
You can check the libraries the simulator is linked against by doing:
openwns-
Jan
Revision history for this message
|
#14 |
Hi Jan,
Sorry for my late response.
Below is the output from Ubunty 10.04 64 bit system. It seems everything is ok. I tried also on 32 bit Ubuntu 10.04, and the same error appears.
However I would like to ask some things about installation. Under number 3, it is stated that an IT++ library of mathematical, signal processing and communication routines is also required. Also it is stated that Ubuntu has a pre-compiled package. What is meant by this.
Is it meant that it is necessary only to install: libitpp-dev package or it is necessary to install itpp-4.2 software from the given link of IT++ library.
Regards,
Stojan
root@stojan-
linux-vdso.so.1 => (0x00007fff797b
libboost_
libboost_
libdl.so.2 => /lib/libdl.so.2 (0x00007f6fd662
libpython2.
libutil.so.1 => /lib/libutil.so.1 (0x00007f6fd5f7
libitpp.so.6 => /usr/lib/
libboost_
libcppunit-
libboost_
libmkl_
libmkl_
libmkl_core.so => /opt/intel/
libiomp5.so => /opt/intel/
libpthread.so.0 => /lib/libpthread
libstdc++.so.6 => /usr/lib/
libm.so.6 => /lib/libm.so.6 (0x00007f6fd211
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00007f6fd1f0
libc.so.6 => /lib/libc.so.6 (0x00007f6fd1b8
libboost_
librt.so.1 => /lib/librt.so.1 (0x00007f6fd177
/lib64/
libssl.so.0.9.8 => /lib/libssl.
libcrypto.so.0.9.8 => /lib/libcrypto.
libz.so.1 => /lib/libz.so.1 (0x00007f6fd0f7
libfftw3.so.3 => /usr/lib/
liblapack.so.3gf => /usr/lib/
libblas.so.3gf => /usr/lib/
libgfortran.so.3 => /usr/lib/
root@stojan-
Revision history for this message
|
#15 |
Hi Stojan,
when you install the libitpp-dev Ubuntu package, which contains the header files, it should also install the libraries (binaries in /usr/lib). Apparently, you have the libraries installed because they are found at /usr/lib/
I have no idea what goes wrong there. Maybe something (like libitpp) is not correctly installed. Maybe you are mixing headers/libraries from the it++ version that comes with Ubuntu 10.04 and something you tried to install yourself?
I guess my advice would be to make a fresh installation of IMTAphy on a freshly installed Ubuntu system (maybe more recent than 10.04 even though that should be OK because I have it running on 10.04 as well).
Cheers
Jan
PS: In the future, please open a new thread because the question has nothing to do with the initial problem but still everybody in this thread will receive updates...
Can you help with this problem?
Provide an answer of your own, or ask sunzn for more information if necessary.