BOOST_SPIRIT_THREADSAFE problems on OSX #1371

issue gavinandresen opened this issue on May 21, 2012
  1. gavinandresen commented at 10:05 PM on May 21, 2012: contributor

    Unit tests started failing on my Mac with the "Support multi-threaded JSON-RPC" commit e9205293bd8d6352ce51372111336ba3c4e14e70

    Running the unit tests I get:

    unknown location:0: fatal error in "script_valid": memory access violation at address: 0x0000005c: non-existent physical address

    Running under valgrind I get an uninitialized write in _pthread_mutex_init.

    Compiling with -pthread and linking with -lpthread doesn't fix it.

    I'm using MacPorts boos 1.49... googling didn't turn up any bugs. I'll try to get a small standalone test case...

  2. jgarzik commented at 11:01 PM on May 21, 2012: contributor

    @gavinandresen : BOOST_SPIRIT_THREADSAFE should be included in script_tests.cpp and rpcdump.cpp, I'd guess. Can you try adding it at each location where the json_spirit headers are included?

  3. jgarzik referenced this in commit 7b671f52e0 on May 22, 2012
  4. jgarzik closed this on May 22, 2012

  5. coblee referenced this in commit bf3ce2c029 on Jul 17, 2012
  6. suprnurd referenced this in commit 295e94d66a on Dec 5, 2017
  7. lateminer referenced this in commit 2ac746cd61 on Jan 22, 2019
  8. MarcoFalke locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-20 00:16 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me