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

Assertion Error with FCdeque #146

Open
mame98 opened this issue Mar 25, 2020 · 1 comment
Open

Assertion Error with FCdeque #146

mame98 opened this issue Mar 25, 2020 · 1 comment

Comments

@mame98
Copy link

mame98 commented Mar 25, 2020

When using this library I get an assertion error:

lf: ../cds/algo/flat_combining/kernel.h:700: bool cds::algo::flat_combining::kernel<PublicationRecord, Traits>::combining_pass(Container&, unsigned int) [with Container = cds::container::FCDeque<long int>; PublicationRecord = cds::container::FCDeque<long int>::fc_record; Traits = cds::container::fcdeque::traits]: Assertion `false' failed.

Looking this up in the sources it states:

//kernel.h

698                    default:
699                        /// ??? That is impossible
700                        assert( false );

I am basically spawning a bunch of thread which then call push_{front, back} and pop_{front, back} over and over again ( I tried to do some performance evaluations).
The Error does not happen everytime, but quite often. I think that I am maybe using the library wrong, but as the assert just said "impossible" I thought that I better create this issue

@khizmax
Copy link
Owner

khizmax commented Mar 25, 2020

Can you provide the complete listing of your test?

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

No branches or pull requests

2 participants