libjson-c3-0.12.1-1.1 has building bug
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
json-c (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
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-
Then use cmd: dpkg -i <***.deb> to install the above package to overwrite(
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-
i seems the problem was caused by release build.
Best regards
Tony
The attached file is the key dump with gdb debug application.
The bug was fixed after rebuilding the libjson-c with source