[New-bugs-announce] [issue28480] Compile error on Modules/socketmodule.c

Masayuki Yamamoto report at bugs.python.org
Wed Oct 19 19:27:58 EDT 2016


New submission from Masayuki Yamamoto:

_socket module has failed to compile with --without-threads flag since 554fb699af8c, because Py_END_ALLOW_THREADS macro exists behind the done label ( Modules/socketmodule.c:666 ).

If --without-threads flag goes on, Py_END_ALLOW_THREADS macro replaces to just right curly bracket. Therefore, between label and end of block have no statements. There needs meaningless statement (e.g. result = result;) to avoid compile error.
I wrote a one line patch as a test.

----------
components: Build, Extension Modules
files: socketmodule-behind-label.patch
keywords: patch
messages: 279000
nosy: masamoto
priority: normal
severity: normal
status: open
title: Compile error on Modules/socketmodule.c
type: compile error
versions: Python 3.6, Python 3.7
Added file: http://bugs.python.org/file45146/socketmodule-behind-label.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28480>
_______________________________________


More information about the New-bugs-announce mailing list