Skip to content

bpo-28787: Fix out of tree --with-dtrace builds #135

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

Merged
merged 3 commits into from
May 10, 2017

Conversation

stratakis
Copy link
Contributor

Issue reported at: https://bugs.python.org/issue28787

This was observed after DTrace and Systemtap support was introduced for Python 3.6.0: https://bugs.python.org/issue21590

Copy link
Member

@vstinner vstinner left a comment

Choose a reason for hiding this comment

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

It seems to be your first contribution, please add yourself to Misc/ACKS ;-)

Makefile.pre.in Outdated
@@ -880,6 +880,7 @@ Python/frozen.o: Python/importlib.h Python/importlib_external.h
# follow our naming conventions. dtrace(1) uses the output filename to generate
# an include guard, so we can't use a pipeline to transform its output.
Include/pydtrace_probes.h: $(srcdir)/Include/pydtrace.d
@$(MKDIR_P) Include
Copy link
Member

Choose a reason for hiding this comment

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

Please remove @, I like to see what is done.

@vstinner
Copy link
Member

vstinner commented May 5, 2017

Please rebase also your change.

stratakis added 3 commits May 9, 2017 15:18

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
@vstinner vstinner merged commit f6eae5b into python:master May 10, 2017
@vstinner
Copy link
Member

I merged your change, thanks @stratakis. Would you mind to backport the change? Only 3.6 is needed according to http://bugs.python.org/issue28787

I used the following commands. Without the change, make fails. With the fix, make works as expected.

cd $HOME
rm -rf build_cpython/
mkdir build_cpython/
cd build_cpython/
~/prog/python/master/configure --with-pydebug --with-dtrace
make

@stratakis
Copy link
Contributor Author

Thanks @Haypo . I have already backported the change at #1519 .

stratakis added a commit to stratakis/cpython that referenced this pull request May 11, 2017

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
* bpo-28787: Fix out of tree --with-dtrace builds

* Unsilence directory creation

* Add Misc/NEWS and Misc/ACKS entries.
(cherry picked from commit f6eae5b)
vstinner pushed a commit that referenced this pull request May 11, 2017
* bpo-28787: Fix out of tree --with-dtrace builds

* Unsilence directory creation

* Add Misc/NEWS and Misc/ACKS entries.
(cherry picked from commit f6eae5b)
akruis pushed a commit to akruis/cpython that referenced this pull request Oct 10, 2017
This commit reveals a reference leak. See issue python#135,
stackless-dev#135
akruis pushed a commit to akruis/cpython that referenced this pull request Oct 10, 2017
Fix several problems related with slp_prepare_slots():
- set Py_TPFLAGS_HAVE_STACKLESS_EXTENSION in slp_prepare_slots().
- for heap types free the allocated buffer in tp_dealloc
- Allocate the memory from the object domain, because the blocks are
  small (about 74 bytes).
akruis pushed a commit to akruis/cpython that referenced this pull request Oct 29, 2017
akruis pushed a commit to akruis/cpython that referenced this pull request Jun 19, 2018
Fix several problems related with slp_prepare_slots():
- set Py_TPFLAGS_HAVE_STACKLESS_EXTENSION in slp_prepare_slots().
- for heap types free the allocated buffer in tp_dealloc
- Allocate the memory from the object domain, because the blocks are
  small (about 74 bytes).

(cherry picked from commit e217840)
@stratakis stratakis deleted the out_of_tree_dtrace branch January 3, 2020 21:28
jaraco pushed a commit that referenced this pull request Dec 2, 2022
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 this pull request may close these issues.

None yet

3 participants