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.

classification
Title: test_logging fails and freezes
Type: behavior Stage: resolved
Components: Tests Versions: Python 3.5
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: Nosy List: NaKroTeK, Whitequill Riclo, leosilva, scrutari, wim.glenn
Priority: normal Keywords:

Created on 2016-12-05 07:41 by Whitequill Riclo, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
cpython-testlogging.log Whitequill Riclo, 2016-12-05 07:41 python_logging test failed
python37err.log Whitequill Riclo, 2016-12-12 14:19
Repositories containing patches
https://hg.python.org/cpython/
Messages (10)
msg282396 - (view) Author: Whitequill Riclo (Whitequill Riclo) Date: 2016-12-05 07:41
while testing my build of cpython it hangs on test 198/404 and will not continue unless interrupted with ctrl-C.

the build is fairly sound, but I can't test anything after test 198/404 cause it gets stuck.
msg282755 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2016-12-09 01:55
What is your OS? A Linux on bare metal? Or a container? What are versions of Linux kernel, libc and C compiler? Or more generally the name and verison of your Linux distro?

There are many errors:

* test_fcntl failed
* test_import failed
* test_epoll failed

Can you please run only these tests in verbose mode, and attach the output?

Example:

./python -m test -v test_fcntl test_import test_epolls
msg283003 - (view) Author: Whitequill Riclo (Whitequill Riclo) Date: 2016-12-12 14:19
my OS is Ubuntu on Windows 10
<https://msdn.microsoft.com/en-us/commandline/wsl/about>. The new Linux
subsystem for Windows 10
Linux version 3.4.0-Microsoft (Microsoft@Microsoft.com) (gcc version 4.7
(GCC) ) #1 SMP PREEMPT Wed Dec 31 14:42:53 PST 2014

Distributor ID: Ubuntu
Description:    Ubuntu 14.04.5 LTS
Release:        14.04
Codename:       trusty

ldd (Ubuntu EGLIBC 2.19-0ubuntu6.9) 2.19

Windows 10 is running on bare metal.
I have included a log file with the results from the test.

On Thu, Dec 8, 2016 at 8:55 PM, STINNER Victor <report@bugs.python.org>
wrote:

>
> STINNER Victor added the comment:
>
> What is your OS? A Linux on bare metal? Or a container? What are versions
> of Linux kernel, libc and C compiler? Or more generally the name and
> verison of your Linux distro?
>
> There are many errors:
>
> * test_fcntl failed
> * test_import failed
> * test_epoll failed
>
> Can you please run only these tests in verbose mode, and attach the output?
>
> Example:
>
> ./python -m test -v test_fcntl test_import test_epolls
>
> ----------
> nosy: +haypo
>
> _______________________________________
> Python tracker <report@bugs.python.org>
> <http://bugs.python.org/issue28874>
> _______________________________________
>
msg320883 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2018-07-02 13:39
Extract of cpython-testlogging.log:

0:08:58 [198/404] test_logging
--- Logging error ---
Traceback (most recent call last):
  File "/mnt/d/Share/source/cpython-master/Lib/logging/handlers.py", line 634, in emit
    self.send(s)
  File "/mnt/d/Share/source/cpython-master/Lib/logging/handlers.py", line 692, in send
    self.sock.sendto(s, self.address)
OSError: [Errno 22] Invalid argument
Call stack:
  File "/mnt/d/Share/source/cpython-master/Lib/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/mnt/d/Share/source/cpython-master/Lib/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/mnt/d/Share/source/cpython-master/Lib/test/regrtest.py", line 50, in <module>
    _main()
  File "/mnt/d/Share/source/cpython-master/Lib/test/regrtest.py", line 46, in _main
    main()
  File "/mnt/d/Share/source/cpython-master/Lib/test/libregrtest/main.py", line 532, in main
    Regrtest().main(tests=tests, **kwargs)
  File "/mnt/d/Share/source/cpython-master/Lib/test/libregrtest/main.py", line 468, in main
    self._main(tests, kwargs)
  File "/mnt/d/Share/source/cpython-master/Lib/test/libregrtest/main.py", line 490, in _main
    self.run_tests()
  File "/mnt/d/Share/source/cpython-master/Lib/test/libregrtest/main.py", line 418, in run_tests
    self.run_tests_sequential()
  File "/mnt/d/Share/source/cpython-master/Lib/test/libregrtest/main.py", line 343, in run_tests_sequential
    result = runtest(self.ns, test)
  File "/mnt/d/Share/source/cpython-master/Lib/test/libregrtest/runtest.py", line 129, in runtest
    result = runtest_inner(ns, test, display_failure=not ns.verbose)
  File "/mnt/d/Share/source/cpython-master/Lib/test/libregrtest/runtest.py", line 165, in runtest_inner
    test_runner()
  File "/mnt/d/Share/source/cpython-master/Lib/test/support/__init__.py", line 1576, in inner
    return func(*args, **kwds)
  File "/mnt/d/Share/source/cpython-master/Lib/test/test_logging.py", line 4334, in test_main
    support.run_unittest(*tests)
  File "/mnt/d/Share/source/cpython-master/Lib/test/support/__init__.py", line 1909, in run_unittest
    _run_suite(suite)
  File "/mnt/d/Share/source/cpython-master/Lib/test/support/__init__.py", line 1875, in _run_suite
    result = runner.run(suite)
  File "/mnt/d/Share/source/cpython-master/Lib/test/support/__init__.py", line 1751, in run
    test(result)
  File "/mnt/d/Share/source/cpython-master/Lib/unittest/suite.py", line 84, in __call__
    return self.run(*args, **kwds)
  File "/mnt/d/Share/source/cpython-master/Lib/unittest/suite.py", line 122, in run
    test(result)
  File "/mnt/d/Share/source/cpython-master/Lib/unittest/suite.py", line 84, in __call__
    return self.run(*args, **kwds)
  File "/mnt/d/Share/source/cpython-master/Lib/unittest/suite.py", line 122, in run
    test(result)
  File "/mnt/d/Share/source/cpython-master/Lib/unittest/case.py", line 649, in __call__
    return self.run(*args, **kwds)
  File "/mnt/d/Share/source/cpython-master/Lib/unittest/case.py", line 601, in run
    testMethod()
  File "/mnt/d/Share/source/cpython-master/Lib/test/test_logging.py", line 1580, in test_output
    logger.error("spam")
Message: 'spam'
Arguments: ()
^C
Test suite interrupted by signal SIGINT.


I'm watching closely Windows buildbots for 2 years, and I don't recall having seen this error recently. So I close the issue as "out of date".
msg342714 - (view) Author: Yury (scrutari) Date: 2019-05-17 12:53
I am observing this issue while building 3.6.8 version on CentOS 7.6. Shall we reopen the bug? Thanks, Yury.
msg342719 - (view) Author: Yury (scrutari) Date: 2019-05-17 13:24
And same happens to me when building version 3.7.3.
I'm building with gcc (GCC) 4.8.5.
msg378243 - (view) Author: Leonidas S. Barbosa (leosilva) Date: 2020-10-08 12:30
I'm facing similar issue with test_logging in python3.5.2-2ubuntu0~16.04.12. Test just get hangs and so, our builders kill the build process without a successful ending.

[1/1] test_locale
1 test OK.
[1/1] test_logging
E: Build killed with signal TERM after 150 minutes of inactivity

Could someone provide any info in how to handle with this issue? Also, reopen this issue, if possible. 
It's affecting our 3.4 and 3.5 pythons.

Thanks!
msg378244 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2020-10-08 12:38
Python 3.5 is no longer supported (no bugfix, no security fix). This issue is closed.
msg391826 - (view) Author: wim glenn (wim.glenn) * Date: 2021-04-25 00:05
I was seeing this problem when building 3.6.4. Fixed it by replacing the test cert with a newer one from 3.6.13:

    curl https://raw.githubusercontent.com/python/cpython/v3.6.13/Lib/test/keycert.pem > ./Lib/test/keycert.pem

Hope this helps someone else one day..
msg392999 - (view) Author: Nak (NaKroTeK) Date: 2021-05-05 09:54
And the day came...
Thank you very much wim.glenn

I had this issue when building python 3.6.4
History
Date User Action Args
2022-04-11 14:58:40adminsetgithub: 73060
2021-05-05 09:54:53NaKroTeKsetnosy: + NaKroTeK
messages: + msg392999
2021-04-27 14:20:31vstinnersetnosy: - vstinner
2021-04-25 00:05:40wim.glennsetnosy: + wim.glenn
messages: + msg391826
2020-10-08 12:38:46vstinnersetmessages: + msg378244
2020-10-08 12:30:42leosilvasetnosy: + leosilva

messages: + msg378243
versions: + Python 3.5, - Python 3.7
2019-05-17 13:24:07scrutarisetmessages: + msg342719
2019-05-17 12:53:08scrutarisetnosy: + scrutari
messages: + msg342714
2018-07-02 13:39:05vstinnersetstatus: open -> closed
resolution: out of date
messages: + msg320883

stage: resolved
2016-12-12 14:19:37Whitequill Riclosetfiles: + python37err.log

messages: + msg283003
2016-12-09 01:55:33vstinnersetnosy: + vstinner
messages: + msg282755
2016-12-05 07:57:34martin.pantersettype: behavior
title: test_logging fails -> test_logging fails and freezes
2016-12-05 07:56:26martin.panterlinkissue28875 superseder
2016-12-05 07:41:22Whitequill Riclocreate