Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

json::array::erase(it) seg fault on linux #692

Closed
jeremycepres opened this issue Apr 13, 2022 · 2 comments · Fixed by #695
Closed

json::array::erase(it) seg fault on linux #692

jeremycepres opened this issue Apr 13, 2022 · 2 comments · Fixed by #695

Comments

@jeremycepres
Copy link

array::erase(it) seg faults when called on a thread other than the main thread

environment:

$ uname -a
Linux localhost.localdomain 5.16.18-200.fc35.x86_64 #1 SMP PREEMPT Mon Mar 28 14:10:07 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

$ gcc --version
gcc (GCC) 11.2.1 20220127 (Red Hat 11.2.1-9)

tested on boost 1.76.0 and 1.78.0

example code attached:

test.zip

regards,
jeremy godfrey

@vinniefalco
Copy link
Member

This fails for me without a separate thread

    void
    testIssue692()
    {
	    array a;
	    object obj;
	    obj["test1"] = "hello";
	    a.push_back(obj);
	    a.push_back(obj);
	    a.push_back(obj);
	    a.push_back(obj);
	    a.push_back(obj);
	    while(a.size())
		    a.erase(a.begin());
    }

Congrats Jeremy :)

vinniefalco added a commit to vinniefalco/json that referenced this issue Apr 13, 2022
@jeremycepres
Copy link
Author

great, thanks Vinnie

ClaymorePT added a commit to ClaymorePT/packages that referenced this issue Apr 26, 2022
This commit updates boost to version 1.79.0

There are no new libraries in this version

More info about Boost 1.79.0 can be found at the usual place [1].

Note: This package update includes a fix merged to Boost.JSON in [2]
which did not make into this version.

[1]: https://www.boost.org/users/history/version_1_79_0.html
[2]: boostorg/json#692

Signed-off-by: Carlos Miguel Ferreira <[email protected]>
ClaymorePT added a commit to ClaymorePT/packages that referenced this issue Apr 26, 2022
This commit updates boost to version 1.79.0

There are no new libraries in this version

More info about Boost 1.79.0 can be found at the usual place [1].

Note: This package update includes a fix merged to Boost.JSON in [2]
which did not make into this version.

[1]: https://www.boost.org/users/history/version_1_79_0.html
[2]: boostorg/json#692

Signed-off-by: Carlos Miguel Ferreira <[email protected]>
neheb pushed a commit to openwrt/packages that referenced this issue Apr 27, 2022
This commit updates boost to version 1.79.0

There are no new libraries in this version

More info about Boost 1.79.0 can be found at the usual place [1].

Note: This package update includes a fix merged to Boost.JSON in [2]
which did not make into this version.

[1]: https://www.boost.org/users/history/version_1_79_0.html
[2]: boostorg/json#692

Signed-off-by: Carlos Miguel Ferreira <[email protected]>
breakings pushed a commit to breakings/packages that referenced this issue Apr 28, 2022
This commit updates boost to version 1.79.0

There are no new libraries in this version

More info about Boost 1.79.0 can be found at the usual place [1].

Note: This package update includes a fix merged to Boost.JSON in [2]
which did not make into this version.

[1]: https://www.boost.org/users/history/version_1_79_0.html
[2]: boostorg/json#692

Signed-off-by: Carlos Miguel Ferreira <[email protected]>
Beginner-Go pushed a commit to coolsnowwolf/packages that referenced this issue Apr 28, 2022
* boost: fix compilation error under SPARC

Missing braces.

Signed-off-by: Rosen Penev <[email protected]>

* boost: Bump to version 1.77.0

This commit updates boost to version 1.77.0
More info about Boost 1.77.0 can be found at the usual place [1].

There are two new libraries in this version:
* Describe [2]: A C++14 reflection library, from Peter Dimov. Provides
macros for describing enumerators and struct/class members, and
primitives for querying this information.
* Lambda2 [3]: A C++14, dependency-free, single header lambda library, from
Peter Dimov. Allows simple function objects to be constructed via
expressions such as:
_1 + 5, _1 % 2 == 0, _1 > _2, or _1 == ' ' || _1 == '\t'.

[1]: https://www.boost.org/users/history/version_1_77_0.html
[2]: https://www.boost.org/libs/describe/
[3]: https://www.boost.org/libs/lambda2/

Signed-off-by: Carlos Miguel Ferreira <[email protected]>

