Page 1 of 1

Bug on Grads after update v18.12

Posted: Thu Dec 27, 2018 4:36 pm
by meteo60
Hi,
I updated my UEMS from 18.8 to 18.12, since I have some bugs on grads (which is on 2.2.0 version vs 2.1 before update):
It's impossible to open grads:

Code: Select all

grads: error while loading shared libraries: libssl.so.10: cannot open shared object file: No such file or directory
So I made symbolic link:

Code: Select all

ln -s /usr/lib/x86_64-linux-gnu/libssl.so.1.0.2 /usr/lib/libssl.so.10
ln -s /usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.2 /usr/lib/libcrypto.so.10
But new error:

Code: Select all

GX Package Error: dlopen failed to get a handle on gxprint plug-in named "Cairo" 
   libpng15.so.15: cannot open shared object file: No such file or directory
This user had the same error but he don't use grads in UEMS: http://gradsusr.org/pipermail/gradsusr/ ... 41576.html

I tried to put libpng15.so.15 in grads/lib directory, I can open grads but printim or gxprint is impossible:

Code: Select all

libpng warning: Image width exceeds user limit in IHDR
libpng warning: Image height exceeds user limit in IHDR
gd-png:  fatal libpng error: Invalid IHDR data
How I "solved" my problem? I made apt-get install grads, then I renamed grads/bin/grads to grads/bin/oldgrads and I made a symbolic link in this directory to open /usr/bin/grads. That's ok but I have grads 2.1 instead 2.2...

Any idea to use grads 2.2 in new UEMS?

Re: Bug on Grads after update v18.12

Posted: Fri Dec 28, 2018 10:16 pm
by meteo60
I forgot to write the result of ldd command:

Code: Select all

ldd grads
	linux-vdso.so.1 (0x00007ffd07a2c000)
	libssl.so.10 => /usr/lib/libssl.so.10 (0x00002ba23c0e1000)
	libcrypto.so.10 => /usr/lib/libcrypto.so.10 (0x00002ba23c34a000)
	libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00002ba23c7b0000)
	libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00002ba23c9cd000)
	librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00002ba23cbd1000)
	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00002ba23cdd9000)
	libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00002ba23d0dd000)
	libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00002ba23d45f000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00002ba23d676000)
	/lib64/ld-linux-x86-64.so.2 (0x00002ba23bebb000)


Re: Bug on Grads after update v18.12

Posted: Sat Dec 29, 2018 6:56 pm
by dominic
I use opengrads 2.1 appositively and I find myself very well

Re: Bug on Grads after update v18.12

Posted: Sun Dec 30, 2018 9:31 pm
by meteo60
Robert answered me:
The problem is that my path was left in the grads/lib/*.la (or ls/*la) file. You can edit the file to reflect your path or just remove
the grads directory and replace it with v2.1 from the previous release.
But there is another bug after, my answer:
I tested what you advised me, grads opens but immediately it closes with a "segmentation fault".
I export LD_LIBRARY_PATH to the good path before open.
Here the last lines of the result with strace -f grads -b command:

Code: Select all

open("/usr/lib/x86_64-linux-gnu/libXdmcp.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0@\23\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=22728, ...}) = 0
mmap(NULL, 2117872, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x2ae6eb281000
mprotect(0x2ae6eb286000, 2093056, PROT_NONE) = 0
mmap(0x2ae6eb485000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x4000) = 0x2ae6eb485000
close(3)                                = 0
mprotect(0x2ae6eae52000, 4096, PROT_READ) = 0
mprotect(0x2ae6eb485000, 4096, PROT_READ) = 0
mprotect(0x2ae6eb27f000, 4096, PROT_READ) = 0
mprotect(0x2ae6eb07b000, 4096, PROT_READ) = 0
mprotect(0x2ae6eac3d000, 4096, PROT_READ) = 0
mprotect(0x2ae6ea822000, 4096, PROT_READ) = 0
mprotect(0x2ae6eaa38000, 4096, PROT_READ) = 0
mprotect(0x2ae6ea4e2000, 4096, PROT_READ) = 0
mprotect(0x2ae6ea2c9000, 4096, PROT_READ) = 0
--- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0x8} ---
+++ killed by SIGSEGV +++
Segmentation fault
For the moment I keep grads installed by apt-get... I keep too the last grads v2.1.a3 from previous version.

Re: Bug on Grads after update v18.12

Posted: Thu Jan 03, 2019 10:32 am
by meteo60
Here is Robert's answer, I think these issues will be fixed at the next update:
You are opening the wrong libraries. For the time being just use grads 2.1 from the previous release.

Re: Bug on Grads after update v18.12

Posted: Tue Jan 08, 2019 8:38 am
by hinsberj
One thing I noticed in $UEMS/util/grads/grads/data/udpt, the directories were pointing to /usr1/UEMS/Development/UEMS/uems/util/grads/lib/libXXXX.so

I changed it to $UEMS/util/grads/lib/libXXXX.so and it worked.

Re: Bug on Grads after update v18.12

Posted: Thu Jan 10, 2019 11:11 am
by meteo60
hinsberj wrote:
Tue Jan 08, 2019 8:38 am
One thing I noticed in $UEMS/util/grads/grads/data/udpt, the directories were pointing to /usr1/UEMS/Development/UEMS/uems/util/grads/lib/libXXXX.so

I changed it to $UEMS/util/grads/lib/libXXXX.so and it worked.
I changed too but I have this error:

Code: Select all

 libpng15.so.15: cannot open shared object file: No such file or directory