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

Segmentation fault due to faulthandler on Solaris #79665

Closed
kulikjak mannequin opened this issue Dec 13, 2018 · 4 comments
Closed

Segmentation fault due to faulthandler on Solaris #79665

kulikjak mannequin opened this issue Dec 13, 2018 · 4 comments
Labels
3.7 (EOL) end of life extension-modules C modules in the Modules dir interpreter-core (Objects, Python, Grammar, and Parser dirs) type-crash A hard crash of the interpreter, possibly with a core dump

Comments

@kulikjak
Copy link
Mannequin

kulikjak mannequin commented Dec 13, 2018

BPO 35484
Nosy @kulikjak, @peadar
Files
  • crash_stack.txt: stack trace
  • reproduce.py
  • 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 2019-08-08.09:25:58.951>
    created_at = <Date 2018-12-13.15:38:08.882>
    labels = ['extension-modules', 'interpreter-core', '3.7', 'type-crash']
    title = 'Segmentation fault due to faulthandler on Solaris'
    updated_at = <Date 2019-08-08.09:25:58.946>
    user = 'https://github.com/kulikjak'

    bugs.python.org fields:

    activity = <Date 2019-08-08.09:25:58.946>
    actor = 'kulikjak'
    assignee = 'none'
    closed = True
    closed_date = <Date 2019-08-08.09:25:58.951>
    closer = 'kulikjak'
    components = ['Extension Modules', 'Interpreter Core']
    creation = <Date 2018-12-13.15:38:08.882>
    creator = 'kulikjak'
    dependencies = []
    files = ['47993', '47994']
    hgrepos = []
    issue_num = 35484
    keywords = []
    message_count = 4.0
    messages = ['331763', '331764', '349179', '349227']
    nosy_count = 2.0
    nosy_names = ['kulikjak', 'peadar']
    pr_nums = []
    priority = 'normal'
    resolution = 'duplicate'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'crash'
    url = 'https://bugs.python.org/issue35484'
    versions = ['Python 3.7']

    @kulikjak
    Copy link
    Mannequin Author

    kulikjak mannequin commented Dec 13, 2018

    When running tests on Solaris (amd64) I noticed that one test in test_faulthandler.py fails with the segmentation fault.

    I have attached program reproducing this issue and its core stack trace. Program runs entirely with *Ending* printed as well and segfaults somewhere in the sys.exit() during deallocation.

    Problem doesn't appear when chain variable is set to False or if faulthandler is unregistered. Also, this bug appears only with --enable-optimizations on, but probably it just doesn't manifest itself in non optimized build (or on sparc).

    I am not sure how to diagnose it more so I am at least reporting this issue.

    @kulikjak kulikjak mannequin added 3.7 (EOL) end of life extension-modules C modules in the Modules dir interpreter-core (Objects, Python, Grammar, and Parser dirs) type-crash A hard crash of the interpreter, possibly with a core dump labels Dec 13, 2018
    @kulikjak
    Copy link
    Mannequin Author

    kulikjak mannequin commented Dec 13, 2018

    The exact failing test is test_register_chain().

    Output of this failed test (as expected for segmentation fault):

    ======================================================================
    FAIL: test_register_chain (test.test_faulthandler.FaultHandlerTests)
    ----------------------------------------------------------------------

    Traceback (most recent call last):
      File "xxx/Python-3.7.1/Lib/test/test_faulthandler.py", line 708, in test_register_chain
        self.check_register(chain=True)
      File "xxx/Python-3.7.1/Lib/test/test_faulthandler.py", line 686, in check_register
        self.assertEqual(exitcode, 0)
    AssertionError: -11 != 0

    @peadar
    Copy link
    Mannequin

    peadar mannequin commented Aug 7, 2019

    This is likely a duplicate of bpo-21131

    @kulikjak
    Copy link
    Mannequin Author

    kulikjak mannequin commented Aug 8, 2019

    Oh, thanks for the catch, it most likely is.

    @kulikjak kulikjak mannequin closed this as completed Aug 8, 2019
    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    3.7 (EOL) end of life extension-modules C modules in the Modules dir interpreter-core (Objects, Python, Grammar, and Parser dirs) type-crash A hard crash of the interpreter, possibly with a core dump
    Projects
    None yet
    Development

    No branches or pull requests

    0 participants