待辦事項 #8443

segfault in _mesa_TexImage2D
啟用日期: 2006-05-22 03:18 最後更新: 2006-05-26 22:36

回報者:
負責人:
(無)
類型:
狀態:
關閉
元件:
(無)
里程碑:
(無)
優先權:
5 - 中
嚴重程度:
5 - 中
處理結果:
檔案:

細節

I built mmap 0.0.7 from source on a debian gnu/linux
unstable system but it segfaults in _mesa_TexImage2D
when I try to run it:

$ gdb mmap
GNU gdb 6.4-debian
Copyright 2005 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public
License, and you are
welcome to change it and/or distribute copies of it
under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show
warranty" for details.
This GDB was configured as "i486-linux-gnu"...Using
host libthread_db library "/lib/libthread_db.so.1".

(gdb) r
Starting program: /usr/bin/mmap
[Thread debugging using libthread_db enabled]
[New Thread 16384 (LWP 9262)]
mmap_config_read:/home/lindi/.mmap/mmap.config2
mmap_config_read:No such file or directory
ww_object_get_type
ww_layerset_get_type
ww_image_get_type
ww_quadtile_get_type
ww_mmap_get_type
ww_placename_get_type
[New Thread 32769 (LWP 9268)]
[New Thread 16386 (LWP 9269)]
mmapthread_init
[New Thread 32771 (LWP 9270)]
[New Thread 49156 (LWP 9271)]
camera_init:0.06 0.70 -0.54 -0.45
du -s /home/lindi/.mmap/
window_set_mark_submenu
draw_dummy_realize
GL_ARB_vertex_buffer_object ------------ supported
GL_ARB_texture_compression ------------ supported
max_texture_size:2048
dummy:bytes:136471824 format:84ed
pbuffer is supported
glarea_realize_cb:end
xmlutil_data_build:/usr/share/mmap/Config/Earth.xml
world_new_with_attribute:error:xmlns:xsi:http://www.w3.org/2001/XMLSchema-instance:
world_new_with_attribute:error:xsi:noNamespaceSchemaLocation:WorldXmlDescriptor.xsd:
ww_world_create_layer
xmlutil_data_build:/usr/share/mmap/Config/Earth/Gsi.xml
ww_mmap_class_init:c:0x8c76fc0:
constructor
ww_mmap_init:o:0x8227150:
ww_mmap_set_attribute:o:0x8227150
ww_mmap_set_element:o:0x8227150 e0:Name e1:Mmap
value:Japanese Topo
xmlutil_data_build:/usr/share/mmap/Config/Earth/Base.xml
xmlutil_data_build:/usr/share/mmap/Config/Earth/Tiled.xml
xmlutil_data_build:/usr/share/mmap/Config/Earth/Images.xml
xmlutil_data_build:/usr/share/mmap/Config/Earth/Placenames.xml
error:g_io_channel_new_file:/home/lindi/.mmap/Data/Earth/Placenames/Countries/ww.wpl:No
such file or directory
error:g_io_channel_new_file:/home/lindi/.mmap/Data/Earth/Placenames/GEONET_p_pplc/ww.wpl:No
such file or directory
error:g_io_channel_new_file:/home/lindi/.mmap/Data/Earth/Placenames/TrenchesRidges/ww.wpl:No
such file or directory
error:g_io_channel_new_file:/home/lindi/.mmap/Data/Earth/Placenames/DesertsPlains/ww.wpl:No
such file or directory
error:g_io_channel_new_file:/home/lindi/.mmap/Data/Earth/Placenames/LakesRivers/ww.wpl:No
such file or directory
error:g_io_channel_new_file:/home/lindi/.mmap/Data/Earth/Placenames/MountainsValleys/ww.wpl:No
such file or directory
error:g_io_channel_new_file:/home/lindi/.mmap/Data/Earth/Placenames/Oceans/ww.wpl:No
such file or directory
error:g_io_channel_new_file:/home/lindi/.mmap/Data/Earth/Placenames/Continents/ww.wpl:No
such file or directory
error:g_io_channel_new_file:/home/lindi/.mmap/Data/Earth/Placenames/WaterBodies/ww.wpl:No
such file or directory
error:g_io_channel_new_file:/home/lindi/.mmap/Data/Earth/Placenames/uscitiesover500k/ww.wpl:No
such file or directory
error:g_io_channel_new_file:/home/lindi/.mmap/Data/Earth/Placenames/uscitiesover100k/ww.wpl:No
such file or directory
error:g_io_channel_new_file:/home/lindi/.mmap/Data/Earth/Placenames/uscitiesover50k//ww.wpl:No
such file or directory
error:g_io_channel_new_file:/home/lindi/.mmap/Data/Earth/Placenames/GEONET_a_adm1/ww.wpl:No
such file or directory
error:g_io_channel_new_file:/home/lindi/.mmap/Data/Earth/Placenames/GEONET_a_adm2/ww.wpl:No
such file or directory
error:g_io_channel_new_file:/home/lindi/.mmap/Data/Earth/Placenames/GEONET_p_ppla/ww.wpl:No
such file or directory
error:g_io_channel_new_file:/home/lindi/.mmap/Data/Earth/Placenames/uscitiesover10k/ww.wpl:No
such file or directory
error:g_io_channel_new_file:/home/lindi/.mmap/Data/Earth/Placenames/uscitiesover1k/ww.wpl:No
such file or directory
error:g_io_channel_new_file:/home/lindi/.mmap/Data/Earth/Placenames/uscitiesover0/ww.wpl:No
such file or directory
error:g_io_channel_new_file:/home/lindi/.mmap/Data/Earth/Placenames/uscities0/ww.wpl:No
such file or directory
error:g_io_channel_new_file:/home/lindi/.mmap/Data/Earth/Placenames/us_water/ww.wpl:No
such file or directory

