Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
vdrift Segmentation Error(core dumped)
04-14-2007, 07:29 PM,
#28
 
thelusiv Wrote:It looks like from the backtrace that you are running out of virtual memory. Even GDB is having trouble continuing. Could this be because you are using such a small disk, and don't have much swap space? This would certainly cause VDrift to crash, if it can't allocate memory.

evgen@beasty> swapinfo -h
Device 1K-blocks Used Avail Capacity
/dev/ad0s1b 1021384 0B 997M 0%


evgen@beasty> df -h
Filesystem Size Used Avail Capacity Mounted on
/dev/ad0s1a 248M 166M 62M 73% /
devfs 1.0K 1.0K 0B 100% /dev
/dev/ad0s1e 248M 3.9M 224M 2% /tmp
/dev/ad0s1f 35G 12G 21G 37% /usr
/dev/ad0s1d 248M 85M 143M 37% /var
linprocfs 4.0K 4.0K 0B 100% /usr/compat/linux/proc


evgen@beasty> vmstat
procs memory page disks faults cpu
r b w avm fre flt re pi po fr sr ad0 cd0 in sy cs us sy id
2 0 0 199244 264556 74 0 1 0 51 0 0 0 334 1439 686 2 1 97


evgen@beasty> vdrift
No data_dir found in VDrift.config, using /usr/local/share/vdrift
Found config file /home/evgen/.vdrift/controls.
Found config file /home/evgen/.vdrift/VDrift.config.
No data_dir found in VDrift.config, using /usr/local/share/vdrift
Version of game: development
Skin name not found in config file...
Warning: option-47 is missing its default value. Assuming "".
Run with -verbose for troubleshooting.
Run with -nosound to disable sound.
Run with -benchmark to play a replay and output benchmark data.
0 joystick(s) found:
Ошибка сегментации(core dumped)


evgen@beasty> vmstat
procs memory page disks faults cpu
r b w avm fre flt re pi po fr sr ad0 cd0 in sy cs us sy id
3 0 0 199248 260588 74 0 1 0 52 0 0 0 334 1439 687 2 1 97


evgen@beasty> cat gdb.cmd
directory /home/evgen/build/vdrift-2007-03-23-src
directory /home/evgen/build/vdrift-2007-03-23-src/src


