- - - - - - - - - - - - - - - - - - - - - - - - - - - -
Name: pantstx
Subject: Indexer is causing a segmentation fault.

It appears that my HTDBDoc query is causing a segmentation fault.  I am not 
getting a core dump and I have not been able to recompile dpsearch with either 
--enable-memdebug or --enable-dmalloc.

If my HTDBDoc query is:

HTDBDoc "SELECT concat('HTTP/1.0 200 OK\\r\\n', 'Content-type: 
text/plain\\r\\n', '\\r\\n', Summary, Title) FROM Data WHERE DataID='$1'"

the indexer runs fine, but if I change it to:

HTDBDoc "SELECT concat('HTTP/1.0 200 OK\\r\\n', 'Content-type: 
text/plain\\r\\n', '\\r\\n', Summary, Title, Content) FROM Data WHERE 
DataID='$1'"

the indexer causes a segmentation fault after indexing ~5 records.  The Content 
field is a mysql text column and contains the majority of the data that I need 
to index.  How can I determine what's causing this problem?  When I attempt to 
recompile with --enable-memdebug or --enable-dmalloc I get the following error:

gcc -DHAVE_CONFIG_H -I. -I. -I../include -I./../include -I/usr/include/mysql 
-DHAVE_PTHREAD -D_REENTRANT -g -O2 -DDPS_CONF_DIR=\"/usr/local/dpsearch/etc\" 
-DDPS_VAR_DIR=\"/usr/local/dpsearch/var\" 
-DDPS_SHARE_DIR=\"/usr/local/dpsearch/share\" -c ef_print.c -MT 
libdpsearch_la-ef_print.lo -MD -MP -MF .deps/libdpsearch_la-ef_print.TPlo  
-fPIC -DPIC -o .libs/libdpsearch_la-ef_print.lo
ef_print.c: In function `EF_Printv':
ef_print.c:134: `char' is promoted to `int' when passed through `...'
ef_print.c:134: (so you should pass `int' not `char' to `va_arg')
make[2]: *** [libdpsearch_la-ef_print.lo] Error 1
make[2]: Leaving directory 
`/home/httpd/sites/pantstx_sites/emonitor/search/dpsearch-4.33/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory 
`/home/httpd/sites/pantstx_sites/emonitor/search/dpsearch-4.33/src'
make: *** [all-recursive] Error 1
- - - - - - - - - - - - - - - - - - - - - - - - - - - -

Read the full topic here:
http://www.dataparksearch.org/cgi-bin/simpleforum.cgi?fid=03;post=

Reply via email to