yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #00065
Re: float, double, the DOUBLE_PRECISION flag
Hello I've tried to use vallgrind to find what the problem was but now
valgrind wont work...
This post is for :
1/ sending Vaclav the format of command to profile yade with vallgrind.
2/ asking Janek if he has an idea of why valgrind now complain that
GLIBCXX_3.4.5 is not found (I'll check google too).
Bruno
bchareyre@r1arduinal:~/Programmation/YADE-install/YADE-DevelopmentVersion/bin$
valgrind ./yade -n -f ../data/scene.xml -b -p -s 40 -m 20000 -t 0.1
==5608== Memcheck, a memory error detector.
==5608== Copyright (C) 2002-2005, and GNU GPL'd, by Julian Seward et al.
==5608== Using LibVEX rev 1471, a library for dynamic binary translation.
==5608== Copyright (C) 2004-2005, and GNU GPL'd, by OpenWorks LLP.
==5608== Using valgrind-3.1.0-Debian, a dynamic binary instrumentation
framework.
==5608== Copyright (C) 2000-2005, and GNU GPL'd, by Julian Seward et al.
==5608== For more details, rerun with: -v
==5608==
./yade: /usr/lib/debug/libstdc++.so.6: version `GLIBCXX_3.4.5' not found
(required by ./yade)
==5608== Jump to the invalid address stated on the next line
==5608== at 0x226: ???
==5608== by 0x4000894: (within /lib/ld-2.3.6.so)
==5608== by 0x400B1B3: (within /lib/ld-2.3.6.so)
==5608== by 0x4001FE8: (within /lib/ld-2.3.6.so)
==5608== by 0x400E55E: (within /lib/ld-2.3.6.so)
==5608== by 0x4000CE6: (within /lib/ld-2.3.6.so)
==5608== by 0x4000796: (within /lib/ld-2.3.6.so)
==5608== Address 0x226 is not stack'd, malloc'd or (recently) free'd
==5608==
==5608== Process terminating with default action of signal 11 (SIGSEGV)
==5608== Bad permissions for mapped region at address 0x226
==5608== at 0x226: ???
==5608== by 0x4000894: (within /lib/ld-2.3.6.so)
==5608== by 0x400B1B3: (within /lib/ld-2.3.6.so)
==5608== by 0x4001FE8: (within /lib/ld-2.3.6.so)
==5608== by 0x400E55E: (within /lib/ld-2.3.6.so)
==5608== by 0x4000CE6: (within /lib/ld-2.3.6.so)
==5608== by 0x4000796: (within /lib/ld-2.3.6.so)
==5608==
==5608== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
==5608== malloc/free: in use at exit: 0 bytes in 0 blocks.
==5608== malloc/free: 0 allocs, 0 frees, 0 bytes allocated.
==5608== For counts of detected errors, rerun with: -v
==5608== No malloc'd blocks -- no leaks are possible.
bchareyre@r1arduinal:~/Programmation/YADE-install/YADE-DevelopmentVersion/bin$
valgrind kate
==5613== Memcheck, a memory error detector.
==5613== Copyright (C) 2002-2005, and GNU GPL'd, by Julian Seward et al.
==5613== Using LibVEX rev 1471, a library for dynamic binary translation.
==5613== Copyright (C) 2004-2005, and GNU GPL'd, by OpenWorks LLP.
==5613== Using valgrind-3.1.0-Debian, a dynamic binary instrumentation
framework.
==5613== Copyright (C) 2000-2005, and GNU GPL'd, by Julian Seward et al.
==5613== For more details, rerun with: -v
==5613==
X Error: BadDevice, invalid or uninitialized input device 169
Major opcode: 147
Minor opcode: 3
Resource id: 0x0
Failed to open device
X Error: BadDevice, invalid or uninitialized input device 169
Major opcode: 147
Minor opcode: 3
Resource id: 0x0
Failed to open device
==5613== Conditional jump or move depends on uninitialised value(s)
==5613== at 0x4010BEE: (within /lib/ld-2.3.6.so)
==5613== by 0x4244C75: (within /lib/tls/i686/cmov/libc-2.3.6.so)
==5613== by 0x400B105: (within /lib/ld-2.3.6.so)
==5613== by 0x4245937: _dl_open (in /lib/tls/i686/cmov/libc-2.3.6.so)
==5613== by 0x4246F4C: (within /lib/tls/i686/cmov/libc-2.3.6.so)
==5613== by 0x400B105: (within /lib/ld-2.3.6.so)
==5613== by 0x424702D: __libc_dlopen_mode (in
/lib/tls/i686/cmov/libc-2.3.6.so)
==5613== by 0x422147D: __nss_lookup_function (in
/lib/tls/i686/cmov/libc-2.3.6.so)
==5613== by 0x422160E: (within /lib/tls/i686/cmov/libc-2.3.6.so)
==5613== by 0x4223136: __nss_passwd_lookup (in
/lib/tls/i686/cmov/libc-2.3.6.so)
==5613== by 0x41D2255: getpwuid_r (in /lib/tls/i686/cmov/libc-2.3.6.so)
==5613== by 0x41D1BD0: getpwuid (in /lib/tls/i686/cmov/libc-2.3.6.so)
==5613==
==5613== Conditional jump or move depends on uninitialised value(s)
==5613== at 0x4010BFD: (within /lib/ld-2.3.6.so)
==5613== by 0x4244C75: (within /lib/tls/i686/cmov/libc-2.3.6.so)
==5613== by 0x400B105: (within /lib/ld-2.3.6.so)
==5613== by 0x4245937: _dl_open (in /lib/tls/i686/cmov/libc-2.3.6.so)
==5613== by 0x4246F4C: (within /lib/tls/i686/cmov/libc-2.3.6.so)
==5613== by 0x400B105: (within /lib/ld-2.3.6.so)
==5613== by 0x424702D: __libc_dlopen_mode (in
/lib/tls/i686/cmov/libc-2.3.6.so)
==5613== by 0x422147D: __nss_lookup_function (in
/lib/tls/i686/cmov/libc-2.3.6.so)
==5613== by 0x422160E: (within /lib/tls/i686/cmov/libc-2.3.6.so)
==5613== by 0x4223136: __nss_passwd_lookup (in
/lib/tls/i686/cmov/libc-2.3.6.so)
==5613== by 0x41D2255: getpwuid_r (in /lib/tls/i686/cmov/libc-2.3.6.so)
==5613== by 0x41D1BD0: getpwuid (in /lib/tls/i686/cmov/libc-2.3.6.so)
==5613==
==5613== Conditional jump or move depends on uninitialised value(s)
==5613== at 0x4010C0C: (within /lib/ld-2.3.6.so)
==5613== by 0x4244C75: (within /lib/tls/i686/cmov/libc-2.3.6.so)
==5613== by 0x400B105: (within /lib/ld-2.3.6.so)
==5613== by 0x4245937: _dl_open (in /lib/tls/i686/cmov/libc-2.3.6.so)
==5613== by 0x4246F4C: (within /lib/tls/i686/cmov/libc-2.3.6.so)
==5613== by 0x400B105: (within /lib/ld-2.3.6.so)
==5613== by 0x424702D: __libc_dlopen_mode (in
/lib/tls/i686/cmov/libc-2.3.6.so)
==5613== by 0x422147D: __nss_lookup_function (in
/lib/tls/i686/cmov/libc-2.3.6.so)
==5613== by 0x422160E: (within /lib/tls/i686/cmov/libc-2.3.6.so)
==5613== by 0x4223136: __nss_passwd_lookup (in
/lib/tls/i686/cmov/libc-2.3.6.so)
==5613== by 0x41D2255: getpwuid_r (in /lib/tls/i686/cmov/libc-2.3.6.so)
==5613== by 0x41D1BD0: getpwuid (in /lib/tls/i686/cmov/libc-2.3.6.so)
==5613==
==5613== Conditional jump or move depends on uninitialised value(s)
==5613== at 0x4010C1B: (within /lib/ld-2.3.6.so)
==5613== by 0x4244C75: (within /lib/tls/i686/cmov/libc-2.3.6.so)
==5613== by 0x400B105: (within /lib/ld-2.3.6.so)
==5613== by 0x4245937: _dl_open (in /lib/tls/i686/cmov/libc-2.3.6.so)
==5613== by 0x4246F4C: (within /lib/tls/i686/cmov/libc-2.3.6.so)
==5613== by 0x400B105: (within /lib/ld-2.3.6.so)
==5613== by 0x424702D: __libc_dlopen_mode (in
/lib/tls/i686/cmov/libc-2.3.6.so)
==5613== by 0x422147D: __nss_lookup_function (in
/lib/tls/i686/cmov/libc-2.3.6.so)
==5613== by 0x422160E: (within /lib/tls/i686/cmov/libc-2.3.6.so)
==5613== by 0x4223136: __nss_passwd_lookup (in
/lib/tls/i686/cmov/libc-2.3.6.so)
==5613== by 0x41D2255: getpwuid_r (in /lib/tls/i686/cmov/libc-2.3.6.so)
==5613== by 0x41D1BD0: getpwuid (in /lib/tls/i686/cmov/libc-2.3.6.so)
==5613==
==5613== Conditional jump or move depends on uninitialised value(s)
==5613== at 0x400882D: (within /lib/ld-2.3.6.so)
==5613== by 0x4244DE9: (within /lib/tls/i686/cmov/libc-2.3.6.so)
==5613== by 0x400B105: (within /lib/ld-2.3.6.so)
==5613== by 0x4245937: _dl_open (in /lib/tls/i686/cmov/libc-2.3.6.so)
==5613== by 0x4246F4C: (within /lib/tls/i686/cmov/libc-2.3.6.so)
==5613== by 0x400B105: (within /lib/ld-2.3.6.so)
==5613== by 0x424702D: __libc_dlopen_mode (in
/lib/tls/i686/cmov/libc-2.3.6.so)
==5613== by 0x422147D: __nss_lookup_function (in
/lib/tls/i686/cmov/libc-2.3.6.so)
==5613== by 0x422160E: (within /lib/tls/i686/cmov/libc-2.3.6.so)
==5613== by 0x4223136: __nss_passwd_lookup (in
/lib/tls/i686/cmov/libc-2.3.6.so)
==5613== by 0x41D2255: getpwuid_r (in /lib/tls/i686/cmov/libc-2.3.6.so)
==5613== by 0x41D1BD0: getpwuid (in /lib/tls/i686/cmov/libc-2.3.6.so)
==5613==
==5613== Conditional jump or move depends on uninitialised value(s)
==5613== at 0x4008852: (within /lib/ld-2.3.6.so)
==5613== by 0x4244DE9: (within /lib/tls/i686/cmov/libc-2.3.6.so)
==5613== by 0x400B105: (within /lib/ld-2.3.6.so)
==5613== by 0x4245937: _dl_open (in /lib/tls/i686/cmov/libc-2.3.6.so)
==5613== by 0x4246F4C: (within /lib/tls/i686/cmov/libc-2.3.6.so)
==5613== by 0x400B105: (within /lib/ld-2.3.6.so)
==5613== by 0x424702D: __libc_dlopen_mode (in
/lib/tls/i686/cmov/libc-2.3.6.so)
==5613== by 0x422147D: __nss_lookup_function (in
/lib/tls/i686/cmov/libc-2.3.6.so)
==5613== by 0x422160E: (within /lib/tls/i686/cmov/libc-2.3.6.so)
==5613== by 0x4223136: __nss_passwd_lookup (in
/lib/tls/i686/cmov/libc-2.3.6.so)
==5613== by 0x41D2255: getpwuid_r (in /lib/tls/i686/cmov/libc-2.3.6.so)
==5613== by 0x41D1BD0: getpwuid (in /lib/tls/i686/cmov/libc-2.3.6.so)
==5613==
==5613== Syscall param write(buf) points to uninitialised byte(s)
==5613== at 0x4000772: (within /lib/ld-2.3.6.so)
==5613== by 0x57396F3: _X11TransWrite (in /usr/lib/libX11.so.6.2.0)
==5613== by 0x573E06A: (within /usr/lib/libX11.so.6.2.0)
==5613== by 0x573E185: _XReply (in /usr/lib/libX11.so.6.2.0)
==5613== by 0x5725204: XInternAtom (in /usr/lib/libX11.so.6.2.0)
==5613== by 0x5738A88: XSetWMProperties (in /usr/lib/libX11.so.6.2.0)
==5613== by 0x5007122: QWidget::create(unsigned long, bool, bool) (in
/usr/lib/libqt-mt.so.3.3.6)
==5613== by 0x50DEA5A: QWidget::QWidget(QWidget*, char const*,
unsigned) (in /usr/lib/libqt-mt.so.3.3.6)
==5613== by 0x4C57C41: KApplication::init(bool) (in
/usr/lib/libkdecore.so.4.2.0)
==5613== by 0x4C59A02: KApplication::KApplication(bool, bool) (in
/usr/lib/libkdecore.so.4.2.0)
==5613== by 0x43112CA: KateApp::KateApp(KCmdLineArgs*) (in
/usr/lib/libkateinterfaces.so.0.0.0)
==5613== by 0x40389E1: kdemain (in /usr/lib/libkdeinit_kate.so)
==5613== Address 0x5926EDC is 252 bytes inside a block of size 16,384
alloc'd
==5613== at 0x401D7AA: calloc (vg_replace_malloc.c:279)
==5613== by 0x5729F65: XOpenDisplay (in /usr/lib/libX11.so.6.2.0)
==5613== by 0x4FCB50F: qt_init_internal(int*, char**, _XDisplay*,
unsigned long, unsigned long) (in /usr/lib/libqt-mt.so.3.3.6)
==5613== by 0x4FCD5F3: qt_init(int*, char**, QApplication::Type) (in
/usr/lib/libqt-mt.so.3.3.6)
==5613== by 0x50423B9: QApplication::construct(int&, char**,
QApplication::Type) (in /usr/lib/libqt-mt.so.3.3.6)
==5613== by 0x50426F8: QApplication::QApplication(int&, char**, bool)
(in /usr/lib/libqt-mt.so.3.3.6)
==5613== by 0x4C59837: KApplication::KApplication(bool, bool) (in
/usr/lib/libkdecore.so.4.2.0)
==5613== by 0x43112CA: KateApp::KateApp(KCmdLineArgs*) (in
/usr/lib/libkateinterfaces.so.0.0.0)
==5613== by 0x40389E1: kdemain (in /usr/lib/libkdeinit_kate.so)
==5613== by 0x415BEA1: __libc_start_main (in
/lib/tls/i686/cmov/libc-2.3.6.so)
==5613==
==5613== Syscall param writev(vector[...]) points to uninitialised byte(s)
==5613== at 0x4000772: (within /lib/ld-2.3.6.so)
==5613== by 0x57394E2: (within /usr/lib/libX11.so.6.2.0)
==5613== by 0x5739735: _X11TransWritev (in /usr/lib/libX11.so.6.2.0)
==5613== by 0x573E76E: _XSend (in /usr/lib/libX11.so.6.2.0)
==5613== by 0x573003B: XQueryExtension (in /usr/lib/libX11.so.6.2.0)
==5613== by 0x572454A: XInitExtension (in /usr/lib/libX11.so.6.2.0)
==5613== by 0x58B39BC: XFixesFindDisplay (in /usr/lib/libXfixes.so.3.0.0)
==5613== by 0x58B22B4: XFixesSetCursorName (in
/usr/lib/libXfixes.so.3.0.0)
==5613== by 0x561A913: XcursorImagesLoadCursor (in
/usr/lib/libXcursor.so.1.0.2)
==5613== by 0x561D626: XcursorLibraryLoadCursor (in
/usr/lib/libXcursor.so.1.0.2)
==5613== by 0x4FDA116: QCursor::update() const (in
/usr/lib/libqt-mt.so.3.3.6)
==5613== by 0x4FDA56C: QCursor::handle() const (in
/usr/lib/libqt-mt.so.3.3.6)
==5613== Address 0x5926EDD is 253 bytes inside a block of size 16,384
alloc'd
==5613== at 0x401D7AA: calloc (vg_replace_malloc.c:279)
Vaclav SMILAUER a écrit :
>>FATAL
>>/home/3S-LAB/bchareyre/Programmation/Yade-Sources/SVN-commitable/trunk/yade-core/src/yade/Omega.cpp:272
>>scanPlugins: Undefined symbol
>>`Math<float>::ZERO_TOLERANCE(/home/bchareyre/Programmation/YADE/lib/yade/yade-libs/libyade-lib-computational-geometry.so:
>>undefined symbol: _ZN4MathIfE14ZERO_TOLERANCEE).
>>Couldn't load everything, some stuff may work incorrectly.
>>
>>
>
>There is a symbol that cannot be resolved. As a workaround, you can
>delete the computation-geometry plugin which IIRC is not used. A quick
>look into the .pro file reveals that it doesn't link with Wm3Foundation
>where this symbol is defined:
>
> $ nm --demangle /usr/local/lib/libWm3Foundation.a| grep ZERO_TOLERANCE
> ...
>00000030 R Wm3::Math<double>::ZERO_TOLERANCE
>00000004 R Wm3::Math<float>::ZERO_TOLERANCE
> ...
>
>Try that, hope that works.
>
>
>
>>>DEBUG
>>>/home/3S-LAB/bchareyre/Programmation/Yade-Sources/SVN-commitable/trunk/yade-core/src/yade/Omega.cpp:238
>>>scanPlugins: File not considered a plugin: libSphericalDEMSimulator.so.1.
>>>
>>>
>
>I thought I disabled debugging messages by default
>(yade-lib-base/Logging.hpp). Explanation: I restricted what files are
>considered to be loaded only to those that satisfy the criterion that
>libraryNameToSystemName(systemNameToLibraryName(filename))==filename,
>which practically means only files "lib*.so". This one ends with .so.1,
>hence is skipped. The reason for that was to be able to have other files
> in plugin directories without getting errors.
>
>Sorry for that.
>
>Vaclav
>
>_______________________________________________
>yade-dev mailing list
>yade-dev@xxxxxxxxxxxxxxxx
>https://lists.berlios.de/mailman/listinfo/yade-dev
>
>
>
--
_______________
Chareyre Bruno
Maître de conférence
Institut National Polytechnique de Grenoble
Laboratoire 3S (Soils Solids Structures) - bureau I08
BP 53 - 38041, Grenoble cedex 9 - France
Tél : 04.56.52.86.21
________________
_______________________________________________
yade-dev mailing list
yade-dev@xxxxxxxxxxxxxxxx
https://lists.berlios.de/mailman/listinfo/yade-dev
Follow ups
References
-
float, double, the DOUBLE_PRECISION flag
From: Janek Kozicki, 2006-12-08
-
Re: float, double, the DOUBLE_PRECISION flag
From: Vaclav SMILAUER, 2006-12-11
-
Re: float, double, the DOUBLE_PRECISION flag
From: Bruno Chareyre, 2006-12-15
-
Re: float, double, the DOUBLE_PRECISION flag
From: Bruno Chareyre, 2006-12-15
-
Re: float, double, the DOUBLE_PRECISION flag
From: Vaclav SMILAUER, 2006-12-15