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: memoryview('test') is causing a segfault
Type: Stage:
Components: Interpreter Core Versions: Python 3.0
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: nnorwitz Nosy List: christian.heimes, nnorwitz
Priority: release blocker Keywords:

Created on 2007-08-19 01:13 by christian.heimes, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (4)
msg32656 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2007-08-19 01:13
./python -c "memoryview('test')"
Segmentation fault

I compiled Python 3.0 with 
$ ./configure --with-pydebug --enable-unicode=ucs4
and 
$ make EXTRA_CFLAGS="-DPy_REF_DEBUG -DPy_TRACE_REFS -DPy_DEBUG"
after a make clean; rm -rf build; svn up

I've used gdb to trace the segfault:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1210415424 (LWP 14436)]
0x080f77a0 in PyErr_SetObject (exception=0x81962c0, value=0xb7cee3a8) at Python/errors.c:55
55              if (exception != NULL &&

msg32657 - (view) Author: Neal Norwitz (nnorwitz) * (Python committer) Date: 2007-08-19 04:25
Committed revision 57193.  This problem was due to not initializing the new BufferError properly.  Travis mentioned this in his post to python-3000.
msg32658 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2007-08-19 12:49
I've found another bug:

$ ./python -c "memoryview('test')"
Fatal Python error: UNREF invalid object
Aborted
msg32659 - (view) Author: Neal Norwitz (nnorwitz) * (Python committer) Date: 2007-08-19 18:39
Committed revision 57198 fixes the problem in debug mode.  Now a proper exception is generated.
History
Date User Action Args
2022-04-11 14:56:26adminsetgithub: 45324
2008-01-06 22:29:46adminsetkeywords: - py3k
versions: + Python 3.0
2007-08-19 01:13:40christian.heimescreate