Skip to content

Conversation

@pitrou
Copy link
Member

@pitrou pitrou commented Jun 30, 2021

Also ensure that the llvm-symbolizer path is correctly set, for useful tracebacks.

@pitrou pitrou requested a review from bkietz June 30, 2021 16:27
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kszucs Does this seem ok?

@github-actions
Copy link

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Of course, we could also not bother with this complication, since worker_thread_id is only used for debugging.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

True, but the assert catches an otherwise potentially subtle issue in how BackgroundGenerator is meant to be used. It's not entirely obvious that you aren't allowed to dispose of it from the worker thread and it a fair amount of debugging to discover this root cause.

What was the issue? Is it because the worker thread id might be changing (from set to unset) when the assert in cleanup happens?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it because the worker thread id might be changing (from set to unset) when the assert in cleanup happens?

Exactly, yes.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this neat trick to turn a thread::id into an int64_t is indeed reliable it might be nice to add int64_t arrow::internal::GetCurrentThreadId(). Probably in thread_pool.h/cc.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will do.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See #10644

@pitrou
Copy link
Member Author

pitrou commented Jun 30, 2021

@github-actions crossbow submit -g cpp

@github-actions
Copy link

Revision: 6f08ec8c6125422b2d36455d604acd2a6fdefe03

Submitted crossbow builds: ursacomputing/crossbow @ actions-537

Task Status
test-conda-cpp Github Actions
test-conda-cpp-valgrind Github Actions
test-debian-10-cpp Github Actions
test-fedora-33-cpp Github Actions
test-ubuntu-18.04-cpp Github Actions
test-ubuntu-18.04-cpp-release Github Actions
test-ubuntu-18.04-cpp-static Github Actions
test-ubuntu-20.04-cpp Github Actions
test-ubuntu-20.04-cpp-14 Github Actions
test-ubuntu-20.04-cpp-17 Github Actions
test-ubuntu-20.04-cpp-thread-sanitizer Github Actions

@pitrou
Copy link
Member Author

pitrou commented Jun 30, 2021

@github-actions crossbow submit -g cpp

@github-actions
Copy link

Revision: 2b062b03a19ab291ee3401d00333923a6ebaa29f

Submitted crossbow builds: ursacomputing/crossbow @ actions-538

Task Status
test-conda-cpp Github Actions
test-conda-cpp-valgrind Github Actions
test-debian-10-cpp Github Actions
test-fedora-33-cpp Github Actions
test-ubuntu-18.04-cpp Github Actions
test-ubuntu-18.04-cpp-release Github Actions
test-ubuntu-18.04-cpp-static Github Actions
test-ubuntu-20.04-cpp Github Actions
test-ubuntu-20.04-cpp-14 Github Actions
test-ubuntu-20.04-cpp-17 Github Actions
test-ubuntu-20.04-cpp-thread-sanitizer Github Actions

@pitrou pitrou force-pushed the ARROW-13223-tsan-failures branch from 2b062b0 to bc4f23f Compare July 1, 2021 10:20
@pitrou
Copy link
Member Author

pitrou commented Jul 1, 2021

@github-actions crossbow submit -g cpp

@github-actions
Copy link

github-actions bot commented Jul 1, 2021

Revision: bc4f23f319ad7922f5a3debb9411d0f6e36fad27

Submitted crossbow builds: ursacomputing/crossbow @ actions-542

Task Status
test-conda-cpp Github Actions
test-conda-cpp-valgrind Github Actions
test-debian-10-cpp Github Actions
test-fedora-33-cpp Github Actions
test-ubuntu-18.04-cpp Github Actions
test-ubuntu-18.04-cpp-release Github Actions
test-ubuntu-18.04-cpp-static Github Actions
test-ubuntu-20.04-cpp Github Actions
test-ubuntu-20.04-cpp-14 Github Actions
test-ubuntu-20.04-cpp-17 Github Actions
test-ubuntu-20.04-cpp-thread-sanitizer Github Actions

@pitrou pitrou requested a review from bkietz July 1, 2021 10:56
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@westonpace I had to change this as well, got a sporadic race condition in MergedGeneratorTests/MergedGeneratorTestFixture.MergedLimitedSubscriptions/1.

@pitrou
Copy link
Member Author