error:g_io_channel_new_file:/home/lindi/.mmap/Data/Earth/Placenames/us_terrain/ww.wpl:No
such file or directory
error:g_io_channel_new_file:/home/lindi/.mmap/Data/Earth/Placenames/us_anthropogenic/ww.wpl:No
such file or directory
error:g_io_channel_new_file:/home/lindi/.mmap/Data/Earth/Placenames/GEONET_p_ppl/ww.wpl:No
such file or directory
ww_layer_set_element:o:0x8191ea0 e0:ToolBarImage
e1:ExtendedInformation
value:Data\Icons\Interface\places2.png
window_set_mark_submenu
glarea_process_start
ww_image_update:priv->texture_path:Data/Earth/BlueMarbleTextures/land_shallow_topo_2048.dds
ww_image_update:path_dds:/home/lindi/.mmap/Data/Earth/BlueMarbleTextures/land_shallow_topo_2048.dds
path_jpg:/usr/share/mmap/Data/Earth/land_shallow_topo_2048.jpg
ww_texture_class_init:c:0x8ca2058:
du -s /home/lindi/.mmap/
configure_event_cb:900 700
configure_event_cb:900 700
glarea_expose_event_cb
texture_pixbuf_to_t_num:w:2048 h:1024
before glteximage2d

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 49156 (LWP 9271)]
_mesa_TexImage2D (target=3553, level=0,
internalFormat=6407, width=2048, height=1024, border=0,
format=6407, type=5121, pixels=0x40346300) at
main/teximage.c:2140
2140 ASSERT_OUTSIDE_BEGIN_END_AND_FLUSH(ctx);
(gdb) print ctx
$1 = (GLcontext *) 0x0
(gdb) bt
#0 _mesa_TexImage2D (target=3553, level=0,
internalFormat=6407, width=2048, height=1024, border=0,
format=6407, type=5121, pixels=0x40346300) at
main/teximage.c:2140
#1 0x401428c2 in glTexImage2D (target=1077175040,
level=1077175040, internalformat=1077175040,
width=1077175040, height=1077175040, border=1077175040,
format=1077175040,
type=1077175040, pixels=0x40346300) at glapitemp.h:990
#2 0x080648b8 in texture_pixels_to_t_num (
pixels=0x41ed3008
"\v\n2\v\n2\v\n2\v\n2\v\n2\v\n2\v\n2\v\n2\v\n2\v\n2\v\n2\v\n2\v\n2\v\n2\v\n2\v\n2\v\n2\v\n2\v\n2\v\n2\v\n2\v\n2\v\n2\v\n2\v\n2\v\n2\v\n2\v\n2\v\n2\v\n2\v\n2\v\n2\v\n2\v\n2\v\n2\v\n2\v\n2\v\n2\v\n2\v\n2\v\n2\v\n2\v\n2\v\n2\v\n2\v\n2\v\n2\v\n2\v\n2\v\n2\v\n2\v\n2\v\n2\v\n2\v\n2\v\n2\v\n2\v\n2\v\n2\v\n2\v\n2\v\n2\v\n2\v\n2\v\n2\v\n2\v\n"...,
w=2048, h=1024, savepath=0x814a000
"/home/lindi/.mmap/Data/Earth/BlueMarbleTextures/land_shallow_topo_2048.dds")
at ww_texture.c:256
#3 0x0806493b in texture_pixbuf_to_t_num
(pixbuf=0x814cd70, savepath=0x814a000
"/home/lindi/.mmap/Data/Earth/BlueMarbleTextures/land_shallow_topo_2048.dds")
at ww_texture.c:288
#4 0x08064a00 in ww_texture_new_jpg
(path_jpg=0x8c763a0
"/usr/share/mmap/Data/Earth/land_shallow_topo_2048.jpg",
path_dds_save=0x814a000
"/home/lindi/.mmap/Data/Earth/BlueMarbleTextures/land_shallow_topo_2048.dds")
at ww_texture.c:327
#5 0x0806072b in ww_image_update (obj=0x814bc80) at
ww_image.c:309
#6 0x0805c268 in ww_object_update (obj=0x814bc80) at
ww_object.c:314
#7 0x0805c7d4 in ww_layerset_update (obj=0x8191d20) at
ww_layerset.c:266
#8 0x0805c268 in ww_object_update (obj=0x8191d20) at
ww_object.c:314
#9 0x08067e74 in ww_world_update (world=0x814b180) at
ww_world.c:314
#10 0x08052525 in mmap_update () at mmap.c:156
#11 0x0805331d in thread_func_update (obj=0x0) at
glarea.c:275
#12 0x0805b944 in thread_func_power (data=0x8149708,
user_data=0x0) at mmapthread.c:72
#13 0x409f0bda in g_thread_pool_free () from
/usr/lib/libglib-2.0.so.0
#14 0x409eeb41 in g_static_private_free () from
/usr/lib/libglib-2.0.so.0
#15 0x40d04a29 in pthread_start_thread () from
/lib/libpthread.so.0
#16 0x40d04b70 in pthread_start_thread_event () from
/lib/libpthread.so.0
#17 0x40e0da5a in clone () from /lib/libc.so.6

