[Dovecot] Problem with fts lucene, on solaris 10
Pigi
pigi at frumar.it
Mon Apr 8 12:19:05 EEST 2013
On Monday 08 April 2013, Timo Sirainen wrote:
> On 8.4.2013, at 11.54, Pigi <pigi at frumar.it> wrote:
>
>
> gdb is just confused. Try another way if it works:
>
> gdb /usr/local/libexec/dovecot/imap 16400
> cont
> bt full
>
>
Timo,
I took a sligtly different approach:
gdb /usr/local/dovecot/libexec/dovecot/indexer-worker `ps -ef | grep indexer-worker | grep -v grep |awk '{print $2}' `
thus attaching to indexer-worker, which I think ( but not sure ) it should be fine.
Here the result:
GNU gdb 6.6
Copyright (C) 2006 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 "sparc-sun-solaris2.10"...
Attaching to program `/usr/local/dovecot/libexec/dovecot/indexer-worker', process 21672
Reading symbols from /usr/local/dovecot/lib/dovecot/libdovecot-storage.so.0...done.
Loaded symbols for /usr/local/dovecot/lib/dovecot/libdovecot-storage.so.0
Reading symbols from /usr/local/dovecot/lib/dovecot/libdovecot.so.0...done.
Loaded symbols for /usr/local/dovecot/lib/dovecot/libdovecot.so.0
Reading symbols from /usr/local/openssl-1.0.1e/lib/libssl.so.1.0.0...done.
Loaded symbols for /usr/local/openssl-1.0.1e/lib//libssl.so.1.0.0
Reading symbols from /usr/local/openssl-1.0.1e/lib/libcrypto.so.1.0.0...done.
Loaded symbols for /usr/local/openssl-1.0.1e/lib//libcrypto.so.1.0.0
Reading symbols from /lib/libdl.so.1...
warning: Lowest section in /lib/libdl.so.1 is .hash at 000000b4
done.
Loaded symbols for /lib/libdl.so.1
Reading symbols from /usr/local/lib/libiconv.so.2...done.
Loaded symbols for /usr/local/lib/libiconv.so.2
Reading symbols from /lib/libnsl.so.1...done.
Loaded symbols for /lib/libnsl.so.1
Reading symbols from /lib/libsocket.so.1...done.
Loaded symbols for /lib/libsocket.so.1
Reading symbols from /lib/librt.so.1...done.
Loaded symbols for /lib/librt.so.1
Reading symbols from /lib/libsendfile.so.1...done.
Loaded symbols for /lib/libsendfile.so.1
Reading symbols from /lib/libc.so.1...done.
Loaded symbols for /lib/libc.so.1
Reading symbols from /usr/sfw/lib/libgcc_s.so.1...done.
Loaded symbols for /usr/sfw/lib/libgcc_s.so.1
Reading symbols from /lib/libaio.so.1...done.
Loaded symbols for /lib/libaio.so.1
Reading symbols from /lib/libmd.so.1...done.
Loaded symbols for /lib/libmd.so.1
Reading symbols from /platform/SUNW,Sun-Fire-V240/lib/libc_psr.so.1...done.
Loaded symbols for /platform/SUNW,Sun-Fire-V240/lib/libc_psr.so.1
Reading symbols from /usr/local/dovecot/lib/dovecot/lib20_fts_plugin.so...done.
Loaded symbols for /usr/local/dovecot/lib/dovecot/lib20_fts_plugin.so
Reading symbols from /lib/libscf.so.1...done.
Loaded symbols for /lib/libscf.so.1
Reading symbols from /lib/libdoor.so.1...done.
Loaded symbols for /lib/libdoor.so.1
Reading symbols from /lib/libuutil.so.1...done.
Loaded symbols for /lib/libuutil.so.1
Reading symbols from /lib/libgen.so.1...done.
Loaded symbols for /lib/libgen.so.1
Reading symbols from /platform/SUNW,Sun-Fire-V240/lib/libmd_psr.so.1...done.
Loaded symbols for /platform/SUNW,Sun-Fire-V240/lib/libmd_psr.so.1
Reading symbols from /lib/libmp.so.2...done.
Loaded symbols for /lib/libmp.so.2
Reading symbols from /usr/local/dovecot/lib/dovecot/lib21_fts_lucene_plugin.so...done.
Loaded symbols for /usr/local/dovecot/lib/dovecot/lib21_fts_lucene_plugin.so
Reading symbols from /usr/local/clucene/lib/libclucene-shared.so.1...done.
Loaded symbols for /usr/local/clucene/lib//libclucene-shared.so.1
Reading symbols from /usr/local/clucene/lib/libclucene-core.so.1...done.
Loaded symbols for /usr/local/clucene/lib//libclucene-core.so.1
Reading symbols from /usr/sfw/lib/libstdc++.so.6...done.
Loaded symbols for /usr/sfw/lib/libstdc++.so.6
Reading symbols from /lib/libm.so.2...done.
Loaded symbols for /lib/libm.so.2
Reading symbols from /usr/lib/libz.so...done.
Loaded symbols for /usr/lib/libz.so
Reading symbols from /lib/ld.so.1...done.
Loaded symbols for /lib/ld.so.1
sol-thread active.
Retry #1:
Retry #2:
Retry #3:
Retry #4:
[New LWP 1 ]
[New Thread 1 (LWP 1)]
Symbols already loaded for /usr/local/dovecot/lib/dovecot/libdovecot-storage.so.0
Symbols already loaded for /usr/local/dovecot/lib/dovecot/libdovecot.so.0
Symbols already loaded for /usr/local/openssl-1.0.1e/lib//libssl.so.1.0.0
Symbols already loaded for /usr/local/openssl-1.0.1e/lib//libcrypto.so.1.0.0
Symbols already loaded for /lib/libdl.so.1
Symbols already loaded for /usr/local/lib/libiconv.so.2
Symbols already loaded for /lib/libnsl.so.1
Symbols already loaded for /lib/libsocket.so.1
Symbols already loaded for /lib/librt.so.1
Symbols already loaded for /lib/libsendfile.so.1
Symbols already loaded for /lib/libc.so.1
Symbols already loaded for /usr/sfw/lib/libgcc_s.so.1
Symbols already loaded for /lib/libaio.so.1
Symbols already loaded for /lib/libmd.so.1
Symbols already loaded for /platform/SUNW,Sun-Fire-V240/lib/libc_psr.so.1
Symbols already loaded for /usr/local/dovecot/lib/dovecot/lib20_fts_plugin.so
Symbols already loaded for /lib/libscf.so.1
Symbols already loaded for /lib/libdoor.so.1
Symbols already loaded for /lib/libuutil.so.1
Symbols already loaded for /lib/libgen.so.1
Symbols already loaded for /platform/SUNW,Sun-Fire-V240/lib/libmd_psr.so.1
Symbols already loaded for /lib/libmp.so.2
Symbols already loaded for /usr/local/dovecot/lib/dovecot/lib21_fts_lucene_plugin.so
Symbols already loaded for /usr/local/clucene/lib//libclucene-shared.so.1
Symbols already loaded for /usr/local/clucene/lib//libclucene-core.so.1
Symbols already loaded for /usr/sfw/lib/libstdc++.so.6
Symbols already loaded for /lib/libm.so.2
Symbols already loaded for /usr/lib/libz.so
Symbols already loaded for /lib/ld.so.1
[Switching to Thread 1 (LWP 1)]
0xfec4c554 in _pread64 () from /lib/libc.so.1
(gdb) cont
Continuing.
Program received signal SIGSEGV, Segmentation fault.
0xfebd65dc in _malloc_unlocked () from /lib/libc.so.1
(gdb) bt full
#0 0xfebd65dc in _malloc_unlocked () from /lib/libc.so.1
No symbol table info available.
#1 0xfebd66e4 in realloc () from /lib/libc.so.1
No symbol table info available.
#2 0xff1d9a70 in pool_system_realloc (pool=0xff21576c, mem=0xff21576c, old_size=0, new_size=8192) at mempool-system.c:115
No locals.
#3 0xff1cda28 in i_realloc (mem=0x0, old_size=0, new_size=8192) at imem.c:14
No locals.
#4 0xff1cf268 in i_stream_grow_buffer (stream=0x1df318, bytes=0) at istream.c:482
old_size = 0
__FUNCTION__ = "i_stream_grow_buffer"
#5 0xff1cf33c in i_stream_get_buffer_space (stream=0x1df318, wanted_size=1, size_r=0xffbff35c) at istream.c:500
__FUNCTION__ = "i_stream_get_buffer_space"
#6 0xff1d11c8 in i_stream_file_read (stream=0x1df318) at istream-file.c:58
size = 89
ret = 1962776
__FUNCTION__ = "i_stream_file_read"
#7 0xff1ce8e4 in i_stream_read (stream=0x1df348) at istream.c:130
_stream = (struct istream_private *) 0x1df318
old_size = 0
ret = 1962824
__FUNCTION__ = "i_stream_read"
#8 0xff1ceb9c in i_stream_read_copy_from_parent (istream=0x0) at istream.c:172
stream = (struct istream_private *) 0x194da8
pos = 0
ret = 0
__FUNCTION__ = "i_stream_read_copy_from_parent"
#9 0xff30e258 in i_stream_mail_read (stream=0x194da8) at istream-mail.c:67
size = 4281606432
ret = 0
#10 0xff1ce9ac in i_stream_read (stream=0x194dd8) at istream.c:130
_stream = (struct istream_private *) 0x194da8
old_size = 0
ret = 1658328
__FUNCTION__ = "i_stream_read"
#11 0xff1cf094 in i_stream_read_data (stream=0x194dd8, data_r=0xffbff614, size_r=0xffbff610, threshold=1) at istream.c:428
ret = -14592148
read_more = false
__FUNCTION__ = "i_stream_read_data"
#12 0xff1ad9e4 in message_parse_header_next (ctx=0x2a0c88, hdr_r=0xffbff694) at message-header-parser.c:89
msg = (const unsigned char *) 0x0
i = 4279949788
size = 0
startpos = 0
colon_pos = 4294967295
parse_size = 1
ret = 1658328
continued = false
continues = false
no_newline = false
crlf_newline = false
__FUNCTION__ = "message_parse_header_next"
#13 0xff1af2a4 in parse_next_header (ctx=0x203cf8, block_r=0xffbff810) at message-parser.c:478
part = (struct message_part *) 0x245c0
hdr = (struct message_header_line *) 0x0
size = 0
ret = 2112760
__FUNCTION__ = "parse_next_header"
#14 0xff1aff10 in message_parser_parse_next_block (ctx=0x203cf8, block_r=0xffbff810) at message-parser.c:784
ret = 2112760
eof = false
full = false
__FUNCTION__ = "message_parser_parse_next_block"
#15 0xfecd5a4c in fts_build_mail (update_ctx=0x818a8, mail=0x7d0b8) at fts-build-mail.c:295
_data_stack_cur_id = 5
#16 0xfecda9cc in fts_mail_precache (_mail=0x7d0b8) at fts-storage.c:443
_data_stack_cur_id = 4
fmail = (struct fts_mail *) 0xfecee4cc
ft = (struct fts_transaction_context *) 0x2bc00
#17 0xff2eff30 in mail_precache (mail=0x7d0b8) at mail.c:281
No locals.
#18 0x00011cd0 in master_connection_input (conn=0x2baa0) at master-connection.c:86
_data_stack_cur_id = 3
line = 0xdea8 <Address 0xdea8 out of bounds>
#19 0xff1d5090 in io_loop_call_io (io=0x30be8) at ioloop.c:379
ioloop = (struct ioloop *) 0x2c8f0
t_id = 2
#20 0xff1d5a9c in io_loop_handler_run (ioloop=0x2c8f0) at ioloop-poll.c:211
ctx = (struct ioloop_handler_context *) 0x2ba60
pollfd = (struct pollfd *) 0x2fc38
tv = {tv_sec = 2147483, tv_usec = 0}
io = (struct io_file *) 0x30be8
msecs = -1
ret = 0
call = true
#21 0xff1d4a84 in io_loop_run (ioloop=0x2c8f0) at ioloop.c:398
No locals.
#22 0xff1bd98c in master_service_run (service=0x2c240, callback=0x117c0 <client_connected>) at master-service.c:544
No locals.
#23 0x000118d8 in main (argc=1, argv=0xffbffde4) at indexer-worker.c:78
storage_service_flags = 547
c = 180800
In case I need to attach to imap, let me know.
Thanks
Pigi
More information about the dovecot
mailing list