Troubling Seg Faults from DBACCESS and DBSCHEMA
Posted in 1998
Hi, all. I'm helping someone track down some seg faults while using
DBACESS and DBSCHEMA. I've not been able to reproduce the errors, so
I'm turning to the real experts.
SE 7.24 on SuSE 5.2, kernel 2.0.33. He's working in straight character
mode (no X GUI). Excerpted output from strace is as follows:
The problem with dbaccess appears to have something to do with the GLS
localization support:
[ begin excerpt from output_dbaccess ]
open("/usr/users/informix/gls/lc11/en_us/0333.lco", O_RDONLY) = 4
fstat(4, {st_mode=S_IFREG|0644, st_size=2590, ...}) = 0
mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40008000
read(4, "FILE_TYPE=locale_object\\nCOMPILE"..., 4096) = 2590
close(4) = 0
munmap(0x40008000, 4096) = 0
open("/usr/users/informix/gls/lc11/en_us/0333.lco", O_RDONLY) = 4
--- SIGSEGV (Segmentation fault) ---
+++ killed by SIGSEGV +++
[ end excerpt from output_dbaccess ]
With dbschema, the seg fault happens while reading $INFORMIXDIR/etc/sqlhosts,
it appears:
[ begin excerpt from output_dbschema ]
open("/etc/passwd", O_RDONLY) = 5
fstat(5, {st_mode=S_IFREG|0644, st_size=1302, ...}) = 0
mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x400cf000
read(5, "root:x:0:0:root:/root:/bin/bash\\n"..., 4096) = 1302
close(5) = 0
munmap(0x400cf000, 4096) = 0
open("/usr/users/informix/etc/sqlhosts", O_RDONLY) = 5
fstat(5, {st_mode=S_IFREG|0644, st_size=1031, ...}) = 0
mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x400cf000
lseek(5, 0, SEEK_SET) = 0
read(5, "#*******************************"..., 4096) = 1031
read(5, "", 4096) = 0
uname({sys="Linux", node="mview", ...}) = 0
close(5) = 0
munmap(0x400cf000, 4096) = 0
time(NULL) = 908713869
getpid() = 1654
time(NULL) = 908713869
--- SIGSEGV (Segmentation fault) ---
+++ killed by SIGSEGV +++
[ end excerpt from output_dbschema ]
I'm not quite sure how to proceed, here. Anyone have some clues?
Kurt
--
I'm so relieved that there wasn't an apostle named `Kurt'.