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

segfaults with unexpanded $Revision$ id's in release candidate tarballs #56430

Closed
doko42 opened this issue May 31, 2011 · 5 comments
Closed

segfaults with unexpanded $Revision$ id's in release candidate tarballs #56430

doko42 opened this issue May 31, 2011 · 5 comments
Labels
build The build process and cross-build type-crash A hard crash of the interpreter, possibly with a core dump

Comments

@doko42
Copy link
Member

doko42 commented May 31, 2011

BPO 12221
Nosy @birkenfeld, @doko42, @vstinner, @benjaminp, @skrah

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 2011-06-01.01:52:21.065>
created_at = <Date 2011-05-31.08:47:43.236>
labels = ['build', 'type-crash']
title = "segfaults with unexpanded $Revision$ id's in release candidate tarballs"
updated_at = <Date 2011-06-01.01:52:21.064>
user = 'https://github.com/doko42'

bugs.python.org fields:

activity = <Date 2011-06-01.01:52:21.064>
actor = 'python-dev'
assignee = 'none'
closed = True
closed_date = <Date 2011-06-01.01:52:21.065>
closer = 'python-dev'
components = ['Build']
creation = <Date 2011-05-31.08:47:43.236>
creator = 'doko'
dependencies = []
files = []
hgrepos = []
issue_num = 12221
keywords = []
message_count = 5.0
messages = ['137347', '137349', '137404', '137406', '137411']
nosy_count = 6.0
nosy_names = ['georg.brandl', 'doko', 'vstinner', 'benjamin.peterson', 'skrah', 'python-dev']
pr_nums = []
priority = 'normal'
resolution = 'fixed'
stage = 'resolved'
status = 'closed'
superseder = None
type = 'crash'
url = 'https://bugs.python.org/issue12221'
versions = ['Python 3.1', 'Python 2.7', 'Python 3.2']

@doko42
Copy link
Member Author

doko42 commented May 31, 2011

Modules/pyexpat.c (get_version_string) has:

static PyObject *
get_version_string(void)
{
    static char *rcsid = "$Revision$";
    char *rev = rcsid;
    int i = 0;
while (!isdigit(Py_CHARMASK(*rev)))
    ++rev;

which segfaults, or has unexpected results. -O2 builds don't show the segfaults, but at least debug builds on sparc, ARM, powerpc, m68k.

>>> pyexpat.__version__
'0\x05'

seen with all the current release candidates for 2.7.2, 3.1.4 and 3.2.1
2.5.6 and 2.6.7 don't have this issue.

other occurrences:

./setup.py:version = "$Revision$"
./Demo/scripts/newslist.py:# Newslist $Revision$
./Demo/scripts/newslist.py:rcsrev = '$Revision$'
./configure.in:AC_REVISION($Revision$)
./Tools/webchecker/websucker.py:version = "$Revision$"
./Tools/webchecker/webchecker.py:version = "$Revision$"
./Tools/world/world:version = '$Revision$'
./Parser/asdl_c.py: # Value of version: "$Revision$"
./Parser/Python.asdl:module Python version "$Revision$"
./Modules/pyexpat.c: static char *rcsid = "$Revision$";
./Lib/tkinter/init.py:version = "$Revision$"
./Lib/pickle.py:version = "$Revision$" # Code version
./Lib/xml/parsers/expat.py:version = '$Revision$'
./Lib/pydoc.py:version = "$Revision$"
./Lib/tarfile.py:version = "$Revision$"

@doko42 doko42 added release-blocker build The build process and cross-build type-crash A hard crash of the interpreter, possibly with a core dump labels May 31, 2011
@skrah
Copy link
Mannequin

skrah mannequin commented May 31, 2011

See also: bpo-11439

@python-dev
Copy link
Mannequin

python-dev mannequin commented Jun 1, 2011

New changeset 9c1116e582e3 by Benjamin Peterson in branch '2.7':
simply use the Python version for pyexpat.__version__ bpo-12221
http://hg.python.org/cpython/rev/9c1116e582e3

New changeset 9c23efa3f5c7 by Benjamin Peterson in branch '3.1':
simply use the Python version for pyexpat.__version__ bpo-12221
http://hg.python.org/cpython/rev/9c23efa3f5c7

New changeset f2f74b8d6767 by Benjamin Peterson in branch '3.2':
merge 3.1 (bpo-12221)
http://hg.python.org/cpython/rev/f2f74b8d6767

New changeset d1291e048163 by Benjamin Peterson in branch 'default':
merge 3.2 (bpo-12221)
http://hg.python.org/cpython/rev/d1291e048163

@benjaminp
Copy link
Contributor

I've fixed the pyexpat.__version__ from segfaulting. The other ones are harmless and can be removed later.

@python-dev
Copy link
Mannequin

python-dev mannequin commented Jun 1, 2011

New changeset f3553d5083f8 by Benjamin Peterson in branch 'default':
remove __version__s dependent on subversion keyword expansion (closes bpo-12221)
http://hg.python.org/cpython/rev/f3553d5083f8

@python-dev python-dev mannequin closed this as completed Jun 1, 2011
@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
build The build process and cross-build type-crash A hard crash of the interpreter, possibly with a core dump
Projects
None yet
Development

No branches or pull requests

2 participants