[Bug 1695611] Re: libjson-c3-0.12.1-1.1 has building bug
harry
xiaohai830223 at gmail.com
Sat Jun 3 13:00:49 UTC 2017
The attached file is the key dump with gdb debug application.
The bug was fixed after rebuilding the libjson-c with source
** Attachment added: "gdb_dump_during_debug_application.txt"
https://bugs.launchpad.net/ubuntu/+source/json-c/+bug/1695611/+attachment/4888345/+files/gdb_dump_during_debug_application.txt
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to json-c in Ubuntu.
https://bugs.launchpad.net/bugs/1695611
Title:
libjson-c3-0.12.1-1.1 has building bug
Status in json-c package in Ubuntu:
New
Bug description:
Hi ubuntu team
i am developing application based on libjson-c and libglib. The previous version is Ubuntu 16.04, everything is ok. But i found malloc corruption when my OS was upgraded to Ubuntu 17.04. I suspected the glib issue in previous, but i found the problem was caused by libjson-c after debugging.
So i used the following command to rebuild libjson from souce:
# apt-get source libjson-c3
# cd json-c-0.12.1
# sudo apt-get build-dep json-c
# sudo debuild -i -us -uc -b
i got 3 deb packages: libjson-c-dev_0.12.1-1.1_amd64.deb , libjson-c-doc_0.12.1-1.1_all.deb, libjson-c3_0.12.1-1.1_amd64.deb
Then use cmd: dpkg -i <***.deb> to install the above package to overwrite(overinstall) the original libjson-c package .
Last i rebuild my application and run , everything is ok.
GCC verison:
# gcc --version
gcc (Ubuntu 6.3.0-12ubuntu2) 6.3.0 20170406
Copyright (C) 2016 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE
# uname -a
Linux harry-ThinkPad-Edge-E430 4.10.0-22-generic #24-Ubuntu SMP Mon May 22 17:43:20 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
i seems the problem was caused by release build.
Best regards
Tony
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/json-c/+bug/1695611/+subscriptions
More information about the foundations-bugs
mailing list