project-navigation
Personal tools

Author Topic: empty ufo.conf and strange search paths and code path  (Read 2171 times)

ytre

  • Guest
empty ufo.conf and strange search paths and code path
« on: September 28, 2006, 09:23:17 pm »
empty /etc/ufo.conf makes this:

this code execution path is well something else then I would expect with only difference of existence to inexistence of /etc/ufo.conf

strace -ff ./ufo 2>/tmp/dump
+21:14 strace -ff ./ufo
Adding game dir: ./base
using /home/ytre/.ufoai/base for writing
Adding game dir: /home/ytre/.ufoai/base
execing default.cfg
FindFile: can't find config.cfg
couldn't exec config.cfg
execing keys.cfg
Console initialized.

------- sound initialization -------
Loading snd_sdl sound driver
Soundsystem: SDL.
SDL version: 1.2.9
SDL audio driver is "alsa".
Bits: 16
Frequency: 48000
Samples: 4096
Channels: 2
sound sampling rate: 48000
------- Loading ref_glx.so -------
LoadLibrary("ref_glx.so") failed: No such file or directory
Dumped console text to /home/ytre/.ufoai/base/gl_debug.txt.
SDL audio device shut down.
recursive shutdown


less /tmp/dump
...
clone(Process 14755 attached
child_stack=0xb7b8eb48, flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID|C
LONE_DETACHED, parent_tidptr=0xb7b8ebf8, {entry_number:6, base_addr:0xb7b8ebb0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1,
seg_not_present:0, useable:1}, child_tidptr=0xb7b8ebf8) = 14755
[pid 14754] futex(0x1a200aa4, FUTEX_WAIT, 0, NULL <unfinished ...>
[pid 14755] rt_sigprocmask(SIG_BLOCK, [HUP INT QUIT PIPE ALRM TERM CHLD VTALRM PROF WINCH], NULL, 8) = 0
[pid 14755] futex(0x1a200aa4, FUTEX_WAKE, 1) = 1
[pid 14754] <... futex resumed> )       = 0
[pid 14754] write(1, "sound sampling rate: 48000\n", 27) = 27
[pid 14754] write(1, "------- Loading ref_glx.so -----"..., 35) = 35
[pid 14754] setresuid32(-1, 1000, -1)   = 0
[pid 14754] open("/etc/ufo.conf", O_RDONLY) = 4
[pid 14754] fstat64(4, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
[pid 14754] mmap2(NULL, 131072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb736f000
[pid 14754] read(4, "", 131072)         = 0
[pid 14754] close(4)                    = 0
[pid 14754] munmap(0xb736f000, 131072)  = 0
[pid 14754] stat64("/ref_glx.so", 0xbf817ef4) = -1 ENOENT (No such file or directory)
[pid 14754] write(1, "LoadLibrary(\"ref_glx.so\") failed"..., 60) = 60
[pid 14754] write(1, "Dumped console text to /home/led"..., 61) = 61
...