Bug 61879 - Python binding of gbm's gbm_create_device fail to create_device
Summary: Python binding of gbm's gbm_create_device fail to create_device
Status: RESOLVED INVALID
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/DRI/nouveau (show other bugs)
Version: git
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Nouveau Project
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-05 23:08 UTC by amirouche
Modified: 2013-03-06 00:19 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
example script with cffi (9.96 KB, text/plain)
2013-03-05 23:08 UTC, amirouche
Details

Description amirouche 2013-03-05 23:08:20 UTC
Created attachment 75991 [details]
example script with cffi

I bound gbm_create_device with both cffi and cython of gbm_create_device and they both fail at the same place

error: Program received signal SIGSEGV, Segmentation fault.

stacktrace:

#0  0x00007fffee18af07 in PUSH_DATA (push=0x13c0410, data=536952832) at ../../../../src/gallium/drivers/nouveau/nouveau_winsys.h:35
#1  0x00007fffee18b0b2 in BEGIN_NVC0 (push=0x13c0410, subc=2, mthd=0, size=1) at nvc0_winsys.h:112
#2  0x00007fffee18c0c1 in nvc0_screen_create (dev=0x15f8690) at nvc0_screen.c:496
#3  0x00007fffee0c4c3b in nouveau_drm_screen_create (fd=7) at nouveau_drm_winsys.c:46
#4  0x00007fffeb0a6943 in create_screen (fd=7) at pipe_nouveau.c:11
#5  0x00007fffec4e5fdb in pipe_loader_drm_create_screen (dev=0x1750130, library_paths=0x7fffecec0cf2 "/usr/lib64/gallium-pipe") at pipe_loader_drm.c:270
#6  0x00007fffec4e570e in pipe_loader_create_screen (dev=0x1750130, library_paths=0x7fffecec0cf2 "/usr/lib64/gallium-pipe") at pipe_loader.c:68
#7  0x00007fffec4e5539 in gallium_screen_create (gdrm=0x174fff0) at gbm.c:60
#8  0x00007fffec4e69a8 in gbm_gallium_drm_device_create (fd=7) at gbm_drm.c:248
#9  0x00007fffef338370 in _gbm_create_device (fd=7) at main/backend.c:124

version: 9.1 & git
linux: 3.8.2 gentoo
Comment 1 amirouche 2013-03-05 23:10:33 UTC
my card is reported by lspci as:

01:00.0 VGA compatible controller: NVIDIA Corporation GF114 [GeForce GTX 560 Ti] (rev a1) (prog-if 00 [VGA controller])

eglkms demo from mesa-demo works fine under 9.0.2, 9.1 and git
Comment 2 amirouche 2013-03-05 23:22:19 UTC
also there this is this message that shows up before the crash: dri_init_screen_helper: failed to create pipe_screen
Comment 3 amirouche 2013-03-06 00:19:03 UTC
I update to libdrm but the bug was in my code I was open the device with python open instead of the low level os.open which allows for O_RDWR.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.