libjson-c3-0.12.1-1.1 has building bug

Bug #1695611 reported by harry
6
This bug affects 1 person
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-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

Revision history for this message
harry (xiaohai830223) wrote :

The attached file is the key dump with gdb debug application.
The bug was fixed after rebuilding the libjson-c with source

Revision history for this message
Gianfranco Costamagna (costamagnagianfranco) wrote :

I hope it is ok now

Changed in json-c (Ubuntu):
status: New → Fix Released
Revision history for this message
Gianfranco Costamagna (costamagnagianfranco) wrote :

Please reopen if you still have this issue!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.