Skip to main content.
home | support | download

Back to List Archive

Re: SWISH-E 2.4.4 filters can not locate files

From: Gertjan Hofman <gertjan_hofman(at)not-real.yahoo.com>
Date: Tue Oct 17 2006 - 22:02:27 GMT
Hmmm.... when I use either single or double quotes in
the config file I get a seg fault. The trace back is:
(gdb) where
#0  0xb7ea2320 in free () from
/lib/tls/i686/cmov/libc.so.6
#1  0xb7fb7b97 in efree (ptr=0x73702e65) at mem.c:115
#2  0x0805bc19 in stringQuote (str=0x80fd543 "") at
filter.c:508
#3  0x0805bddc in FilterOpen (fprop=0x80d9980) at
filter.c:442
#4  0x080567f9 in do_index_file (sw=0x80bf008,
fprop=0x80d9980) at index.c:981
#5  0x0804ff06 in printfile (sw=0x80bf008,
filename=<value optimized out>) at fs.c:621
#6  0x08050390 in indexadir (sw=0x80bf008,
dir=0x80d3748 "/data/safe/web/sensor_info")
    at fs.c:661
#7  0x0805af17 in indexpath (sw=0x73702e65, 
    path=0x73702e65 <Address 0x73702e65 out of
bounds>) at file.c:241
#8  0x0804c6fb in cmd_index (sw=0x80bf008,
params=<value optimized out>) at swish.c:1395
#9  0x0804d1bc in main (argc=4, argv=0xbf9eced4) at
swish.c:216


i.e. a problem with stringQuote. I used the original
(2.4.4) version of filter.c, not my own modified one.

Cheers

Gertjan



--- Ludovic Drolez <ldrolez@debian.org> wrote:

> Hi !
> 
> I've made a few tests. Your problem comes from the
> fact that you use "'%p'"
> on your filefilter line. Now you should simply use
> %p :
> 
>    Filefilter .pdf swish_filter.pl %p
> 
> The documentation should be updated...( my fault :-(
> )
> 
> My tests confirms that %p is best. "%p" and '%p'
> seems to work also
> with my test files (files with '"&; spaces and so
> on). But "'%p'" 
> should be avoided.
> 
> Cheers,
> 
> -- 
> Ludovic Drolez.
> 
> http://zaurus.palmopensource.com       - The Zaurus
> Open Source Portal
> http://www.drolez.com      - Personal site - Linux,
> Zaurus and PalmOS stuff
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
Received on Tue Oct 17 15:02:34 2006