Nick Coghlan <ncogh...@gmail.com> added the comment:

I don't think we made any start-up changes that were specific to 
PySys_AddWarnOption, so my suspicion is that the crash is going to be related 
to a change in the constraints on either the unicode object creation or the 
list append operation.

The attached patch adds a new test case (I also cleaned up several other 
details related to test_embed execution in order to more easily see where the 
segfault happens on failure).

Unfortunately, it isn't yet suitable for use with `git bisect`, as I checked 
3.7.0a3 (the earliest tag where the patch applied cleanly), and that commit 
also segfaults. So setting up for git bisect testing (as per the hot-fix 
example in https://git-scm.com/docs/git-bisect#_examples ) will require:

* checking the commit where "test_embed.py" was extracted from "test_capi.py" 
and seeing whether or not that segfaults
* if it *doesn't* segfault, git bisect between there and v3.7.0a3
* if it *does* segfault, make a revised test patch that applies cleanly to 
early versions, and then go back through the 3.7.0 pre-releases to find one 
that works

----------
keywords: +patch
nosy: +ncoghlan
Added file: https://bugs.python.org/file47477/bpo-33042-test-case.diff

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue33042>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to