Weird crash in in _nv000029gl () from /usr/lib/libGL.so.1

Hi everyone,

I’m developing a 3d opengl scene editor for Linux. I got a segmentation fault when calling glBindTexture, it follows the gdb’s backtrace:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 6532)]
0x40a2372d in memset () from /lib/libc.so.6
Current language: auto; currently c
(gdb) bt
#0 0x40a2372d in memset () from /lib/libc.so.6
#1 0x40a1d70b in calloc () from /lib/libc.so.6
#2 0x407a5bee in _nv000029gl () from /usr/lib/libGL.so.1
#3 0x00000010 in ?? ()
#4 0x0000005c in ?? ()
#5 0x40faeb1e in _nv000819gl () from /usr/lib/libGLcore.so.1
#6 0x00000010 in ?? ()
#7 0x0000005c in ?? ()
#8 0x00000000 in ?? ()
#9 0x41847040 in ?? ()
#10 0x00000004 in ?? ()
#11 0x00000003 in ?? ()
#12 0x0831d478 in ?? ()
#13 0x08335060 in ?? ()
#14 0x00847040 in ?? ()
#15 0x40de7e92 in _nv000807gl () from /usr/lib/libGLcore.so.1
#16 0x41847040 in ?? ()
#17 0x00000003 in ?? ()
#18 0x00000001 in ?? ()
#19 0x0831d3a0 in ?? ()
#20 0x00000001 in ?? ()
#21 0x41847040 in ?? ()
#22 0xbfffed98 in ?? ()
#23 0x4185331c in ?? ()
#24 0x00000000 in ?? ()
#25 0x01847040 in ?? ()
#26 0x40de806f in _nv000807gl () from /usr/lib/libGLcore.so.1
#27 0x41847040 in ?? ()
#28 0x00000000 in ?? ()
#29 0x00000001 in ?? ()
#30 0x00000003 in ?? ()
#31 0x00000001 in ?? ()
#32 0x080dd708 in ?? ()
#33 0x080df0c8 in ?? ()
#34 0xbffff040 in ?? ()
#35 0x0805dc21 in TextureLoader::CreateTexture (this=Cannot access memory at address 0x9) at textureloader.cpp:115
Previous frame inner to this frame (corrupt stack?)
(gdb)

The line 115 is:
113 glGenTextures ( 1, &textureID );
114 printf ("** Bind the texture with %d
“,textureID );
115 glBindTexture ( GL_TEXTURE_2D , textureID );
116 printf (”** Done !" );

This happens when I’m loading TGA files. I have attached the required log files. I really hope someone may help. Other info follows:

OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: GeForce4 Ti 4600/AGP/SSE2
OpenGL version string: 1.5.1 NVIDIA 61.06

cat /proc/driver/nvidia/cards/0:
Model: GeForce4 Ti 4600
IRQ: 11
Video BIOS: 04.25.00.26.00
Card Type: AGP
cat /proc/cpuinfo

processor : 0
vendor_id : GenuineIntel
cpu family : 15
model : 2
model name : Intel(R) Pentium(R) 4 CPU 2.20GHz
stepping : 4
cpu MHz : 2210.559
cache size : 512 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 2
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm
bogomips : 4358.14

Thanks,
Colossus

Cpsed, a Linux OpenGL 3D scene editor
http://cpsed.sourceforge.net/

Ok, the fault was mine, I issued a delete in the wrong place but I have another weird problem:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 7034)]
0x40a1e48f in malloc_consolidate () from /lib/libc.so.6
Current language: auto; currently c
(gdb) bt
#0 0x40a1e48f in malloc_consolidate () from /lib/libc.so.6
#1 0x40a1dd83 in _int_malloc () from /lib/libc.so.6
#2 0x40a1cf1a in malloc () from /lib/libc.so.6
#3 0x407a5bc6 in glXChannelRectSyncSGIX () from /usr/lib/libGL.so.1
#4 0x00000200 in ?? ()
#5 0x40e3fafb in _nv000803gl () from /usr/lib/libGLcore.so.1
#6 0x08109618 in ?? ()

What does this mean ?

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.