Thread: [PyOpenGL-Users] segmentation fault on ubuntu 32 bit
Brought to you by:
mcfletch
From: Alexandre L. <ale...@gm...> - 2008-11-11 20:56:32
|
Hi. I'm experiencing segmentation fault on ubuntu. As opposed to most other ubuntu-seg-fault post, my ubuntu is a 32 bit. The minimum program that makes it crash is : from OpenGL.GLUT import * glutInit( ' ' ) glutInitDisplayMode( GLUT_SINGLE ) Any body got an idea ? Glx gear is running without any problem. Here is some informatqion that might be usefull (maybe too much information) ------------------------------------------------------------------------------------------ uname -a : Linux frtub1-desktop 2.6.27-7-generic #1 SMP Tue Nov 4 19:33:20 UTC 2008 i686 GNU/Linux lspci | grep VGA : 00:02.0 VGA compatible controller: Intel Corporation 82G33/G31 Express Integrated Graphics Controller (rev 02) python help('OpenGL') : Help on package OpenGL: NAME OpenGL - ctypes-based OpenGL wrapper for Python FILE /usr/lib/python2.5/site- packages/PyOpenGL-3.0.0b6-py2.5.egg/OpenGL/__init__.py ... lsmod : Module Size Used by ipv6 263972 16 af_packet 25728 2 i915 38144 2 drm 86056 3 i915 binfmt_misc 16904 1 rfcomm 44432 0 sco 18308 2 bridge 56980 0 stp 10628 1 bridge bnep 20480 2 l2cap 30464 6 rfcomm,bnep bluetooth 61924 6 rfcomm,sco,bnep,l2cap ppdev 15620 0 acpi_cpufreq 15500 3 cpufreq_stats 13188 0 cpufreq_ondemand 14988 1 freq_table 12672 3 acpi_cpufreq,cpufreq_stats,cpufreq_ondemand cpufreq_powersave 9856 0 cpufreq_conservative 14600 0 cpufreq_userspace 11396 0 pci_slot 12552 0 wmi 14504 0 video 25104 0 output 11008 1 video sbs 19464 0 sbshc 13440 1 sbs container 11520 0 battery 18436 0 iptable_filter 10752 0 ip_tables 19600 1 iptable_filter x_tables 22916 1 ip_tables ac 12292 0 sbp2 29324 0 lp 17156 0 snd_hda_intel 381488 3 snd_pcm_oss 46848 0 snd_mixer_oss 22784 1 snd_pcm_oss snd_pcm 83204 2 snd_hda_intel,snd_pcm_oss snd_seq_dummy 10884 0 snd_seq_oss 38528 0 snd_seq_midi 14336 0 snd_rawmidi 29824 1 snd_seq_midi snd_seq_midi_event 15232 2 snd_seq_oss,snd_seq_midi snd_seq 57776 6 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq_midi_event evdev 17696 6 snd_timer 29960 2 snd_pcm,snd_seq snd_seq_device 15116 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_rawmidi,snd_seq snd 63268 15 snd_hda_intel,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_seq_oss,snd_rawmidi,snd_seq,snd_timer,snd_seq_device parport_pc 39204 1 parport 42604 3 ppdev,lp,parport_pc soundcore 15328 1 snd iTCO_wdt 18596 0 shpchp 37908 0 snd_page_alloc 16136 2 snd_hda_intel,snd_pcm pci_hotplug 35236 1 shpchp iTCO_vendor_support 11652 1 iTCO_wdt button 14224 0 intel_agp 33724 1 agpgart 42184 3 drm,intel_agp ext3 133384 1 jbd 55444 1 ext3 mbcache 16004 1 ext3 sr_mod 22212 0 cdrom 43168 1 sr_mod sd_mod 42264 3 crc_t10dif 9984 1 sd_mod sg 39732 0 pata_acpi 12160 0 ata_generic 12932 0 usbhid 35840 0 hid 50560 1 usbhid ata_piix 24580 2 pata_jmicron 11136 0 ohci1394 37936 0 libata 177312 4 pata_acpi,ata_generic,ata_piix,pata_jmicron ieee1394 96324 2 sbp2,ohci1394 scsi_mod 155212 5 sbp2,sr_mod,sd_mod,sg,libata sky2 53380 0 dock 16656 1 libata ehci_hcd 43276 0 uhci_hcd 30736 0 usbcore 148848 4 usbhid,ehci_hcd,uhci_hcd thermal 23708 0 processor 42156 2 acpi_cpufreq,thermal fan 12548 0 fbcon 47648 0 tileblit 10880 1 fbcon font 16512 1 fbcon bitblit 13824 1 fbcon softcursor 9984 1 bitblit fuse 60828 3 glxinfo: name of display: :0.0 display: :0 screen: 0 direct rendering: Yes server glx vendor string: SGI server glx version string: 1.2 server glx extensions: GLX_ARB_multisample, GLX_EXT_import_context, GLX_EXT_texture_from_pixmap, GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_MESA_copy_sub_buffer, GLX_OML_swap_method, GLX_SGI_swap_control, GLX_SGIS_multisample, GLX_SGIX_fbconfig, GLX_SGIX_visual_select_group client glx vendor string: SGI client glx version string: 1.4 client glx extensions: GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_import_context, GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_MESA_allocate_memory, GLX_MESA_copy_sub_buffer, GLX_MESA_swap_control, GLX_MESA_swap_frame_usage, GLX_OML_swap_method, GLX_OML_sync_control, GLX_SGI_make_current_read, GLX_SGI_swap_control, GLX_SGI_video_sync, GLX_SGIS_multisample, GLX_SGIX_fbconfig, GLX_SGIX_pbuffer, GLX_SGIX_visual_select_group, GLX_EXT_texture_from_pixmap GLX version: 1.2 GLX extensions: GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_import_context, GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_MESA_swap_control, GLX_MESA_swap_frame_usage, GLX_OML_swap_method, GLX_SGI_swap_control, GLX_SGI_video_sync, GLX_SGIS_multisample, GLX_SGIX_fbconfig, GLX_SGIX_visual_select_group OpenGL vendor string: Tungsten Graphics, Inc OpenGL renderer string: Mesa DRI Intel(R) G33 20061102 x86/MMX/SSE2 OpenGL version string: 1.4 Mesa 7.2 OpenGL extensions: GL_ARB_depth_texture, GL_ARB_fragment_program, GL_ARB_multisample, GL_ARB_multitexture, GL_ARB_point_parameters, GL_ARB_shadow, GL_ARB_texture_border_clamp, GL_ARB_texture_compression, GL_ARB_texture_cube_map, GL_ARB_texture_env_add, GL_ARB_texture_env_combine, GL_ARB_texture_env_crossbar, GL_ARB_texture_env_dot3, GL_ARB_texture_mirrored_repeat, GL_ARB_texture_non_power_of_two, GL_ARB_texture_rectangle, GL_ARB_transpose_matrix, GL_ARB_vertex_buffer_object, GL_ARB_vertex_program, GL_ARB_window_pos, GL_EXT_abgr, GL_EXT_bgra, GL_EXT_blend_color, GL_EXT_blend_equation_separate, GL_EXT_blend_func_separate, GL_EXT_blend_logic_op, GL_EXT_blend_minmax, GL_EXT_blend_subtract, GL_EXT_clip_volume_hint, GL_EXT_cull_vertex, GL_EXT_compiled_vertex_array, GL_EXT_copy_texture, GL_EXT_draw_range_elements, GL_EXT_fog_coord, GL_EXT_multi_draw_arrays, GL_EXT_packed_depth_stencil, GL_EXT_packed_pixels, GL_EXT_point_parameters, GL_EXT_polygon_offset, GL_EXT_rescale_normal, GL_EXT_secondary_color, GL_EXT_separate_specular_color, GL_EXT_shadow_funcs, GL_EXT_stencil_wrap, GL_EXT_subtexture, GL_EXT_texture, GL_EXT_texture3D, GL_EXT_texture_edge_clamp, GL_EXT_texture_env_add, GL_EXT_texture_env_combine, GL_EXT_texture_env_dot3, GL_EXT_texture_filter_anisotropic, GL_EXT_texture_lod_bias, GL_EXT_texture_object, GL_EXT_texture_rectangle, GL_EXT_vertex_array, GL_3DFX_texture_compression_FXT1, GL_APPLE_client_storage, GL_APPLE_packed_pixels, GL_ATI_blend_equation_separate, GL_ATI_separate_stencil, GL_IBM_rasterpos_clip, GL_IBM_texture_mirrored_repeat, GL_INGR_blend_func_separate, GL_MESA_pack_invert, GL_MESA_ycbcr_texture, GL_MESA_window_pos, GL_NV_blend_square, GL_NV_light_max_exponent, GL_NV_point_sprite, GL_NV_texture_rectangle, GL_NV_texgen_reflection, GL_NV_vertex_program, GL_NV_vertex_program1_1, GL_OES_read_format, GL_SGIS_generate_mipmap, GL_SGIS_texture_border_clamp, GL_SGIS_texture_edge_clamp, GL_SGIS_texture_lod, GL_SGIX_depth_texture, GL_SUN_multi_draw_arrays 3 GLX Visuals visual x bf lv rg d st colorbuffer ax dp st accumbuffer ms cav id dep cl sp sz l ci b ro r g b a bf th cl r g b a ns b eat ---------------------------------------------------------------------- 0x21 24 tc 0 32 0 r y . 8 8 8 8 0 24 8 0 0 0 0 0 0 None 0x22 24 dc 0 32 0 r y . 8 8 8 8 0 24 8 0 0 0 0 0 0 None 0x6c 32 tc 0 32 0 r . . 8 8 8 8 0 0 0 0 0 0 0 0 0 None 36 GLXFBConfigs: visual x bf lv rg d st colorbuffer ax dp st accumbuffer ms cav id dep cl sp sz l ci b ro r g b a bf th cl r g b a ns b eat ---------------------------------------------------------------------- 0x6d 0 tc 0 32 0 r . . 8 8 8 8 0 0 0 0 0 0 0 0 0 None 0x6e 0 tc 0 32 0 r . . 8 8 8 8 0 0 0 16 16 16 16 0 0 Slow 0x6f 0 tc 0 32 0 r y . 8 8 8 8 0 0 0 0 0 0 0 0 0 None 0x70 0 tc 0 32 0 r y . 8 8 8 8 0 0 0 16 16 16 16 0 0 Slow 0x71 0 tc 0 32 0 r y . 8 8 8 8 0 0 0 0 0 0 0 0 0 None 0x72 0 tc 0 32 0 r y . 8 8 8 8 0 0 0 16 16 16 16 0 0 Slow 0x73 0 tc 0 32 0 r . . 8 8 8 8 0 24 8 0 0 0 0 0 0 None 0x74 0 tc 0 32 0 r . . 8 8 8 8 0 24 8 16 16 16 16 0 0 Slow 0x75 0 tc 0 32 0 r y . 8 8 8 8 0 24 8 0 0 0 0 0 0 None 0x76 0 tc 0 32 0 r y . 8 8 8 8 0 24 8 16 16 16 16 0 0 Slow 0x77 0 tc 0 32 0 r y . 8 8 8 8 0 24 8 0 0 0 0 0 0 None 0x78 0 tc 0 32 0 r y . 8 8 8 8 0 24 8 16 16 16 16 0 0 Slow 0x79 0 tc 0 32 0 r . . 8 8 8 8 0 24 8 0 0 0 0 0 0 None 0x7a 0 tc 0 32 0 r . . 8 8 8 8 0 24 8 16 16 16 16 0 0 Slow 0x7b 0 tc 0 32 0 r y . 8 8 8 8 0 24 8 0 0 0 0 0 0 None 0x7c 0 tc 0 32 0 r y . 8 8 8 8 0 24 8 16 16 16 16 0 0 Slow 0x7d 0 tc 0 32 0 r y . 8 8 8 8 0 24 8 0 0 0 0 0 0 None 0x7e 0 tc 0 32 0 r y . 8 8 8 8 0 24 8 16 16 16 16 0 0 Slow 0x7f 0 dc 0 32 0 r . . 8 8 8 8 0 0 0 0 0 0 0 0 0 None 0x80 0 dc 0 32 0 r . . 8 8 8 8 0 0 0 16 16 16 16 0 0 Slow 0x81 0 dc 0 32 0 r y . 8 8 8 8 0 0 0 0 0 0 0 0 0 None 0x82 0 dc 0 32 0 r y . 8 8 8 8 0 0 0 16 16 16 16 0 0 Slow 0x83 0 dc 0 32 0 r y . 8 8 8 8 0 0 0 0 0 0 0 0 0 None 0x84 0 dc 0 32 0 r y . 8 8 8 8 0 0 0 16 16 16 16 0 0 Slow 0x85 0 dc 0 32 0 r . . 8 8 8 8 0 24 8 0 0 0 0 0 0 None 0x86 0 dc 0 32 0 r . . 8 8 8 8 0 24 8 16 16 16 16 0 0 Slow 0x87 0 dc 0 32 0 r y . 8 8 8 8 0 24 8 0 0 0 0 0 0 None 0x88 0 dc 0 32 0 r y . 8 8 8 8 0 24 8 16 16 16 16 0 0 Slow 0x89 0 dc 0 32 0 r y . 8 8 8 8 0 24 8 0 0 0 0 0 0 None 0x8a 0 dc 0 32 0 r y . 8 8 8 8 0 24 8 16 16 16 16 0 0 Slow 0x8b 0 dc 0 32 0 r . . 8 8 8 8 0 24 8 0 0 0 0 0 0 None 0x8c 0 dc 0 32 0 r . . 8 8 8 8 0 24 8 16 16 16 16 0 0 Slow 0x8d 0 dc 0 32 0 r y . 8 8 8 8 0 24 8 0 0 0 0 0 0 None 0x8e 0 dc 0 32 0 r y . 8 8 8 8 0 24 8 16 16 16 16 0 0 Slow 0x8f 0 dc 0 32 0 r y . 8 8 8 8 0 24 8 0 0 0 0 0 0 None 0x90 0 dc 0 32 0 r y . 8 8 8 8 0 24 8 16 16 16 16 0 0 Slow ------------------------------------------------------------------------------------------ ªŁ€× |
From: Alexandre L. <ale...@gm...> - 2008-11-11 22:05:35
|
Hmmm... I tried a live cd and the segfault dissapeared... This means it have something to do with the configuration of the computer :S The live cd was hardy (8.04) and the fix install is ibex (8.10, upgraded from hardy) Any body have an idea what need to be configured ? thanks ªŁ€× On Tue, Nov 11, 2008 at 3:56 PM, Alexandre Lacoste <alex.lacoste.ml@ gmail.com> wrote: > Hi. I'm experiencing segmentation fault on ubuntu. As opposed to most other > ubuntu-seg-fault post, my ubuntu is a 32 bit. > > The minimum program that makes it crash is : > > from OpenGL.GLUT import * > glutInit( ' ' ) > glutInitDisplayMode( GLUT_SINGLE ) > > Any body got an idea ? > > Glx gear is running without any problem. Here is some informatqion that > might be usefull (maybe too much information) > > > ------------------------------------------------------------------------------------------ > ... > > ªŁ€× > |
From: Mike C. F. <mcf...@vr...> - 2008-11-12 02:56:07
|
Alexandre Lacoste wrote: > Hmmm... I tried a live cd and the segfault dissapeared... > This means it have something to do with the configuration of the > computer :S > The live cd was hardy (8.04) and the fix install is ibex (8.10, > upgraded from hardy) > > Any body have an idea what need to be configured ? Not really. I'm on a Kubuntu 32-bit Hardy machine here, script executes without problems. I have FreeGLUT 3 installed if that helps you. If you have gdb, you could try doing a gdb python core on the corefile to see where the actual crash occurs. If you do an import pdb; pdb.set_trace() and step into everything you should at least be able to see what is going into the C code as values as the crash occurs. Out of curiosity, if you switch to GLUT_DOUBLE, does it still crash? I wouldn't be all *that* surprised to discover that something wasn't being tested in single-buffered mode. Good luck, Mike -- ________________________________________________ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com |