bpo-24048: Save the live exception during import.c's remove_module() by ZackerySpytz · Pull Request #13005 · python/cpython (original) (raw)

remote: Enumerating objects: 8, done.
remote: Counting objects: 12% (1/8)
remote: Counting objects: 25% (2/8)
remote: Counting objects: 37% (3/8)
remote: Counting objects: 50% (4/8)
remote: Counting objects: 62% (5/8)
remote: Counting objects: 75% (6/8)
remote: Counting objects: 87% (7/8)
remote: Counting objects: 100% (8/8)
remote: Counting objects: 100% (8/8), done.
remote: Total 9 (delta 7), reused 7 (delta 7), pack-reused 1
From https://github.com/python/cpython

find: ‘build’: No such file or directory find: ‘build’: No such file or directory find: ‘build’: No such file or directory find: ‘build’: No such file or directory make[2]: [Makefile:1722: clean] Error 1 (ignored) Objects/longobject.c: In function ‘_PyLong_Frexp’: Objects/longobject.c:2826:33: warning: ‘x_digits[0]’ may be used uninitialized in this function [-Wmaybe-uninitialized] 2826 | x_digits[0] |= 1; | ^~ In file included from Python/ast.c:8: Python/ast.c: In function ‘ast_for_stmt’: ./Include/node.h:34:29: note: the layout of aggregates containing vectors with 8-byte alignment has changed in GCC 5 34 | #define LINENO(n) ((n)->n_lineno) | ~~~~^~~~~~~~~~~ In function ‘assemble_lnotab’, inlined from ‘assemble_emit’ at Python/compile.c:5247:25, inlined from ‘assemble’ at Python/compile.c:5525:18: Python/compile.c:5201:19: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=] 5201 | *lnotab++ = k; | ~~~~~~~~~~^~~ Python/compile.c: In function ‘compiler_visit_stmt’: Python/compile.c:2970:1: note: the layout of aggregates containing vectors with 8-byte alignment has changed in GCC 5 2970 | compiler_visit_stmt(struct compiler *c, stmt_ty s) | ^~~~~~~~~~~~~~~~~~~ Modules/main.c: In function ‘_PyCoreConfig_Copy’: Modules/main.c:2495:47: note: the layout of aggregates containing vectors with 8-byte alignment has changed in GCC 5 2495 | #define COPY_ATTR(ATTR) config->ATTR = config2->ATTR | ~~~~~~~^~~~~~ 2496 | #define COPY_STR_ATTR(ATTR)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2497 | do {
| ~~~~~~
2498 | if (config2->ATTR != NULL) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2499 | config->ATTR = _PyMem_RawWcsdup(config2->ATTR);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2500 | if (config->ATTR == NULL) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2501 | return -1;
| ~~~~~~~~~~~~
2502 | }
| ~~~
2503 | }
| ~~~
2504 | } while (0) | ~~~~~~~~~~~
2505 | #define COPY_WSTRLIST(LEN, LIST)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2506 | do {
| ~~~~~~
2507 | if (config2->LIST != NULL) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2508 | config->LIST = copy_wstrlist(config2->LEN, config2->LIST);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2509 | if (config->LIST == NULL) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2510 | return -1;
| ~~~~~~~~~~~~
2511 | }
| ~~~
2512 | }
| ~~~
2513 | config->LEN = config2->LEN;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2514 | } while (0) | ~~~~~~~~~~~
2515 | |
2516 | COPY_ATTR(install_signal_handlers); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Modules/main.c: In function ‘_PyCoreConfig_Copy’: Modules/main.c:2516:5: note: the layout of aggregates containing vectors with 8-byte alignment has changed in GCC 5 2516 | COPY_ATTR(install_signal_handlers); | ^ Modules/main.c: In function ‘_PyCoreConfig_Copy’: Modules/main.c:2516:5: note: the layout of aggregates containing vectors with 8-byte alignment has changed in GCC 5 2516 | COPY_ATTR(install_signal_handlers); | ^ In function ‘assemble_lnotab’, inlined from ‘assemble_emit’ at Python/compile.c:5247:0, inlined from ‘assemble’ at Python/compile.c:5525:0: Python/compile.c:5201: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=] 5201 | *lnotab++ = k; | In function ‘assemble_lnotab’, inlined from ‘assemble_emit’ at Python/compile.c:5247:0, inlined from ‘assemble’ at Python/compile.c:5525:0: Python/compile.c:5201: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=] 5201 | *lnotab++ = k; | /home/buildbot/buildarea/3.7.cstratak-fedora-stable-ppc64le.lto-pgo/build/Modules/socketmodule.c: In function ‘getsockaddrarg’: /home/buildbot/buildarea/3.7.cstratak-fedora-stable-ppc64le.lto-pgo/build/Modules/socketmodule.c:2194:9: warning: ‘strncpy’ specified bound 64 equals destination size [-Wstringop-truncation] 2194 | strncpy((char *)sa->salg_name, name, sizeof(sa->salg_name)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildbot/buildarea/3.7.cstratak-fedora-stable-ppc64le.lto-pgo/build/Modules/socketmodule.c: In function ‘sock_sendmsg’: /home/buildbot/buildarea/3.7.cstratak-fedora-stable-ppc64le.lto-pgo/build/Modules/socketmodule.c:4230:1: note: the layout of aggregates containing vectors with 8-byte alignment has changed in GCC 5 4230 | sock_sendmsg(PySocketSockObject *s, PyObject *args) | ^~~~~~~~~~~~ /home/buildbot/buildarea/3.7.cstratak-fedora-stable-ppc64le.lto-pgo/build/Modules/socketmodule.c: In function ‘sock_sendmsg’: /home/buildbot/buildarea/3.7.cstratak-fedora-stable-ppc64le.lto-pgo/build/Modules/socketmodule.c:4230:1: note: the layout of aggregates containing vectors with 8-byte alignment has changed in GCC 5 4230 | sock_sendmsg(PySocketSockObject *s, PyObject *args) | ^ /home/buildbot/buildarea/3.7.cstratak-fedora-stable-ppc64le.lto-pgo/build/Modules/sha256module.c: In function ‘SHA256Type_copy’: /home/buildbot/buildarea/3.7.cstratak-fedora-stable-ppc64le.lto-pgo/build/Modules/sha256module.c:78:22: note: the layout of aggregates containing vectors with 8-byte alignment has changed in GCC 5 78 | dest->local = src->local; | ~~~^~~~~~~ /home/buildbot/buildarea/3.7.cstratak-fedora-stable-ppc64le.lto-pgo/build/Modules/sha256module.c: In function ‘SHA256Type_copy’: /home/buildbot/buildarea/3.7.cstratak-fedora-stable-ppc64le.lto-pgo/build/Modules/sha256module.c:78:22: note: the layout of aggregates containing vectors with 8-byte alignment has changed in GCC 5 78 | dest->local = src->local; | ^ /home/buildbot/buildarea/3.7.cstratak-fedora-stable-ppc64le.lto-pgo/build/Modules/sha512module.c: In function ‘SHA512Type_copy’: /home/buildbot/buildarea/3.7.cstratak-fedora-stable-ppc64le.lto-pgo/build/Modules/sha512module.c:87:22: note: the layout of aggregates containing vectors with 8-byte alignment has changed in GCC 5 87 | dest->local = src->local; | ~~~^~~~~~~ /home/buildbot/buildarea/3.7.cstratak-fedora-stable-ppc64le.lto-pgo/build/Modules/sha512module.c: In function ‘SHA512Type_copy’: /home/buildbot/buildarea/3.7.cstratak-fedora-stable-ppc64le.lto-pgo/build/Modules/sha512module.c:87:22: note: the layout of aggregates containing vectors with 8-byte alignment has changed in GCC 5 87 | dest->local = src->local; | ^ In file included from /home/buildbot/buildarea/3.7.cstratak-fedora-stable-ppc64le.lto-pgo/build/Modules/pyexpat.c:71: /home/buildbot/buildarea/3.7.cstratak-fedora-stable-ppc64le.lto-pgo/build/Modules/clinic/pyexpat.c.h: In function ‘pyexpat_ParserCreate’: /home/buildbot/buildarea/3.7.cstratak-fedora-stable-ppc64le.lto-pgo/build/Modules/clinic/pyexpat.c.h:243:1: note: the layout of aggregates containing vectors with 8-byte alignment has changed in GCC 5 243 | pyexpat_ParserCreate(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) | ^~~~~~~~~~~~~~~~~~~~ /home/buildbot/buildarea/3.7.cstratak-fedora-stable-ppc64le.lto-pgo/build/Modules/expat/xmlparse.c: In function ‘build_node’: /home/buildbot/buildarea/3.7.cstratak-fedora-stable-ppc64le.lto-pgo/build/Modules/expat/xmlparse.c:6803:39: note: the layout of aggregates containing vectors with 8-byte alignment has changed in GCC 5 6803 | dest->type = dtd->scaffold[src_node].type; | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~ In file included from /home/buildbot/buildarea/3.7.cstratak-fedora-stable-ppc64le.lto-pgo/build/Modules/expat/expat_config.h:8, from /home/buildbot/buildarea/3.7.cstratak-fedora-stable-ppc64le.lto-pgo/build/Modules/expat/xmltok.c:49: ./pyconfig.h:1526: warning: "_POSIX_C_SOURCE" redefined 1526 | #define _POSIX_C_SOURCE 200809L | In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/string.h:26, from /home/buildbot/buildarea/3.7.cstratak-fedora-stable-ppc64le.lto-pgo/build/Modules/expat/xmltok.c:34: /usr/include/features.h:310: note: this is the location of the previous definition 310 | # define _POSIX_C_SOURCE 199506L | /home/buildbot/buildarea/3.7.cstratak-fedora-stable-ppc64le.lto-pgo/build/Modules/expat/xmlparse.c: In function ‘build_node’: /home/buildbot/buildarea/3.7.cstratak-fedora-stable-ppc64le.lto-pgo/build/Modules/expat/xmlparse.c:6803:39: note: the layout of aggregates containing vectors with 8-byte alignment has changed in GCC 5 6803 | dest->type = dtd->scaffold[src_node].type; | ^ /home/buildbot/buildarea/3.7.cstratak-fedora-stable-ppc64le.lto-pgo/build/Modules/_ctypes/_ctypes.c: In function ‘PyCSimpleType_new’: /home/buildbot/buildarea/3.7.cstratak-fedora-stable-ppc64le.lto-pgo/build/Modules/_ctypes/_ctypes.c:2013:21: note: the layout of aggregates containing vectors with 8-byte alignment has changed in GCC 5 2013 | stgdict->length = 0; | ~~~~~~~~~~~~~~~~^~~ /home/buildbot/buildarea/3.7.cstratak-fedora-stable-ppc64le.lto-pgo/build/Modules/_ctypes/_ctypes.c: In function ‘PyCSimpleType_new’: /home/buildbot/buildarea/3.7.cstratak-fedora-stable-ppc64le.lto-pgo/build/Modules/_ctypes/_ctypes.c:2013:21: note: the layout of aggregates containing vectors with 8-byte alignment has changed in GCC 5 2013 | stgdict->length = 0; | ^ Task was destroyed but it is pending! task: <Task pending coro=<()>> Task was destroyed but it is pending! task: <Task pending coro=<()>> stty: 'standard input': Inappropriate ioctl for device Exception in thread Thread-1563: Traceback (most recent call last): File "/home/buildbot/buildarea/3.7.cstratak-fedora-stable-ppc64le.lto-pgo/build/Lib/test/test_ssl.py", line 2392, in run msg = self.read() File "/home/buildbot/buildarea/3.7.cstratak-fedora-stable-ppc64le.lto-pgo/build/Lib/test/test_ssl.py", line 2369, in read return self.sslconn.read() File "/home/buildbot/buildarea/3.7.cstratak-fedora-stable-ppc64le.lto-pgo/build/Lib/ssl.py", line 931, in read return self._sslobj.read(len) ssl.SSLError: [SSL: PEER_DID_NOT_RETURN_A_CERTIFICATE] peer did not return a certificate (_ssl.c:2546)

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/home/buildbot/buildarea/3.7.cstratak-fedora-stable-ppc64le.lto-pgo/build/Lib/threading.py", line 926, in _bootstrap_inner self.run() File "/home/buildbot/buildarea/3.7.cstratak-fedora-stable-ppc64le.lto-pgo/build/Lib/test/test_ssl.py", line 2478, in run raise ssl.SSLError('tlsv13 alert certificate required') ssl.SSLError: ('tlsv13 alert certificate required',)