pitrou commented Jul 1, 2021

@github-actions crossbow submit -g cpp

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmmm, the Valgrind failure should be fixed if we move computation of the hash into Expresion::Expression(Call)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, I had missed the Valgrind failure. My bad.

@github-actions
Copy link

github-actions bot commented Jul 1, 2021

Revision: 8c315e12db500692d42e3c67d078e01f336d12f8

Submitted crossbow builds: ursacomputing/crossbow @ actions-543

Task Status
test-conda-cpp Github Actions
test-conda-cpp-valgrind Github Actions
test-debian-10-cpp Github Actions
test-fedora-33-cpp Github Actions
test-ubuntu-18.04-cpp Github Actions
test-ubuntu-18.04-cpp-release Github Actions
test-ubuntu-18.04-cpp-static Github Actions
test-ubuntu-20.04-cpp Github Actions
test-ubuntu-20.04-cpp-14 Github Actions
test-ubuntu-20.04-cpp-17 Github Actions
test-ubuntu-20.04-cpp-thread-sanitizer Github Actions

@pitrou pitrou requested a review from bkietz July 1, 2021 12:11
@pitrou
Copy link
Member Author

pitrou commented Jul 1, 2021

@github-actions crossbow submit -g cpp

@github-actions
Copy link

github-actions bot commented Jul 1, 2021

Revision: 42c3638600296c3e92b87a82962d23c7a336d578

Submitted crossbow builds: ursacomputing/crossbow @ actions-544

Task Status
test-conda-cpp Github Actions
test-conda-cpp-valgrind Github Actions
test-debian-10-cpp Github Actions
test-fedora-33-cpp Github Actions
test-ubuntu-18.04-cpp Github Actions
test-ubuntu-18.04-cpp-release Github Actions
test-ubuntu-18.04-cpp-static Github Actions
test-ubuntu-20.04-cpp Github Actions
test-ubuntu-20.04-cpp-14 Github Actions
test-ubuntu-20.04-cpp-17 Github Actions
test-ubuntu-20.04-cpp-thread-sanitizer Github Actions

Also ensure that the llvm-symbolizer path is correctly set, for useful tracebacks.
@pitrou pitrou force-pushed the ARROW-13223-tsan-failures branch from 42c3638 to 9257932 Compare July 1, 2021 12:45
@pitrou
Copy link
Member Author

pitrou commented Jul 1, 2021

@github-actions crossbow submit -g cpp

@pitrou
Copy link
Member Author

pitrou commented Jul 1, 2021

Rebased and fixed conflicts.

@github-actions
Copy link

github-actions bot commented Jul 1, 2021

Revision: 9257932

Submitted crossbow builds: ursacomputing/crossbow @ actions-545

Task Status
test-conda-cpp Github Actions
test-conda-cpp-valgrind Github Actions
test-debian-10-cpp Github Actions
test-fedora-33-cpp Github Actions
test-ubuntu-18.04-cpp Github Actions
test-ubuntu-18.04-cpp-release Github Actions
test-ubuntu-18.04-cpp-static Github Actions
test-ubuntu-20.04-cpp Github Actions
test-ubuntu-20.04-cpp-14 Github Actions
test-ubuntu-20.04-cpp-17 Github Actions
test-ubuntu-20.04-cpp-thread-sanitizer Github Actions

Copy link
Member

@bkietz bkietz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@pitrou pitrou closed this in 83651ac Jul 1, 2021
@pitrou pitrou deleted the ARROW-13223-tsan-failures branch July 1, 2021 14:25
@pachadotdev
Copy link
Contributor

@github-actions crossbow submit test-r-linux-valgrind

@github-actions
Copy link

github-actions bot commented Jul 1, 2021

Revision: 9257932

Submitted crossbow builds: ursacomputing/crossbow @ actions-557

Task Status
test-r-linux-valgrind Azure

pitrou added a commit to pitrou/arrow that referenced this pull request Jul 5, 2021
pitrou added a commit that referenced this pull request Jul 5, 2021
Followup to #10632

Closes #10644 from pitrou/ARROW-13244-current-tid

Authored-by: Antoine Pitrou <antoine@python.org>
Signed-off-by: Antoine Pitrou <antoine@python.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants