Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test_logging fails and freezes #73060

Closed
WhitequillRiclo mannequin opened this issue Dec 5, 2016 · 10 comments
Closed

test_logging fails and freezes #73060

WhitequillRiclo mannequin opened this issue Dec 5, 2016 · 10 comments
Labels
tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error

Comments

@WhitequillRiclo
Copy link
Mannequin

WhitequillRiclo mannequin commented Dec 5, 2016

BPO 28874
Nosy @wimglenn, @kirotawa, @yury-khrustalev, @NaKroTeK
Files
  • cpython-testlogging.log: python_logging test failed
  • python37err.log
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2018-07-02.13:39:05.832>
    created_at = <Date 2016-12-05.07:41:22.313>
    labels = ['type-bug', 'tests']
    title = 'test_logging fails and freezes'
    updated_at = <Date 2021-05-05.09:54:53.950>
    user = 'https://bugs.python.org/WhitequillRiclo'

    bugs.python.org fields:

    activity = <Date 2021-05-05.09:54:53.950>
    actor = 'NaKroTeK'
    assignee = 'none'
    closed = True
    closed_date = <Date 2018-07-02.13:39:05.832>
    closer = 'vstinner'
    components = ['Tests']
    creation = <Date 2016-12-05.07:41:22.313>
    creator = 'Whitequill Riclo'
    dependencies = []
    files = ['45760', '45857']
    hgrepos = ['364']
    issue_num = 28874
    keywords = []
    message_count = 10.0
    messages = ['282396', '282755', '283003', '320883', '342714', '342719', '378243', '378244', '391826', '392999']
    nosy_count = 5.0
    nosy_names = ['wim.glenn', 'Whitequill Riclo', 'leosilva', 'scrutari', 'NaKroTeK']
    pr_nums = []
    priority = 'normal'
    resolution = 'out of date'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue28874'
    versions = ['Python 3.5']

    @WhitequillRiclo
    Copy link
    Mannequin Author

    WhitequillRiclo mannequin commented Dec 5, 2016

    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.

    @WhitequillRiclo WhitequillRiclo mannequin added 3.7 (EOL) end of life tests Tests in the Lib/test dir labels Dec 5, 2016
    @vadmium vadmium changed the title test_logging fails test_logging fails and freezes Dec 5, 2016
    @vadmium vadmium added the type-bug An unexpected behavior, bug, or error label Dec 5, 2016
    @vstinner
    Copy link
    Member

    vstinner commented Dec 9, 2016

    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

    @WhitequillRiclo
    Copy link
    Mannequin Author

    WhitequillRiclo mannequin commented Dec 12, 2016

    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\>


    @vstinner
    Copy link
    Member

    vstinner commented Jul 2, 2018

    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".

    @vstinner vstinner closed this as completed Jul 2, 2018
    @yury-khrustalev
    Copy link
    Mannequin

    yury-khrustalev mannequin commented May 17, 2019

    I am observing this issue while building 3.6.8 version on CentOS 7.6. Shall we reopen the bug? Thanks, Yury.

    @yury-khrustalev
    Copy link
    Mannequin

    yury-khrustalev mannequin commented May 17, 2019

    And same happens to me when building version 3.7.3.
    I'm building with gcc (GCC) 4.8.5.

    @kirotawa
    Copy link
    Mannequin

    kirotawa mannequin commented Oct 8, 2020

    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!

    @kirotawa kirotawa mannequin removed the 3.7 (EOL) end of life label Oct 8, 2020
    @vstinner
    Copy link
    Member

    vstinner commented Oct 8, 2020

    Python 3.5 is no longer supported (no bugfix, no security fix). This issue is closed.

    @wimglenn
    Copy link
    Mannequin

    wimglenn mannequin commented Apr 25, 2021

    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..

    @NaKroTeK
    Copy link
    Mannequin

    NaKroTeK mannequin commented May 5, 2021

    And the day came...
    Thank you very much wim.glenn

    I had this issue when building python 3.6.4

    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants