Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

bpo-33615: avoid extra decref#7251

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation

ericsnowcurrently
Copy link
Member

@ericsnowcurrentlyericsnowcurrently commentedMay 30, 2018
edited
Loading

Forbpo-32604 I added extra subinterpreter-related tests (see#6914), which caused a few buildbots to fail. This patch ensures that refcounts in channels are handled properly.

WIP: I'll be iterating against the failing buildbots (particularly"x86 Gentoo Refleaks 3.x") until this is resolved. The problem may have already existed before#6914 (and only surfaced with the new tests). However, I'm going to start from#6914 and then dive deeper. My first stab at the problem involves preventing a race (albeit an unlikely one) in _PyObject_GetCrossInterpreterData().

https://bugs.python.org/issue33615

Copy link
Member

@vstinnervstinner left a comment

Choose a reason for hiding this comment

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

I approve blindly the PR just because any attempt to fix the annoying test failure is a good idea :-D Also, I trust Eric to understand his own code :-D

@vstinner
Copy link
Member

Hum, the change doesn't work yet...

test_run_string_arg_resolved (test.test__xxsubinterpreters.ChannelTests) ... Fatal Python error: Objects/dictobject.c:557 object at 0x14dbb111ec48 has negative ref count -2604246222170760230

@vstinner
Copy link
Member

Oops sorry, I forgot to mention that the crash comes from Travis CI:
https://travis-ci.org/python/cpython/jobs/385779931

@ericsnowcurrently
Copy link
MemberAuthor

Yeah, I've been working on this whenever I can spare some time. I haven't been able to reproduce the issue locally (something racy is happening) so I was planning to rely on the buildbots to verify when I've fixed the issue. I'm actually glad things failed on CI since it reduces the latency of results (vs. buildbots). :) The current PR is the first thing I've tried to fix the issue.

Also, note that with clang the PR led to a refcount-related abort, whereas with GCC it segfaulted. I'd be much more likely to resolve this quickly if I could see a C-level backtrace on CI/buildbots (and moreso if I could repro locally), but I expect that isn't an option. :/

ericsnowcurrently added a commit that referenced this pull requestMay 31, 2018
… few buildbots. (gh-7288)Forbpo-32604 I added some subinterpreter-related tests (see#6914) that are causing crashes on a few buildbots. I'm working on fixing the crashes (see#7251).  This change temporarily disables the triggering test.
@ericsnowcurrentlyericsnowcurrentlyforce-pushed thefix-channel-test-fatal-error branch fromfe153c4 to19a530cCompareJune 1, 2018 22:09
@ericsnowcurrentlyericsnowcurrentlyforce-pushed thefix-channel-test-fatal-error branch from19a530c toea22ea3CompareJune 1, 2018 22:52
@ericsnowcurrently
Copy link
MemberAuthor

FYI, I'm running this against the custom buildbot builders before merging.

@ericsnowcurrently
Copy link
MemberAuthor

The custom build looks good so I'm going to merge.

@ericsnowcurrentlyericsnowcurrently changed the title[WIP] bpo-33615: avoid extra decrefbpo-33615: avoid extra decrefJun 2, 2018
@ericsnowcurrentlyericsnowcurrently merged commit6379913 intopython:masterJun 2, 2018
@ericsnowcurrentlyericsnowcurrently deleted the fix-channel-test-fatal-error branchJune 4, 2018 15:21
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@vstinnervstinnervstinner approved these changes

Assignees
No one assigned
Labels
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

4 participants
@ericsnowcurrently@vstinner@the-knights-who-say-ni@bedevere-bot

[8]ページ先頭

©2009-2025 Movatter.jp