100% cpu bug in Json

Posted by jmls on 13-Apr-2014 01:52

running on 11.3.1 , this code causes a 100% cpu hang. Can anyone else replicate it on other versions of 11 ? Or confirm that they see the same issue on their setup before I report it ? Thanks !

using Progress.Json.ObjectModel.*.

def var data as longchar no-undo.

def var oJson as JsonObject no-undo.

fix-codepage(data) = "UTF-8".

assign data = "~{}".

oJson = cast((new ObjectModelParser()):Parse(data),JsonObject).

/** reached this far no problem */
message "ok" view-as alert-box.

assign data = "/* ".

oJson = cast((new ObjectModelParser()):Parse(data),JsonObject).

/** never gets here. 1 cpu core at 100%  */
message "not ok" view-as alert-box.


All Replies

Posted by egarcia on 13-Apr-2014 06:19

Hello,

I was able to reproduce this issue in 11.3.2.

In another thread, it was mentioned that the AVM uses YAJL (Yet Another JSON Library).

I did not try to reproduce the issue with just YAJL but I noticed that the issue happens in the code that  processes comments, where the exit condition of a loop is not met.

I took a look at the latest version of the source code on GitHub and the code related to the issue has not changed.

Please go ahead and report the issue to Technical Support.

Thanks.

Posted by jmls on 13-Apr-2014 08:48

thanks. Logged as case#00272258

This thread is closed