From: Kir Kolyshkin (no email)
Date: Sat Dec 15 2001 - 03:52:11 EST
-------- Original Message --------
Subject: Re: [aseek-devel] sbin/index -a fails with "Bus Error"(aspseek1.2.7, solaris 8)
Date: Fri, 14 Dec 2001 12:37:35 -0800
From: Khan Klatt <>
To: Kir Kolyshkin <>
References: <p05101006b83ef7cbabf1@[10.0.1.2]> <3C19B8D3 dot 430CB17 at asplinux dot ru> <p05101003b83f6c7d74f5@[10.0.1.2]><3C19BF76 dot 34C8081E at asplinux dot ru>
Kir-
I spent about an hour trying to figure out the syntax of strace
reading man pages, etc. until I found out that on Solaris, strace is
something totally different, it's called "truss" on Solaris! The
things you learn that save you time. Amazing. ;)
Anyhow, the output was easily several dozen megabytes, but the last
200 lines of output was the following:
read(110, "07 w o r d u r l07 w o r".., 26) = 26
read(110, "01\0\003", 4) = 4
read(110, "FE", 1) = 1
read(110, "02\0\004", 4) = 4
read(110, "01 2", 2) = 2
read(110, "01\0\005", 4) = 4
read(110, "FE", 1) = 1
fstat64(110, 0xFFBE6CE8) = 0
getsockopt(110, 65535, 8192, 0xFFBE6DE8, 0xFFBE6DE4, -4296256) = 0
setsockopt(110, 65535, 8192, 0xFFBE6DE8, 4, -4296256) = 0
fcntl(110, F_SETFL, 0x00000082) = 0
read(110, 0x00D5FC00, 8192) Err#11 EAGAIN
fstat64(110, 0xFFBE6CE8) = 0
getsockopt(110, 65535, 8192, 0xFFBE6DE8, 0xFFBE6DE4, 0) = 0
setsockopt(110, 65535, 8192, 0xFFBE6DE8, 4, 0) = 0
fcntl(110, F_SETFL, 0x00000002) = 0
write(110, "0E\0\0\003 u n l o c k ".., 18) = 18
read(110, "03\0\001", 4) = 4
read(110, "\0\0\0", 3) = 3
fstat64(110, 0xFFBE6CE8) = 0
getsockopt(110, 65535, 8192, 0xFFBE6DE8, 0xFFBE6DE4, -4296256) = 0
setsockopt(110, 65535, 8192, 0xFFBE6DE8, 4, -4296256) = 0
fcntl(110, F_SETFL, 0x00000082) = 0
read(110, 0x00D5FC00, 8192) Err#11 EAGAIN
fstat64(110, 0xFFBE6CE8) = 0
getsockopt(110, 65535, 8192, 0xFFBE6DE8, 0xFFBE6DE4, 0) = 0
setsockopt(110, 65535, 8192, 0xFFBE6DE8, 4, 0) = 0
fcntl(110, F_SETFL, 0x00000002) = 0
write(110, " )\0\0\003 l o c k t a".., 45) = 45
read(110, "03\0\001", 4) = 4
read(110, "\0\0\0", 3) = 3
fstat64(110, 0xFFBE6CE8) = 0
getsockopt(110, 65535, 8192, 0xFFBE6DE8, 0xFFBE6DE4, 3827072) = 0
setsockopt(110, 65535, 8192, 0xFFBE6DE8, 4, 3827072) = 0
fcntl(110, F_SETFL, 0x00000082) = 0
read(110, 0x00D5FC00, 8192) Err#11 EAGAIN
fstat64(110, 0xFFBE6CE8) = 0
getsockopt(110, 65535, 8192, 0xFFBE6DE8, 0xFFBE6DE4, 0) = 0
setsockopt(110, 65535, 8192, 0xFFBE6DE8, 4, 0) = 0
fcntl(110, F_SETFL, 0x00000002) = 0
write(110, " <\0\0\003 S E L E C T ".., 64) = 64
read(110, "01\0\001", 4) = 4
read(110, "01", 1) = 1
read(110, "1A\0\002", 4) = 4
read(110, "07 w o r d u r l07 w o r".., 26) = 26
read(110, "01\0\003", 4) = 4
read(110, "FE", 1) = 1
read(110, "02\0\004", 4) = 4
read(110, "01 3", 2) = 2
read(110, "01\0\005", 4) = 4
read(110, "FE", 1) = 1
fstat64(110, 0xFFBE6CE8) = 0
getsockopt(110, 65535, 8192, 0xFFBE6DE8, 0xFFBE6DE4, -4296256) = 0
setsockopt(110, 65535, 8192, 0xFFBE6DE8, 4, -4296256) = 0
fcntl(110, F_SETFL, 0x00000082) = 0
read(110, 0x00D5FC00, 8192) Err#11 EAGAIN
fstat64(110, 0xFFBE6CE8) = 0
getsockopt(110, 65535, 8192, 0xFFBE6DE8, 0xFFBE6DE4, 0) = 0
setsockopt(110, 65535, 8192, 0xFFBE6DE8, 4, 0) = 0
fcntl(110, F_SETFL, 0x00000002) = 0
write(110, "0E\0\0\003 u n l o c k ".., 18) = 18
read(110, "03\0\001", 4) = 4
read(110, "\0\0\0", 3) = 3
fstat64(110, 0xFFBE6CE8) = 0
getsockopt(110, 65535, 8192, 0xFFBE6DE8, 0xFFBE6DE4, -4296256) = 0
setsockopt(110, 65535, 8192, 0xFFBE6DE8, 4, -4296256) = 0
fcntl(110, F_SETFL, 0x00000082) = 0
read(110, 0x00D5FC00, 8192) Err#11 EAGAIN
fstat64(110, 0xFFBE6CE8) = 0
getsockopt(110, 65535, 8192, 0xFFBE6DE8, 0xFFBE6DE4, 0) = 0
setsockopt(110, 65535, 8192, 0xFFBE6DE8, 4, 0) = 0
fcntl(110, F_SETFL, 0x00000002) = 0
write(110, " )\0\0\003 l o c k t a".., 45) = 45
read(110, "03\0\001", 4) = 4
read(110, "\0\0\0", 3) = 3
fstat64(110, 0xFFBE6CE8) = 0
getsockopt(110, 65535, 8192, 0xFFBE6DE8, 0xFFBE6DE4, 3827064) = 0
setsockopt(110, 65535, 8192, 0xFFBE6DE8, 4, 3827064) = 0
fcntl(110, F_SETFL, 0x00000082) = 0
read(110, 0x00D5FC00, 8192) Err#11 EAGAIN
fstat64(110, 0xFFBE6CE8) = 0
getsockopt(110, 65535, 8192, 0xFFBE6DE8, 0xFFBE6DE4, 0) = 0
setsockopt(110, 65535, 8192, 0xFFBE6DE8, 4, 0) = 0
fcntl(110, F_SETFL, 0x00000002) = 0
write(110, " >\0\0\003 S E L E C T ".., 66) = 66
read(110, "01\0\001", 4) = 4
read(110, "01", 1) = 1
read(110, "1A\0\002", 4) = 4
read(110, "07 w o r d u r l07 w o r".., 26) = 26
read(110, "01\0\003", 4) = 4
read(110, "FE", 1) = 1
read(110, "02\0\004", 4) = 4
read(110, "01 4", 2) = 2
read(110, "01\0\005", 4) = 4
read(110, "FE", 1) = 1
fstat64(110, 0xFFBE6CE8) = 0
getsockopt(110, 65535, 8192, 0xFFBE6DE8, 0xFFBE6DE4, -4296256) = 0
setsockopt(110, 65535, 8192, 0xFFBE6DE8, 4, -4296256) = 0
fcntl(110, F_SETFL, 0x00000082) = 0
read(110, 0x00D5FC00, 8192) Err#11 EAGAIN
fstat64(110, 0xFFBE6CE8) = 0
getsockopt(110, 65535, 8192, 0xFFBE6DE8, 0xFFBE6DE4, 0) = 0
setsockopt(110, 65535, 8192, 0xFFBE6DE8, 4, 0) = 0
fcntl(110, F_SETFL, 0x00000002) = 0
write(110, "0E\0\0\003 u n l o c k ".., 18) = 18
read(110, "03\0\001", 4) = 4
read(110, "\0\0\0", 3) = 3
fstat64(110, 0xFFBE6CE8) = 0
getsockopt(110, 65535, 8192, 0xFFBE6DE8, 0xFFBE6DE4, -4296256) = 0
setsockopt(110, 65535, 8192, 0xFFBE6DE8, 4, -4296256) = 0
fcntl(110, F_SETFL, 0x00000082) = 0
read(110, 0x00D5FC00, 8192) Err#11 EAGAIN
fstat64(110, 0xFFBE6CE8) = 0
getsockopt(110, 65535, 8192, 0xFFBE6DE8, 0xFFBE6DE4, 0) = 0
setsockopt(110, 65535, 8192, 0xFFBE6DE8, 4, 0) = 0
fcntl(110, F_SETFL, 0x00000002) = 0
write(110, " )\0\0\003 l o c k t a".., 45) = 45
read(110, "03\0\001", 4) = 4
read(110, "\0\0\0", 3) = 3
fstat64(110, 0xFFBE6CE8) = 0
getsockopt(110, 65535, 8192, 0xFFBE6DE8, 0xFFBE6DE4, 3827088) = 0
setsockopt(110, 65535, 8192, 0xFFBE6DE8, 4, 3827088) = 0
fcntl(110, F_SETFL, 0x00000082) = 0
read(110, 0x00D5FC00, 8192) Err#11 EAGAIN
fstat64(110, 0xFFBE6CE8) = 0
getsockopt(110, 65535, 8192, 0xFFBE6DE8, 0xFFBE6DE4, 0) = 0
setsockopt(110, 65535, 8192, 0xFFBE6DE8, 4, 0) = 0
fcntl(110, F_SETFL, 0x00000002) = 0
write(110, " 4\0\0\003 S E L E C T ".., 56) = 56
read(110, "01\0\001", 4) = 4
read(110, "01", 1) = 1
read(110, "1A\0\002", 4) = 4
read(110, "07 w o r d u r l07 w o r".., 26) = 26
read(110, "01\0\003", 4) = 4
read(110, "FE", 1) = 1
read(110, "02\0\004", 4) = 4
read(110, "01 5", 2) = 2
read(110, "01\0\005", 4) = 4
read(110, "FE", 1) = 1
fstat64(110, 0xFFBE6CE8) = 0
getsockopt(110, 65535, 8192, 0xFFBE6DE8, 0xFFBE6DE4, -4296256) = 0
setsockopt(110, 65535, 8192, 0xFFBE6DE8, 4, -4296256) = 0
fcntl(110, F_SETFL, 0x00000082) = 0
read(110, 0x00D5FC00, 8192) Err#11 EAGAIN
fstat64(110, 0xFFBE6CE8) = 0
getsockopt(110, 65535, 8192, 0xFFBE6DE8, 0xFFBE6DE4, 0) = 0
setsockopt(110, 65535, 8192, 0xFFBE6DE8, 4, 0) = 0
fcntl(110, F_SETFL, 0x00000002) = 0
write(110, "0E\0\0\003 u n l o c k ".., 18) = 18
read(110, "03\0\001", 4) = 4
read(110, "\0\0\0", 3) = 3
fstat64(110, 0xFFBE6CE8) = 0
getsockopt(110, 65535, 8192, 0xFFBE6DE8, 0xFFBE6DE4, -4296256) = 0
setsockopt(110, 65535, 8192, 0xFFBE6DE8, 4, -4296256) = 0
fcntl(110, F_SETFL, 0x00000082) = 0
read(110, 0x00D5FC00, 8192) Err#11 EAGAIN
fstat64(110, 0xFFBE6CE8) = 0
getsockopt(110, 65535, 8192, 0xFFBE6DE8, 0xFFBE6DE4, 0) = 0
setsockopt(110, 65535, 8192, 0xFFBE6DE8, 4, 0) = 0
fcntl(110, F_SETFL, 0x00000002) = 0
write(110, " )\0\0\003 l o c k t a".., 45) = 45
read(110, "03\0\001", 4) = 4
read(110, "\0\0\0", 3) = 3
fstat64(110, 0xFFBE6CE8) = 0
getsockopt(110, 65535, 8192, 0xFFBE6DE8, 0xFFBE6DE4, 3827072) = 0
setsockopt(110, 65535, 8192, 0xFFBE6DE8, 4, 3827072) = 0
fcntl(110, F_SETFL, 0x00000082) = 0
read(110, 0x00D5FC00, 8192) Err#11 EAGAIN
fstat64(110, 0xFFBE6CE8) = 0
getsockopt(110, 65535, 8192, 0xFFBE6DE8, 0xFFBE6DE4, 0) = 0
setsockopt(110, 65535, 8192, 0xFFBE6DE8, 4, 0) = 0
fcntl(110, F_SETFL, 0x00000002) = 0
write(110, " :\0\0\003 S E L E C T ".., 62) = 62
read(110, "01\0\001", 4) = 4
read(110, "01", 1) = 1
read(110, "1A\0\002", 4) = 4
read(110, "07 w o r d u r l07 w o r".., 26) = 26
read(110, "01\0\003", 4) = 4
read(110, "FE", 1) = 1
read(110, "02\0\004", 4) = 4
read(110, "01 6", 2) = 2
read(110, "01\0\005", 4) = 4
read(110, "FE", 1) = 1
fstat64(110, 0xFFBE6CE8) = 0
getsockopt(110, 65535, 8192, 0xFFBE6DE8, 0xFFBE6DE4, -4296256) = 0
setsockopt(110, 65535, 8192, 0xFFBE6DE8, 4, -4296256) = 0
fcntl(110, F_SETFL, 0x00000082) = 0
read(110, 0x00D5FC00, 8192) Err#11 EAGAIN
fstat64(110, 0xFFBE6CE8) = 0
getsockopt(110, 65535, 8192, 0xFFBE6DE8, 0xFFBE6DE4, 0) = 0
setsockopt(110, 65535, 8192, 0xFFBE6DE8, 4, 0) = 0
fcntl(110, F_SETFL, 0x00000002) = 0
write(110, "0E\0\0\003 u n l o c k ".., 18) = 18
read(110, "03\0\001", 4) = 4
read(110, "\0\0\0", 3) = 3
Incurred fault #5, FLTACCESS %pc = 0x000415C8
siginfo: SIGBUS BUS_ADRALN addr=0xFFBE739E
Received signal #10, SIGBUS [default]
siginfo: SIGBUS BUS_ADRALN addr=0xFFBE739E
*** process killed ***
Let me know if you need more than that.
At 11:59 AM +0300 12/14/01, Kir Kolyshkin wrote:
>Khan Klatt wrote:
>>
>> I am not terribly familiar with these tools. Can you provide me with
>> some basic syntax and usage tips so I can produce output that will be
>> helpful to you?
>
>As for gdb, you basically do the following:
>
>1. Start gdb (by typing gdb and pressing enter;)
>2. in gdb prompt:
>
>(gdb) set env LD_LIBRARY_PATH=/usr/local/lib:/usr/local/mysql/lib/mysql
>(gdb) sbin/index
>.....
><bummm - it crashes>
>.....
>(gdb) backtrace full
><and send the output of this to me>
>
>As for strace, you just run
>strace sbin/index
>instead of just sbin/index
>
>
>>
>> At 11:30 AM +0300 12/14/01, Kir Kolyshkin wrote:
>> >You can use either gdb or strace and try to find a place where it fails.
>> >If you will send the appropriate piece of debugging output, we will try
>> >to find out the problem
>> >
>> >Khan Klatt wrote:
>> >>
>> >> First a description of the problem:
> > >>
>> >> I am trying to start an indexing process and when I run sbin/index,
>> >> the command fails with "Bus Error".
>> >>
>> >> Subsequent attempts with different command line arguments results in
>> >> checking delta files, and then, again, terminating with a "Bus Error".
>> >>
>> >> I believe a Bus Error to be when a program attempts to follow a
>> >> pointer or access a memory location outside of the sandbox the kernel
>> >> has established for the process, which indicates a memory bug in the
>> >> program. Please feel free to correct this assumption.
>> >>
>> >> Problems were initially encountered with 1.2.5, so I upgraded to 1.2.7.
>> >>
>> >> Suggestions and help is appreciated. Here are the details of my
>> >> system/compilation/execution, etc.
>> >>
>> >> % uname -a
>> >> SunOS hostname 5.8 Generic_108528-06 sun4u sparc SUNW,UltraAX-i2
>> >>
>> >> The package was compiled by me, here is what I used to compile (using
>> >> bash as my shell to set env variables):
>> >>
>> >>
>> >>LD_LIBRARY_PATH=/usr/local/lib:/usr/local/mysql/lib/mysql:/usr/local/lib/gcc-lib
>> >> /sparc-sun-solaris2.8/2.95.3 CC=gcc CXX=g++ ./configure
>> >> --with-mysql=/usr/local/
>> >> mysql
>> >>
>> >>LD_LIBRARY_PATH=/usr/local/lib:/usr/local/mysql/lib/mysql:/usr/local/lib/gcc-lib
>> >> /sparc-sun-solaris2.8/2.95.3 CC=gcc CXX=g++ make
>> >>
>> >>LD_LIBRARY_PATH=/usr/local/lib:/usr/local/mysql/lib/mysql:/usr/local/lib/gcc-lib
>> >> /sparc-sun-solaris2.8/2.95.3 CC=gcc CXX=g++ make install
>> >>
>> >> This is the results on index -S:
>> >>
>> >> % LD_LIBRARY_PATH=/usr/local/lib:/usr/local/mysql/lib/mysql
>>sbin/index -S
>> >> Loading configuration from /usr/local/aspseek/etc/db.conf
>> >> Loading configuration from /usr/local/aspseek/etc/ucharset.conf
>> >> Loading configuration from /usr/local/aspseek/etc/stopwords.conf
>> >> Loading configuration from /usr/local/aspseek/etc/aspseek.conf
>> >>
>> >> ASPSeek database statistics
>> >>
>> >> Status Expired Total
>> >> -----------------------------
>> >> 0 701120 701120 Not indexed yet
>> >> 404 1 1 Not found
>> >> -----------------------------
>> >> Total 701121 701121
>> >>
>> >> [From a previous attempt to add some URLs to the db]
>> >>
>> >> So, I assume the next step is to run the index, like so:
>> >>
>> >> % LD_LIBRARY_PATH=/usr/local/lib:/usr/local/mysql/lib/mysql
>>sbin/index -a
>> >> Loading configuration from /usr/local/aspseek/etc/db.conf
>> >> Loading configuration from /usr/local/aspseek/etc/ucharset.conf
>> >> Loading configuration from /usr/local/aspseek/etc/stopwords.conf
>> >> Loading configuration from /usr/local/aspseek/etc/aspseek.conf
>> >> Bus Error
>> >>
>> >> And when I rerun:
>> >>
>> >> % LD_LIBRARY_PATH=/usr/local/lib:/usr/local/mysql/lib/mysql
>>sbin/index -a
>> >> Loading configuration from /usr/local/aspseek/etc/db.conf
>> >> Loading configuration from /usr/local/aspseek/etc/ucharset.conf
>> >> Loading configuration from /usr/local/aspseek/etc/stopwords.conf
>> >> Loading configuration from /usr/local/aspseek/etc/aspseek.conf
>> >> Index has not been stopped safely, checking of delta files will be
>> >> performed now
>> >> Checking delta file: 0...done
>> >> Checking delta file: 1...done
>> >> Checking delta file: 2...done
>> >> Checking delta file: 3...done
>> >> ... [lines omitted]
>> >> Bus Error
>> >>
>> >> Thanks in advance for any help or suggestions.
>> >
>> >--
>> > ICQ 7551596 Phone +7 903 6722750
>> >Hard work may not kill you, but why take chances?
>> >--
>
>--
> ICQ 7551596 Phone +7 903 6722750
>Hard work may not kill you, but why take chances?
>--
|
|
|