evgen@beasty> gdb -c vdrift.core -x gdb.cmd vdrift
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 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 "i386-marcel-freebsd"...
Core was generated by `vdrift'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/local/lib/libintl.so.8...done.
Loaded symbols for /usr/local/lib/libintl.so.8
Reading symbols from /usr/local/lib/libopenal.so.0...done.
Loaded symbols for /usr/local/lib/libopenal.so.0
Reading symbols from /usr/local/lib/libalut.so.1...done.
Loaded symbols for /usr/local/lib/libalut.so.1
Reading symbols from /usr/local/lib/libSDL.so.11...done.
Loaded symbols for /usr/local/lib/libSDL.so.11
Reading symbols from /usr/X11R6/lib/libGL.so.1...done.
Loaded symbols for /usr/X11R6/lib/libGL.so.1
Reading symbols from /usr/X11R6/lib/libGLU.so.1...done.
Loaded symbols for /usr/X11R6/lib/libGLU.so.1
Reading symbols from /usr/local/lib/libSDL_image.so.1...done.
Loaded symbols for /usr/local/lib/libSDL_image.so.1
Reading symbols from /usr/local/lib/libSDL_net.so.0...done.
Loaded symbols for /usr/local/lib/libSDL_net.so.0
Reading symbols from /usr/local/lib/libSDL_gfx.so.13...done.
Loaded symbols for /usr/local/lib/libSDL_gfx.so.13
Reading symbols from /usr/lib/libstdc++.so.5...done.
Loaded symbols for /usr/lib/libstdc++.so.5
Reading symbols from /lib/libm.so.4...done.
Loaded symbols for /lib/libm.so.4
Reading symbols from /lib/libpthread.so.2...done.
Loaded symbols for /lib/libpthread.so.2
Reading symbols from /lib/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /usr/local/lib/libiconv.so.3...done.
Loaded symbols for /usr/local/lib/libiconv.so.3
Reading symbols from /usr/X11R6/lib/libX11.so.6...done.
Loaded symbols for /usr/X11R6/lib/libX11.so.6
Reading symbols from /usr/X11R6/lib/libXext.so.6...done.
Loaded symbols for /usr/X11R6/lib/libXext.so.6
Reading symbols from /usr/X11R6/lib/libXrandr.so.2...done.
Loaded symbols for /usr/X11R6/lib/libXrandr.so.2
Reading symbols from /usr/X11R6/lib/libXrender.so.1...done.
Loaded symbols for /usr/X11R6/lib/libXrender.so.1
Reading symbols from /usr/lib/libvgl.so.4...done.
Loaded symbols for /usr/lib/libvgl.so.4
Reading symbols from /usr/lib/libusbhid.so.2...done.
Loaded symbols for /usr/lib/libusbhid.so.2
Reading symbols from /usr/X11R6/lib/libXxf86vm.so.1...done.
Loaded symbols for /usr/X11R6/lib/libXxf86vm.so.1
Reading symbols from /usr/local/lib/libjpeg.so.9...done.
Loaded symbols for /usr/local/lib/libjpeg.so.9
Reading symbols from /usr/X11R6/lib/X11/locale/lib/common/xlcDef.so.2...done.
Loaded symbols for /usr/X11R6/lib/X11/locale/lib/common/xlcDef.so.2
Reading symbols from /usr/X11R6/lib/X11/locale/lib/common/ximcp.so.2...done.
Loaded symbols for /usr/X11R6/lib/X11/locale/lib/common/ximcp.so.2
Reading symbols from /usr/X11R6/lib/libXcursor.so.1...done.
Loaded symbols for /usr/X11R6/lib/libXcursor.so.1
Reading symbols from /usr/X11R6/lib/libXfixes.so.3...done.
Loaded symbols for /usr/X11R6/lib/libXfixes.so.3
Reading symbols from /libexec/ld-elf.so.1...done.
Loaded symbols for /libexec/ld-elf.so.1
#0 0x284be912 in strtod () from /lib/libc.so.6
[New LWP 100123]
(gdb) run
Starting program: /usr/local/bin/vdrift
No data_dir found in VDrift.config, using /usr/local/share/vdrift
Found config file /home/evgen/.vdrift/controls.
Found config file /home/evgen/.vdrift/VDrift.config.
No data_dir found in VDrift.config, using /usr/local/share/vdrift
Version of game: development
Skin name not found in config file...
Warning: option-47 is missing its default value. Assuming "".
Run with -verbose for troubleshooting.
Run with -nosound to disable sound.
Run with -benchmark to play a replay and output benchmark data.
0 joystick(s) found:

Program received signal SIGSEGV, Segmentation fault.
0x284be912 in strtod () from /lib/libc.so.6
(gdb) bt
#0 0x284be912 in strtod () from /lib/libc.so.6
#1 0x282baf3b in closestFit () from /usr/X11R6/lib/libGLU.so.1
#2 0x282c1e32 in gluBuild2DMipmaps () from /usr/X11R6/lib/libGLU.so.1
#3 0x080b0440 in UTILITY::TexLoad (this=0x81a3760, filename=
{static npos = 4294967295, _M_dataplus = {<std::allocator<char>> =
{<__gnu_cxx::new_allocator<char>> = {<No>}, <No>},
_M_p = 0x874418c "/usr/local/share/vdrift/skins/simple/fonts/default.png"}},
surface=0x8739940, format=6408, mipmap=true, cube=false, w=@0x8739914,
h=@0x8739918, supressederror=false, err=@0xbfbfd91f) at
src/utility.cpp:440
#4 0x080af8de in UTILITY::TexLoad (this=0x81a3760, filename=
{static npos = 4294967295, _M_dataplus = {<std::allocator<char>> =
{<__gnu_cxx::new_allocator<char>> = {<No>}, <No>},
_M_p = 0x874418c "/usr/local/share/vdrift/skins/simple/fonts/default.png"}},
format=6408, mipmap=true, cube=false, w=@0x8739914, h=@0x8739918,
supressederror=false, err=@0xbfbfd91f, attempt=0) at src/utility.cpp:159
#5 0x080af5c9 in UTILITY::TexLoad (this=0x81a3760, filename=
{static npos = 4294967295, _M_dataplus = {<std::allocator<char>> =
{<__gnu_cxx::new_allocator<char>> = {<No>}, <No>},
_M_p = 0x874418c "/usr/local/share/vdrift/skins/simple/fonts/default.png"}},
format=6408, mipmap=true, cube=false, w=@0x8739914, h=@0x8739918,
supressederror=false, err=@0xbfbfd91f) at src/utility.cpp:117
#6 0x080a91bd in TEXTURE::Load (this=0x8739908) at src/textures.cpp:47
#7 0x080a969e in TEXTURES::LoadTexture (this=0x81a363c, new_tex_file=
{static npos = 4294967295, _M_dataplus = {<std::allocator<char>> =
{<__gnu_cxx::new_allocator<char>> = {<No>}, <No>},
_M_p = 0x874418c "/usr/local/share/vdrift/skins/simple/fonts/default.png"}},
---Type <return> to continue, or q <return> to quit---
surface=0x0, mipmap=true, cube=false, w=@0xbfbfdaa8, h=@0xbfbfdaa4)
at src/textures.cpp:214
#8 0x080a936b in TEXTURE_HANDLE::Load (this=0x874580c, new_tex_file=
{static npos = 4294967295, _M_dataplus = {<std::allocator<char>> =
{<__gnu_cxx::new_allocator<char>> = {<No>}, <No>},
_M_p = 0x874418c "/usr/local/share/vdrift/skins/simple/fonts/default.png"}},
surface=0x0, mipmap=true, cube=false, w=@0xbfbfdaa8, h=@0xbfbfdaa4)
at src/textures.cpp:121
#9 0x0805f617 in TEXTURE_HANDLE::Load (this=0x874580c, new_tex_file=Error
accessing memory address 0x443: Bad address.
)
at textures.h:97
#10 0x0805f595 in TEXTURE_HANDLE::Load (this=0x874580c, new_tex_file=Error
accessing memory address 0x443: Bad address.
)
at textures.h:96
#11 0x080661f8 in FONT::Load (this=0x8745808, newfontname=@0xbfbfe660)
at src/font.cpp:523
#12 0x0806657d in FONTMANAGER::LoadFont (this=0x81a374c,
newfontname=@0xbfbfe660) at src/font.cpp:544
#13 0x08066faf in FONTMANAGER::Load (this=0x81a374c) at src/font.cpp:805
#14 0x0804e407 in ChangeDisplay (w=800, h=600, bpp=16, fullscreen=true,
reloadtextures=true) at src/main.cpp:353
#15 0x08055d5e in main (argc=1, argv=0xbfbfe9b8) at src/main.cpp:1810
(gdb) q
evgen@beasty>
Reply


Messages In This Thread
[No subject] - by thelusiv - 02-26-2007, 01:54 AM
[No subject] - by ACMhUnTeR - 02-27-2007, 10:47 AM
[No subject] - by wmd772 - 03-02-2007, 12:31 AM
[No subject] - by thelusiv - 03-02-2007, 01:35 AM
[No subject] - by wmd772 - 03-02-2007, 02:49 AM
[No subject] - by wmd772 - 03-27-2007, 11:35 PM
[No subject] - by thelusiv - 03-28-2007, 08:21 AM
[No subject] - by wmd772 - 03-30-2007, 12:14 AM
[No subject] - by thelusiv - 03-30-2007, 03:09 AM
[No subject] - by wmd772 - 03-30-2007, 10:25 PM
[No subject] - by thelusiv - 03-31-2007, 06:54 AM
[No subject] - by wmd772 - 04-01-2007, 11:23 PM
[No subject] - by thelusiv - 04-03-2007, 09:00 PM
[No subject] - by wmd772 - 04-04-2007, 07:42 PM
[No subject] - by FFuser - 04-05-2007, 05:12 AM
[No subject] - by wmd772 - 04-05-2007, 06:57 PM
[No subject] - by thelusiv - 04-05-2007, 07:00 PM
[No subject] - by wmd772 - 04-05-2007, 10:44 PM
[No subject] - by wmd772 - 04-06-2007, 10:53 PM
[No subject] - by thelusiv - 04-09-2007, 03:37 PM
[No subject] - by wmd772 - 04-09-2007, 08:21 PM
[No subject] - by ACMhUnTeR - 04-10-2007, 01:06 AM
[No subject] - by thelusiv - 04-10-2007, 02:30 AM
[No subject] - by wmd772 - 04-10-2007, 10:40 PM
[No subject] - by wmd772 - 04-11-2007, 06:32 PM
[No subject] - by thelusiv - 04-12-2007, 05:06 PM
[No subject] - by wmd772 - 04-14-2007, 07:29 PM
[No subject] - by thelusiv - 04-18-2007, 04:26 PM
[No subject] - by ACMhUnTeR - 04-18-2007, 08:15 PM
[No subject] - by wmd772 - 04-19-2007, 12:37 AM
[No subject] - by ACMhUnTeR - 04-19-2007, 11:49 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)