0x08063781 in LocalHost::LocalHost() () - errors
Hi,
I have two Centos 8.6 VMs. Both are created with same templates, so they are supposed to be identical, unless something was changed later which I can't figure. As per application team, same code is working on some set of server, but on another set of servers, so they are pointing, something is different or wrong on OS or library or config level. appuser is supposed to run gdb on tcsid and then issue "run" command. It is suppsed to create a unique key for this host. Below are two example. I picked one server from working set of servers and one server from non-working set of servers. I do not know, how this application or code works, but trying to find if I can get some clue which may be different on OS level. hostname, hostnamectl seems to be same and in same format. Working server --> Code:
[root@phl003 ~]# su - appuser Quote:
Thanks |
so you need to compare all the libs, one by one, need to find which one is different.
use ldd to find them. Also you need to check the binary itself and the config files. you might try strace to find what's going on or what went wrong (probably helps). Why do you need gdb to run it? Does it work without gdb? |
Quote:
/opt/tcs/corebaser-14.14.1/bin/tcsid checksum is same on working as well as non-working I do not know, why they use gdb. It is their (apps team) standard procedure I guess. Maybe it was written in such way. For strace, should I run it as "strace gdb tcsid". How there is way to do strace on "run" ? Maybe that can give some clue, but how to run it ? |
yes, exactly that way, but probably you need to add some flags:
Code:
strace -o output.txt -f <some command> gdb is a debugger and run means the simple execution of that app, therefore gdb <app>; run is more or less equal to just run <app> without gdb. I don't really see the reason to use gdb. Anyway, you can try it without it to see at least if that will do the same. But I'm not really sure if gdb and strace work together. You can use ldd /opt/tcs/corebaser-14.14.1/bin/tcsid to find the required libs and you can also compare them. You can also use the output of strace to see the files opened, so you will know what should be compared. |
Libraries were all good. I found one difference between working and non-working server. There was avx flag in CPU, in working one.
Code:
[root@oyr003 ~]# grep ^flags /proc/cpuinfo |uniq |grep -i avx |
All times are GMT -5. The time now is 02:25 PM. |