* boost: Fixes Boost.Math build for arm_xscale

This commit adds a new patch which fixes build issue with Boost.Math.
Issue is described in upstream PR boostorg/math#684 [1]

[1]: boostorg/math#684

Signed-off-by: Carlos Miguel Ferreira <[email protected]>

* boost: Bump to version 1.78.0

This commit updates boost to version 1.78.0
More info about Boost 1.78.0 can be found at the usual place [1].

No new libraries have been added.

[1]: https://www.boost.org/users/history/version_1_78_0.html

Signed-off-by: Carlos Miguel Ferreira <[email protected]>

* boost: fix libboost_context for mips64

There was an upstream patch that changes mips1 to mips.

Signed-off-by: Rosen Penev <[email protected]>

* boost: Updates package to version 1.79.0

This commit updates boost to version 1.79.0

There are no new libraries in this version

More info about Boost 1.79.0 can be found at the usual place [1].

Note: This package update includes a fix merged to Boost.JSON in [2]
which did not make into this version.

[1]: https://www.boost.org/users/history/version_1_79_0.html
[2]: boostorg/json#692

Signed-off-by: Carlos Miguel Ferreira <[email protected]>

Co-authored-by: Rosen Penev <[email protected]>
Co-authored-by: Carlos Miguel Ferreira <[email protected]>
ClaymorePT added a commit to ClaymorePT/packages that referenced this issue May 1, 2022
This commit updates boost to version 1.79.0

There are no new libraries in this version

The following patches were removed due to upstream update:
* 010-fix-b2-install.patch [1]
* 020-fix-musl-build.patch [2]

More info about Boost 1.79.0 can be found at the usual place [3].

Note: This package update includes a fix merged to Boost.JSON in [4]
which did not make into this version.

[1]: boostorg/build@78fd284
[2]: boostorg/interprocess#162
[3]: https://www.boost.org/users/history/version_1_79_0.html
[4]: boostorg/json#692

Signed-off-by: Carlos Miguel Ferreira <[email protected]>
neheb pushed a commit to openwrt/packages that referenced this issue May 1, 2022
This commit updates boost to version 1.79.0

There are no new libraries in this version

The following patches were removed due to upstream update:
* 010-fix-b2-install.patch [1]
* 020-fix-musl-build.patch [2]

More info about Boost 1.79.0 can be found at the usual place [3].

Note: This package update includes a fix merged to Boost.JSON in [4]
which did not make into this version.

[1]: boostorg/build@78fd284
[2]: boostorg/interprocess#162
[3]: https://www.boost.org/users/history/version_1_79_0.html
[4]: boostorg/json#692

Signed-off-by: Carlos Miguel Ferreira <[email protected]>
1715173329 pushed a commit to immortalwrt/packages that referenced this issue May 1, 2022
This commit updates boost to version 1.79.0

There are no new libraries in this version

The following patches were removed due to upstream update:
* 010-fix-b2-install.patch [1]
* 020-fix-musl-build.patch [2]

More info about Boost 1.79.0 can be found at the usual place [3].

Note: This package update includes a fix merged to Boost.JSON in [4]
which did not make into this version.

[1]: boostorg/build@78fd284
[2]: boostorg/interprocess#162
[3]: https://www.boost.org/users/history/version_1_79_0.html
[4]: boostorg/json#692

Signed-off-by: Carlos Miguel Ferreira <[email protected]>
(cherry picked from commit d4db474)
Beginner-Go pushed a commit to coolsnowwolf/packages that referenced this issue May 1, 2022
This commit updates boost to version 1.79.0

There are no new libraries in this version

The following patches were removed due to upstream update:
* 010-fix-b2-install.patch [1]
* 020-fix-musl-build.patch [2]

More info about Boost 1.79.0 can be found at the usual place [3].

Note: This package update includes a fix merged to Boost.JSON in [4]
which did not make into this version.

[1]: boostorg/build@78fd284
[2]: boostorg/interprocess#162
[3]: https://www.boost.org/users/history/version_1_79_0.html
[4]: boostorg/json#692

Signed-off-by: Carlos Miguel Ferreira <[email protected]>
cotequeiroz pushed a commit to cotequeiroz/packages that referenced this issue May 4, 2022
This commit updates boost to version 1.79.0

There are no new libraries in this version

The following patches were removed due to upstream update:
* 010-fix-b2-install.patch [1]
* 020-fix-musl-build.patch [2]

