Issue 28063: Adding a mutually exclusive group to an argument group results in segmentation fault under linux (original) (raw)

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:36 admin set github: 72250
2016-09-10 15:16:02 SilentGhost set stage: resolved
2016-09-10 15:14:40 John.Didion set status: open -> closedresolution: works for memessages: +
2016-09-10 15:11:50 SilentGhost set nosy: + SilentGhostmessages: +
2016-09-10 15:03:06 John.Didion set messages: +
2016-09-10 14:58:54 John.Didion create