Any idea what should I try next?

Ticket History (3/3 Histories)

2006-05-26 20:41 Updated by: sanpo
評語
Logged In: YES
user_id=20230

I releaced mmap+ 0.0.8.
OpenGL-context handling is changed in 0.0.8.

Please, try 0.0.8.
2006-05-26 21:50 Updated by: lindi2
評語
Logged In: YES
user_id=20444

Thanks for the quick response. I tried 0.0.8 and I can see
and rotate the earth now!

For the record here are all the messages I get when mmap starts:


mmap_config_read:/home/lindi/.mmap/mmap.config2
mmap_config_read:No such file or directory
du -s /home/lindi/.mmap/
window_set_mark_submenu
direct rendering enable :FALSE
############################################
### Direct Rendering DISABLE ###
############################################
GL_ARB_vertex_buffer_object ------------ supported
GL_ARB_texture_compression ------------ supported
dummy:bytes:-1073753160 format:84ed
max_texture_size:2048
pbuffer is supported
xmlutil_data_build:/usr/share/mmap/Config/Earth.xml
world_new_with_attribute:error:xmlns:xsi:http://www.w3.org/2001/XMLSchema-instance:
world_new_with_attribute:error:xsi:noNamespaceSchemaLocation:WorldXmlDescriptor.xsd:
ww_world_create_layer
xmlutil_data_build:/usr/share/mmap/Config/Earth/Gsi.xml
xmlutil_data_build:/usr/share/mmap/Config/Earth/Base.xml
xmlutil_data_build:/usr/share/mmap/Config/Earth/Tiled.xml
xmlutil_data_build:/usr/share/mmap/Config/Earth/Images.xml
xmlutil_data_build:/usr/share/mmap/Config/Earth/Placenames.xml
error:g_io_channel_new_file:/home/lindi/.mmap/Data/Earth/Placenames/Countries/ww.wpl:No
such file or directory
error:g_io_channel_new_file:/home/lindi/.mmap/Data/Earth/Placenames/GEONET_p_pplc/ww.wpl:No
such file or directory
error:g_io_channel_new_file:/home/lindi/.mmap/Data/Earth/Placenames/TrenchesRidges/ww.wpl:No
such file or directory
error:g_io_channel_new_file:/home/lindi/.mmap/Data/Earth/Placenames/DesertsPlains/ww.wpl:No
such file or directory
error:g_io_channel_new_file:/home/lindi/.mmap/Data/Earth/Placenames/LakesRivers/ww.wpl:No
such file or directory
error:g_io_channel_new_file:/home/lindi/.mmap/Data/Earth/Placenames/MountainsValleys/ww.wpl:No
such file or directory
error:g_io_channel_new_file:/home/lindi/.mmap/Data/Earth/Placenames/Oceans/ww.wpl:No
such file or directory
error:g_io_channel_new_file:/home/lindi/.mmap/Data/Earth/Placenames/Continents/ww.wpl:No
such file or directory
error:g_io_channel_new_file:/home/lindi/.mmap/Data/Earth/Placenames/WaterBodies/ww.wpl:No
such file or directory
error:g_io_channel_new_file:/home/lindi/.mmap/Data/Earth/Placenames/uscitiesover500k/ww.wpl:No
such file or directory
error:g_io_channel_new_file:/home/lindi/.mmap/Data/Earth/Placenames/uscitiesover100k/ww.wpl:No
such file or directory
error:g_io_channel_new_file:/home/lindi/.mmap/Data/Earth/Placenames/uscitiesover50k//ww.wpl:No
such file or directory
error:g_io_channel_new_file:/home/lindi/.mmap/Data/Earth/Placenames/GEONET_a_adm1/ww.wpl:No
such file or directory
error:g_io_channel_new_file:/home/lindi/.mmap/Data/Earth/Placenames/GEONET_a_adm2/ww.wpl:No
such file or directory
error:g_io_channel_new_file:/home/lindi/.mmap/Data/Earth/Placenames/GEONET_p_ppla/ww.wpl:No
such file or directory
error:g_io_channel_new_file:/home/lindi/.mmap/Data/Earth/Placenames/uscitiesover10k/ww.wpl:No
such file or directory
error:g_io_channel_new_file:/home/lindi/.mmap/Data/Earth/Placenames/uscitiesover1k/ww.wpl:No
such file or directory
error:g_io_channel_new_file:/home/lindi/.mmap/Data/Earth/Placenames/uscitiesover0/ww.wpl:No
such file or directory
error:g_io_channel_new_file:/home/lindi/.mmap/Data/Earth/Placenames/uscities0/ww.wpl:No
such file or directory
error:g_io_channel_new_file:/home/lindi/.mmap/Data/Earth/Placenames/us_water/ww.wpl:No
such file or directory
error:g_io_channel_new_file:/home/lindi/.mmap/Data/Earth/Placenames/us_terrain/ww.wpl:No
such file or directory
error:g_io_channel_new_file:/home/lindi/.mmap/Data/Earth/Placenames/us_anthropogenic/ww.wpl:No
such file or directory
error:g_io_channel_new_file:/home/lindi/.mmap/Data/Earth/Placenames/GEONET_p_ppl/ww.wpl:No
such file or directory
ww_layer_set_element:o:0x818ca60 e0:ToolBarImage
e1:ExtendedInformation value:Data\Icons\Interface\places2.png
window_set_mark_submenu
glarea_process_start
ww_image_update:priv->texture_path:Data/Earth/BlueMarbleTextures/land_shallow_topo_2048.dds
ww_image_update:path_dds:/home/lindi/.mmap/Data/Earth/BlueMarbleTextures/land_shallow_topo_2048.dds
path_jpg:/usr/share/mmap/Data/Earth/land_shallow_topo_2048.jpg
before glteximage2d

2006-05-26 22:36 Updated by: sanpo
  • Ticket Close date is changed to 2006-05-26 22:36
  • 狀態 Update from 開啟 to 關閉

Attachment File List

No attachments

編輯

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » 登入