#5520 closed Bugs (fixed)
read_json causes segfault when called from multiple threads
Reported by: | Owned by: | Sebastian Redl | |
---|---|---|---|
Milestone: | To Be Determined | Component: | property_tree |
Version: | Boost 1.46.1 | Severity: | Problem |
Keywords: | Cc: |
Description
Distro: Debian 5.0.6 Linux host 2.6.26-2-amd64 #1 SMP Sun Jun 20 20:16:30 UTC 2010 x86_64 GNU/Linux
I'm going to attach a short example to trigger the bug. I can also provide a core dump if needed.
Attachments (1)
Change History (11)
by , 11 years ago
Attachment: | trigger_bug.cpp added |
---|
comment:2 by , 11 years ago
Component: | property_tree → spirit |
---|---|
Owner: | changed from | to
Never mind, could reproduce it. This appears to be a problem in Spirit.Classic. It crashes in boost::spirit::classic::impl::object_with_id_base_supply<unsigned long>::acquire ().
Reassigning.
comment:4 by , 11 years ago
This is a known "classic" bug. The best course of action really is to switch to Spirit V2 which does not have these threading issues. Chances are very remote this will ever be fixed in "classic". A JSON parser is easy. It's about time to port to Spirit V2.
comment:5 by , 11 years ago
Component: | spirit → property_tree |
---|---|
Owner: | changed from | to
OK, taking the bug back then.
comment:6 by , 10 years ago
Hello,
I just hit this bug on boost 1.49.0 on a Raspbian system, and it looks like no progress was made on boost 1.50.0. Is there any milestone set for porting the parser to Spirit V2?
comment:9 by , 7 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
The JSON parser rewrite has landed on master, so this will be fixed in 1.59.
Short example to trigger segfault in read_json.