json11 icon indicating copy to clipboard operation
json11 copied to clipboard

json11::Json::dump throws exception dumping empty map in gdb

Open krszalay opened this issue 7 years ago • 2 comments

json11 raises a "pure virtual function call" exception when trying to dump the following json: {"params": {}, "method": "ping", "id": 1}

this only happens in gdb

krszalay avatar Mar 19 '17 22:03 krszalay

Can you post a minimal test case? This could be the result of other memory corruption.

j4cbo avatar Mar 21 '17 03:03 j4cbo

I think this needs more context to be acted upon. Does dumping mean calling Json::dump() normally or something specific to the debugger? Does calling it normally within the same program work? Is it possible that the dump() method simply isn't compiled into the program because it's unused or something like that?

An example plus repro steps would be good. A stack trace would be useful too.

artwyman avatar Mar 31 '17 01:03 artwyman