Skip to content
This repository has been archived by the owner on Mar 26, 2020. It is now read-only.

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

Open
krszalay opened this issue Mar 19, 2017 · 2 comments
Open

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

krszalay opened this issue Mar 19, 2017 · 2 comments
Labels

Comments

@krszalay
Copy link

krszalay commented Mar 19, 2017

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

@j4cbo
Copy link
Contributor

j4cbo commented Mar 21, 2017

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

@artwyman
Copy link
Contributor

artwyman commented Mar 31, 2017

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 artwyman changed the title json11::Json::dump throws exception dumping empty map json11::Json::dump throws exception dumping empty map in gdb Mar 31, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants