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: Adding a mutually exclusive group to an argument group results in segmentation fault under linux
Type: crash Stage: resolved
Components: Versions: Python 3.5
process
Status: closed Resolution: works for me
Dependencies: Superseder:
Assigned To: Nosy List: John.Didion, SilentGhost
Priority: normal Keywords:

Created on 2016-09-10 14:58 by John.Didion, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (4)
msg275645 - (view) Author: John Didion (John.Didion) Date: 2016-09-10 14:58
The following code works fine when I run it on OSX 10.9, but causes a segmentation fault when run on linux. Specifically, the Travis build on python 3.5.2 results in a segfault when the last line is uncommented.

import argparse
parser = argparse.ArgumentParser()
group = parser.add_argument_group("Colorspace options")
group.add_mutually_exclusive_group()
msg275646 - (view) Author: John Didion (John.Didion) Date: 2016-09-10 15:03
This code also works fine when I run it myself on python 3.5.1 on an SL6 machine, so it's either specific to 3.5.2 or it's very platform-specific.
msg275647 - (view) Author: SilentGhost (SilentGhost) * (Python triager) Date: 2016-09-10 15:11
Cannot reproduce this either on stock 3.5.2 or 3.6 on Ubuntu.
msg275648 - (view) Author: John Didion (John.Didion) Date: 2016-09-10 15:14
I can't reproduce it with 3.5.2 on SL6 either. So it must be a weird issue specific to whatever environment they're using for builds on Travis. I'll close this and submit it as a bug over there.
History
Date User Action Args
2022-04-11 14:58:36adminsetgithub: 72250
2016-09-10 15:16:02SilentGhostsetstage: resolved
2016-09-10 15:14:40John.Didionsetstatus: open -> closed
resolution: works for me
messages: + msg275648
2016-09-10 15:11:50SilentGhostsetnosy: + SilentGhost
messages: + msg275647
2016-09-10 15:03:06John.Didionsetmessages: + msg275646
2016-09-10 14:58:54John.Didioncreate