More info about Boost 1.79.0 can be found at the usual place [3].

Note: This package update includes a fix merged to Boost.JSON in [4]
which did not make into this version.

[1]: boostorg/build@78fd284
[2]: boostorg/interprocess#162
[3]: https://www.boost.org/users/history/version_1_79_0.html
[4]: boostorg/json#692

Signed-off-by: Carlos Miguel Ferreira <[email protected]>
(cherry picked from commit d4db474)
paulharris added a commit to paulharris/conan-center-index that referenced this issue May 10, 2022
conan-center-bot pushed a commit to conan-io/conan-center-index that referenced this issue May 21, 2022
freebsd-git pushed a commit to freebsd/freebsd-ports that referenced this issue May 23, 2022
garikello3d pushed a commit to garikello3d/packages that referenced this issue Aug 15, 2022
This commit updates boost to version 1.79.0

There are no new libraries in this version

More info about Boost 1.79.0 can be found at the usual place [1].

Note: This package update includes a fix merged to Boost.JSON in [2]
which did not make into this version.

[1]: https://www.boost.org/users/history/version_1_79_0.html
[2]: boostorg/json#692

Signed-off-by: Carlos Miguel Ferreira <[email protected]>
garikello3d pushed a commit to garikello3d/packages that referenced this issue Aug 15, 2022
This commit updates boost to version 1.79.0

There are no new libraries in this version

The following patches were removed due to upstream update:
* 010-fix-b2-install.patch [1]
* 020-fix-musl-build.patch [2]

More info about Boost 1.79.0 can be found at the usual place [3].

Note: This package update includes a fix merged to Boost.JSON in [4]
which did not make into this version.

[1]: boostorg/build@78fd284
[2]: boostorg/interprocess#162
[3]: https://www.boost.org/users/history/version_1_79_0.html
[4]: boostorg/json#692

Signed-off-by: Carlos Miguel Ferreira <[email protected]>
ineedfat pushed a commit to ineedfat/rockchip_rk3568_openwrt_packages that referenced this issue Jun 7, 2024
* boost: fix compilation error under SPARC

Missing braces.

Signed-off-by: Rosen Penev <[email protected]>

* boost: Bump to version 1.77.0

This commit updates boost to version 1.77.0
More info about Boost 1.77.0 can be found at the usual place [1].

There are two new libraries in this version:
* Describe [2]: A C++14 reflection library, from Peter Dimov. Provides
macros for describing enumerators and struct/class members, and
primitives for querying this information.
* Lambda2 [3]: A C++14, dependency-free, single header lambda library, from
Peter Dimov. Allows simple function objects to be constructed via
expressions such as:
_1 + 5, _1 % 2 == 0, _1 > _2, or _1 == ' ' || _1 == '\t'.

[1]: https://www.boost.org/users/history/version_1_77_0.html
[2]: https://www.boost.org/libs/describe/
[3]: https://www.boost.org/libs/lambda2/

Signed-off-by: Carlos Miguel Ferreira <[email protected]>

* boost: Fixes Boost.Math build for arm_xscale

This commit adds a new patch which fixes build issue with Boost.Math.
Issue is described in upstream PR boostorg/math#684 [1]

[1]: boostorg/math#684

Signed-off-by: Carlos Miguel Ferreira <[email protected]>

* boost: Bump to version 1.78.0

This commit updates boost to version 1.78.0
More info about Boost 1.78.0 can be found at the usual place [1].

No new libraries have been added.

[1]: https://www.boost.org/users/history/version_1_78_0.html

Signed-off-by: Carlos Miguel Ferreira <[email protected]>

* boost: fix libboost_context for mips64

There was an upstream patch that changes mips1 to mips.

Signed-off-by: Rosen Penev <[email protected]>

* boost: Updates package to version 1.79.0

This commit updates boost to version 1.79.0

There are no new libraries in this version

More info about Boost 1.79.0 can be found at the usual place [1].

Note: This package update includes a fix merged to Boost.JSON in [2]
which did not make into this version.

[1]: https://www.boost.org/users/history/version_1_79_0.html
[2]: boostorg/json#692

Signed-off-by: Carlos Miguel Ferreira <[email protected]>

Co-authored-by: Rosen Penev <[email protected]>
Co-authored-by: Carlos Miguel Ferreira <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants