lundi 22 octobre 2018

libjson-c.so.3 vs libjson-c.so.2 in Ubuntu

I am trying to run a C++ program developed on Ubuntu 18.04. It uses JSON-C shared library. It compiles and runs without any problem on my Ubuntu 18.04 system. However it compiles on a Ubuntu 14.04 system but crash upon running, Reporting following message -

*** Error in `./main.out': corrupted size vs. prev_size: 0x00007fdd54f49e30 ***Aborted (core dumped)

After some digging I have found that something wrong with JSON-C library. I have checked the linked JSON-C libraries using ldd command. It gave me following output in Ubuntu 18.04 -

libjson-c.so.3 => /lib/x86_64-linux-gnu/libjson-c.so.3 (0x00007ff16a88c000)

And following in Ubuntu 14.04 -

libjson-c.so.2 => /lib/x86_64-linux-gnu/libjson-c.so.2 (0x00007f0848838000)

I guess something wrong with JSON-C versions. I couldn't found any useful information on google. Any ideas what sort of problem this is?

Aucun commentaire:

Enregistrer un commentaire