Re: Troubling Seg Faults from DBACCESS and DBSCHEMA
Posted in 1998
In article <70d9f0$s59$1@news.xmission.com>, Kurt Wall
<kwall@uswest.net> writes
>
>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
Open succeeds..
>--- SIGSEGV (Segmentation fault) ---
SEGV??
>+++ 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
time(NULL) is early on..
SEGV??
Sure it is not running out of memory..try it in single user mode after
doing a mount -a..
Check your enironment variables are set ok and export
bash
env | egrep -i "INF|TERM"
>--- 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
--
David Williams
Maintainer of the Informix FAQ
Primary site (Beta Version) http://www.smooth1.demon.co.uk
Official site http://www.iiug.org/techinfo/faq/faq_top.html
I see you standin', Standin' on your own, It's such a lonely place for you, For
you to be If you need a shoulder, Or if you need a friend, I'll be here
standing, Until the bitter end...
So don't chastise me Or think I, I mean you harm...
All I ever wanted Was for you To know that I care