➜

This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

作者 ncoghlan
收信人 eric.snow, htgoebel, ncoghlan, vstinner
日期 2018-03-12.12:28:27
SpamBayes Score -1.0
Marked as misclassified 是
Message-id <1520857707.85.0.467229070634.issue33042@psf.upfronthosting.co.za>
In-reply-to
内容
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
历史
日期 用户 动作 参数
2018-03-12 12:28:28ncoghlan修改recipients: + ncoghlan, htgoebel, vstinner, eric.snow
2018-03-12 12:28:27ncoghlan修改messageid: <1520857707.85.0.467229070634.issue33042@psf.upfronthosting.co.za>
2018-03-12 12:28:27ncoghlan链接issue33042 messages
2018-03-12 12:28:27ncoghlan创建