Author: Ben
Email: [EMAIL PROTECTED]
Message:
Just trying out mnogosearch for the first time, having some difficulty. Got it built
(3.1.19/MySQL), trying to use the htdb stuff (which looks wicked cool, just what I
want...). I based my conf on the sample, when I run indexer I get:
$ ../sbin/indexer -am
Indexer[22606]: indexer from mnogosearch-3.1.19/MySQL started with
'/usr/local/mnogosearch/etc/indexer.conf'
Indexer[22606]: [1] htdb:/1/
Segmentation fault
No core file is created (that I could find), but GDB says (after a quick "indexer -C"
to reset everything):
$ gdb ../sbin/indexer
GNU gdb 19990928
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu"...
(gdb) run
Starting program: /usr/local/mnogosearch/etc/../sbin/indexer
Indexer[22462]: indexer from mnogosearch-3.1.19/MySQL started with
'/usr/local/mnogosearch/etc/indexer.conf'
Indexer[22462]: [1] htdb:/1/
Program received signal SIGSEGV, Segmentation fault.
0x4009c165 in mempcpy () from /lib/libc.so.6
(gdb) bt
#0 0x4009c165 in mempcpy () from /lib/libc.so.6
#1 0x40093b37 in _IO_default_xsputn () from /lib/libc.so.6
#2 0x40084569 in vfprintf () from /lib/libc.so.6
#3 0x4009059c in vsprintf () from /lib/libc.so.6
#4 0x4008adc5 in sprintf () from /lib/libc.so.6
#5 0x8057d94 in UdmHTDBGet (Indexer=0x809b600, path=0xbfffcc97 "/1/",
filename=0xbfffcd16 "",
htdb_list=0x80997c0 "SELECT
CONCAT(\"http://www.prince.org/msg/thread.html?jpid=\", postid) FROM msg_posts",
htdb_doc=0x8099818 "SELECT CONCAT( 'HTTP/1.0 200 OK\\\\r\\\\n','Content-type:
text/html\\\\r\\\\n','Last-Modified: ',DATE_FORMAT(FROM_UNIXTIME(post_date), '%a, %d
%b %Y %T'),' GMT\\\\r\\\\n','\\\\r\\\\n','<HTML><HEAD>','<TITLE>',title,'"...) at
sql.c:4442
#6 0x804c54e in UdmIndexNextURL (Indexer=0x809b600, index_flags=4) at indexer.c:645
#7 0x804a4b7 in thread_main (arg=0x0) at main.c:256
#8 0x804adf2 in main (argc=1, argv=0xbffffb48) at main.c:598
(gdb)
Since it looks like it's somewhere in the formatting, I'll include my config:
DBAddr mysql://indexer:nopw@localhost/testdb/
DBMode single
# List which will be gererated for "htdb:/" URL
HTDBList SELECT CONCAT("http://www.prince.org/msg/thread.html?jpid=", postid) FROM
msg_posts
# Documents which will be generated for each "htdb:/XXX" documents
# where XXX is 'messages' table PRIMARY KEY value.
# '<META NAME="Description" Content="',username,' ',urlname,' ',url,'">',\
HTDBDoc \
SELECT CONCAT( \
'HTTP/1.0 200 OK\\r\\n',\
'Content-type: text/html\\r\\n',\
'Last-Modified: ',DATE_FORMAT(FROM_UNIXTIME(post_date), '%a, %d %b %Y %T'),'
GMT\\r\\n',\
'\\r\\n',\
'<HTML><HEAD>',\
'<TITLE>',title,'</TITLE>',\
'</HEAD>\\n',\
'<BODY>\\n',body,'\\n</BODY></HTML>'\
) \
FROM msg_posts, msg_bodies \
WHERE msg_posts.postid=msg_bodies.postid AND msg_bodies.postid='$1'
# Add HTDBList to generate a list of messages:
Server htdb:/1/
# Add messages:
Realm http://www.testsite.com/msg/thread.html?id=*
# Add messages URL translation:
# http://search.mnogo.ru/board/message.php?id=XXX -> htdb:/XXX
Alias http://www.testsite.com/msg/thread.html?id= htdb:/1/
Servers htdb:/1/
--- 8< ---- cut here
Any ideas?
Reply: <http://www.mnogosearch.org/board/message.php?id=4508>
___________________________________________
If you want to unsubscribe send "unsubscribe general"
to [EMAIL PROTECTED]