Skip to main content.
home | support | download

Back to List Archive

Bus Error on 32-Bit Solaris 8 when using FileFilter

From: Uwe Helm <digitalenemy(at)not-real.gmail.com>
Date: Thu Nov 30 2006 - 11:50:07 GMT
Hi,

i'm running into a "Bus Error" when trying to index a pdf file with
swish-e 2.4.4. The System is a UltraSparc 5 Workstation with Solaris 8
32-bit and gcc 3.3.2 installed.

As you see in the filter.config below, swish-e scan's a directory and
indexes all files in there. there are a small pdf and the src/index.c
file for testing in this directory. 
if the directive is "IndexOnly c" the indexing works fine. But when
indexing the pdf, it crashes, no matter which program (_pdftohtml.pl or
pdftotext) is used. starting the programs from the command-line works
fine.
i did a gdb backtrace, the problems seems related to memory-allocating
or something, i hope you can figure this out better.


>> running swish-e


root@wrkLTGsun001:~$ swish-e -c filter.config 
Indexing Data Source: "File-System"
Indexing "/export/home/root/blah" 
Checking dir "/export/home/root/blah"...
  test.pdf
Bus Error (core dumped)


>> gdb output


root@wrkLTGsun001:~$ gdb
GNU gdb 6.0
This GDB was configured as "sparc-sun-solaris2.8".
(gdb) file /usr/local/bin/swish-e
Reading symbols from /usr/local/bin/swish-e...(no debugging symbols
found)...done.
(gdb) set args -c /usr/local/bin/filter.config
(gdb) run
Starting program: /usr/local/bin/swish-e -c filter.config
(no debugging symbols found)...(no debugging symbols found)...(no
debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...(no
debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
[New LWP 1]
[New LWP 2]
[New LWP 3]

Indexing Data Source: "File-System"
Indexing "/export/home/root/blah" 
Checking dir "/export/home/root/blah"...
  test.pdf
Program received signal SIGSEGV, Segmentation fault.
0xfedc2c8c in _free_unlocked () from /usr/lib/libc.so.1

(gdb) bt
#0  0xfedc2c8c in _free_unlocked () from /usr/lib/libc.so.1
#1  0xfedc2c44 in free () from /usr/lib/libc.so.1
#2  0x00026438 in filterCallCmdOptParam2 ()
(gdb) q

 
>> filter.config


root@wrkLTGsun001:~$ cat /usr/local/bin/filter.config
IndexReport 4
IndexOnly pdf
# IndexOnly c
IndexDir /export/home/root/blah
#FileFilter .pdf /usr/local/bin/pdftotext
FileFilter .pdf /usr/local/bin/share/doc/swish-e/examples/filter-bin/_pdf2html.pl
# IndexContents XML .pdf


>> gcc (notice that it is compiled against solaris as and ld)


root@wrkLTGsun001:~$ gcc -v
Reading specs
from /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.3.2/specs
Configured with: ../configure --with-as=/usr/ccs/bin/as
--with-ld=/usr/ccs/bin/ld --disable-nls
Thread model: posix
gcc version 3.3.2




thanks, Uwe
Received on Thu Nov 30 03:50:11 2006