[issue15637] Segfault reading null VMA (works fine in python 2.x)

2012-08-21 Thread R. David Murray
Changes by R. David Murray : -- stage: -> committed/rejected status: open -> closed ___ Python tracker ___ ___ Python-bugs-list maili

[issue15637] Segfault reading null VMA (works fine in python 2.x)

2012-08-21 Thread Alberto Milone
Alberto Milone added the comment: I can confirm that the suggested changes solve the problem here. Thanks everyone! -- resolution: -> invalid ___ Python tracker ___ ___

[issue15637] Segfault reading null VMA (works fine in python 2.x)

2012-08-21 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: The example script has two errors IMO: - XOpenDisplay accepts a char*, but display_url is certainly a unicode string; it should be converted to a bytes string:: xlib.XOpenDisplay(display_url.encode('utf-8')) - XOpenDisplay.restype is not set, so it wil

[issue15637] Segfault reading null VMA (works fine in python 2.x)

2012-08-13 Thread Alberto Milone
Alberto Milone added the comment: it should just be possible to retrieve major and minor which we pass by reference to XRRQueryVersion. Without this pretty much any other call fails. Also, it works without problems with python 2.7. -- versions: -Python 3.3 ___

[issue15637] Segfault reading null VMA (works fine in python 2.x)

2012-08-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: I can reproduce, but it's not obvious to me what the test does or why it should succeed rather than fail. For the record, here is the gdb traceback: #0 0x753c6dc8 in XQueryExtension () from /usr/lib64/libX11.so.6 #1 0x753ba4d4 in XInitExtensi

[issue15637] Segfault reading null VMA (works fine in python 2.x)

2012-08-13 Thread Alberto Milone
New submission from Alberto Milone: The attached test case works fine in Python 2.7 but causes Pyhton 3.2 to segfault. -- components: ctypes files: randr_test messages: 168087 nosy: albertomilone priority: normal severity: normal status: open title: Segfault reading null VMA (works fine