[groonga-dev,01714] Re: 仮想メモリサイズを超えるmroongaのインデックス構築について

Back to archive index

Naoya Murakami visio****@gmail*****
2013年 8月 29日 (木) 07:53:21 JST


お世話になっております。村上です。

gdbのバックトレースを取得しました。以下のような出力がされました。
解析できそうでしょうか?

また、groonga.logとgdb出力結果を含むターミナルログをgoogleドライブで共有しました。
全文はこちらをご参照ください。

・ターミナルログ(gdb出力結果)
https://docs.google.com/file/d/0B7YROOOhfA8QWW51RHJFaUY0R28/edit?usp=sharing
・groonga.log
https://docs.google.com/file/d/0B7YROOOhfA8QZHAtYU84WHcwaFE/edit?usp=sharing

クラッシュしているのとは関係ないのかもしれませんが、デバッグレベルでこんなのが
でていたのが少し気になったり。。
2013-08-28 23:28:06.763922|d|f41b0700|[normalizer][mysql-general-ci] failed
to normalize at 3874 byte: ...<0x00 0x00 0x00 0x00 0x00 0x00 0x21 0x2b 0x00
0x00 0x00 0x00>...

<gdb出力結果>
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7ffff41b0700 (LWP 13753)]
0x000000318bc78962 in _int_free () from /lib64/libc.so.6
Missing separate debuginfos, use: debuginfo-install
glibc-2.12-1.107.el6.x86_64 libgcc-4.4.7-3.el6.x86_64
libstdc++-4.4.7-3.el6.x86_64 nss-softokn-freebl-3.12.9-11.el6.x86_64
zlib-1.2.3-29.el6.x86_64
(gdb)
(gdb)  thread apply all backtrace full

Thread 25 (Thread 0x7ffe8cde7700 (LWP 13755)):
#0  0x000000318c00b43c in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib64/libpthread.so.0
No symbol table info available.
#1  0x000000000057d24f in one_thread_per_connection_end(THD*, bool) ()
No symbol table info available.
#2  0x000000000069ea12 in do_handle_one_connection(THD*) ()
No symbol table info available.
#3  0x000000000069eb02 in handle_one_connection ()
No symbol table info available.
#4  0x000000000091d527 in pfs_spawn_thread ()
No symbol table info available.
#5  0x000000318c007851 in start_thread () from /lib64/libpthread.so.0
No symbol table info available.
#6  0x000000318bce890d in clone () from /lib64/libc.so.6
No symbol table info available.

Thread 24 (Thread 0x7ffff41b0700 (LWP 13753)):
#0  0x000000318bc78962 in _int_free () from /lib64/libc.so.6
No symbol table info available.
#1  0x00007ffff6b868f1 in grn_free_default (ctx=0x7ffe74820f60,
ptr=0x7fa505fc9010, file=0x7ffff6d44530 "ii.c",
---Type <return> to continue, or q <return> to quit---
    line=1482, func=<value optimized out>) at ctx.c:2603
        __FUNCTION__ = "grn_free_default"
#2  0x00007ffff6c700d4 in datavec_reset (ctx=0x7ffe74820f60,
dv=0x7ffdf84010b8, dvlen=4, unitsize=18884272,
    totalsize=<value optimized out>) at ii.c:1482
        i = <value optimized out>
        __FUNCTION__ = "datavec_reset"
#3  0x00007ffff6c8de27 in merge_hit_blocks (ctx=0x7ffe74820f60,
ii_buffer=0x7ffdf8400040, tid=291,
    hits=0x7ffdf8f39fd0, nhits=5313) at ii.c:7000
        nrecs = <value optimized out>
        max_size = 2222285475
        flags = 33410
        i = <value optimized out>
        nposts = <value optimized out>
#4  grn_ii_buffer_merge (ctx=0x7ffe74820f60, ii_buffer=0x7ffdf8400040,
tid=291, hits=0x7ffdf8f39fd0, nhits=5313)
    at ii.c:7152
        max_size = 2302781440
        __FUNCTION__ = "grn_ii_buffer_merge"
#5  0x00007ffff6c8fe10 in grn_ii_buffer_commit (ctx=0x7ffe74820f60,
ii_buffer=0x7ffdf8400040) at ii.c:7350
        nrests = 5313
        nhits = <value optimized out>
        i = <value optimized out>
---Type <return> to continue, or q <return> to quit---
        tid = <value optimized out>
        tc = 0x7ffdf8f445e0
        hits = 0x7ffdf8f39fd0
        __FUNCTION__ = "grn_ii_buffer_commit"
#6  0x00007ffff6c906d5 in grn_ii_build (ctx=0x7ffe74820f60, ii=<value
optimized out>,
    sparsity=<value optimized out>) at ii.c:7481
        target = <value optimized out>
        i = <value optimized out>
        ncols = 6
        cols = <value optimized out>
        s = <value optimized out>
        ii_buffer = <value optimized out>
        __FUNCTION__ = "grn_ii_build"
#7  0x00007ffff6bbb18c in build_index (ctx=0x7ffe74820f60, obj=<value
optimized out>,
    type=<value optimized out>, value=<value optimized out>) at db.c:5966
        sparsity = <value optimized out>
        i = <value optimized out>
        ncol = 6
        flags = 49153
        ii = <value optimized out>
        use_grn_ii_build = 1 '\001'
---Type <return> to continue, or q <return> to quit---
        s = <value optimized out>
        src = <value optimized out>
        cp = <value optimized out>
        col = 0x7ffe8941ab00
        target = <value optimized out>
#8  grn_obj_set_info_source_update (ctx=0x7ffe74820f60, obj=<value
optimized out>, type=<value optimized out>,
    value=<value optimized out>) at db.c:6330
        v2 = <value optimized out>
        v = <value optimized out>
        s = <value optimized out>
#9  grn_obj_set_info_source (ctx=0x7ffe74820f60, obj=<value optimized out>,
type=<value optimized out>,
    value=<value optimized out>) at db.c:6350
        rc = GRN_SUCCESS
#10 grn_obj_set_info (ctx=0x7ffe74820f60, obj=<value optimized out>,
type=<value optimized out>,
    value=<value optimized out>) at db.c:6374
        rc = GRN_INVALID_ARGUMENT
        __FUNCTION__ = "grn_obj_set_info"
#11 0x00007ffeca1a2f29 in ha_mroonga::storage_create_index
(this=0x7ffe7481fe10, table=0x7ffff41a7afc,
    grn_table_name=0x7ffe7eb391c0 "1", grn_table=<value optimized out>,
tmp_share=0x7ffe8941a800,
    key_info=0x7ffe74869820, index_tables=0x7ffff41a7cf0,
index_columns=0x7ffff41a7b60, i=37)
    at ha_mroonga.cpp:3447
---Type <return> to continue, or q <return> to quit---
        source_ids = {header = {type = 4 '\004', impl_flags = 0 '\000',
flags = 24, domain = 9}, u = {b = {
              head = 0x15300000152 <Address 0x15300000152 out of bounds>,
              curr = 0x15500000154 <Address 0x15500000154 out of bounds>,
              tail = 0x15700000156 <Address 0x15700000156 out of bounds>},
v = {body = 0x15300000152,
              sections = 0x15500000154, n_sections = 342}}}
        j = <value optimized out>
        n_key_parts = 6
        index_table = 0x7ffe00000006
        column_name_size = -199591216
        index_column_name = <value optimized out>
        error = <value optimized out>
        index_column = 0x7ffe8941a800
        column_name = <value optimized out>
        is_multiple_column_index = false
        index_column_flags = <value optimized out>
#12 0x00007ffeca1adc34 in ha_mroonga::storage_enable_indexes
(this=0x7ffe7481fe10, mode=<value optimized out>)
    at ha_mroonga.cpp:12087
        i = <value optimized out>
        key_info = 0x7ffe748687f0
        mapper = {static default_path_prefix = 0x0, mysql_path_ =
0x7ffe7eb34080 "./uspat_ftext/ftext",
          path_prefix_ = 0x0,
---Type <return> to continue, or q <return> to quit---
          db_path_ = '\000' <repeats 512 times>, "ftext", '\000' <repeats
83 times>,
"r\270\322\366\377\177\000\000\000\000\000\000\000\000\000\000\002\000\000\000C\004\000\000\240\331%`\376\177\000\000\220\031\025\210\376\177\000\000\240\331%`\376\177\000\000@\204\032\364\377\177\000\000\002\000\000\000\000\000\000\000\354?\366\377\177\000\000\200\022\200\217\376\177\000\000\000\000\000\000\001\000\000\000\006\000\000\000\017\000\000\000\020f\263~\376\177\000\000\060o\263~\376\177\000\000\004\000\000\000\351\004\000\000\000\000\000\000\000\000\000\000\240\331%`\376\177\000\000\360\336\004\210\376\177\000\000P\310%`\376\177\000\000\060\202\032\364\377\177\000\000\240\331%`\376\177\000\000\000\335\004\210\376\177\000\000P\310%`\376\177\000\000\060\202\032\364\377\177\000\000\002\000\000\000\000\000\000\000\002\000\000\000\000\000\000\000\266\274\271\366\377\177\000\000\000\000\000\000\000\000\000\000\341'\033\312\376\177",
'\000' <repeats 18 times>..., db_name_ = '\000' <repeats 4095 times>,
          table_name_ = '\000' <repeats 568 times>,
"@\213\270\366\377\177", '\000' <repeats 26 times>"\320,
E?\376\177\000\000\027\000\000\000\000\000\000\000\240\310\022`\376\177\000\000\063\v\226\272\000\000\000\000\027\000\000\000\000\000\000\000\200\260\022`\376\177\000\000\252T\306\366\377\177\000\000U\000\000\000\000\000\000\000
\000\000\210\376\177\000\000\300\022\373k\376\177\000\000\000\000\000h\376\177\000\000@\r\000\000\000\000\000\000\260\354%\002\000\000\000\000\234N?\376\177\000\000\265",
'\000' <repeats 15 times>"\320,
E?\376\177\000\000\200\260\022`\376\177\000\000\\\201\306\366\377\177\000\000\377\017\000\000\000\000\000\000\000@",
'\000' <repeats 14 times>,
"3\v\226\272\377\177\000\000\004\000\000\000\000\000\000\000
\000\000\000?\245/\027\000\000\000\063\v\226\272
\035\370\366\377\177\000\000\027\000\000\000\000\000\000\000\240\310\022`\376\177\000\000\220\355%\002\000\000\000\000"...,

          mysql_table_name_ = '\000' <repeats 24 times>,
"P\304\032\364\377\177\000\000\020\301V\002\000\000\000\000\344\341\020u\376\177\000\000\330\341\020u\376\177\000\000`\277%`\376\177\000\000\020\310\032\364\377\177\000\000\301*s\000\000\000\000\000\337\307\032\364\377\177",
'\000' <repeats 202 times>"\330, \331V\002", '\000' <repe---Type <return>
to continue, or q <return> to quit---
ats 420 times>, "@\213\270\366\377\177", '\000' <repeats 26 times>"\330,
@?\376\177\000\000\027\000\000\000\000\000\000\000\320\001\212q\376\177\000\000\061\017\226\272\000\000\000\000\027\000\000\000\000\000\000\000\360\230\fq\376\177\000\000\252T\306\366\377\177\000\000\200\000\000\000\000\000\000\000\t\000\000\000\000\000\000\000\a\000\000\000\000\000\000\000
\035\370\366\377\177\000\000\360\230\fq\376\177\000\000\260\354%\002\000\000\000\000\000$?\376\177\000\000\200",
'\000' <repeats 15 times>"\330,
@?\376\177\000\000\360\230\fq\376\177\000\000\\\201\306\366\377\177\000\000\n\000\000\000\000\000\000\000\207"...}
        index_tables = 0x7ffff41a7cf0
        skip_unique_key = true
        error = <value optimized out>
        n_keys = 47
        index_columns = 0x7ffff41a7b60
        have_multiple_column_index = <value optimized out>
#13 0x00000000007232c4 in mysql_alter_table(THD*, char*, char*,
st_ha_create_information*, TABLE_LIST*, Alter_info*, unsigned int,
st_order*, bool) ()
No symbol table info available.
#14 0x00000000008161ec in Sql_cmd_alter_table::execute(THD*) ()
No symbol table info available.
#15 0x00000000006d1331 in mysql_execute_command(THD*) ()
No symbol table info available.
#16 0x00000000006d4637 in mysql_parse(THD*, char*, unsigned int,
Parser_state*) ()
No symbol table info available.
---Type <return> to continue, or q <return> to quit---
#17 0x00000000006d5894 in dispatch_command(enum_server_command, THD*,
char*, unsigned int) ()
No symbol table info available.
#18 0x000000000069e9cd in do_handle_one_connection(THD*) ()
No symbol table info available.
#19 0x000000000069eb02 in handle_one_connection ()
No symbol table info available.
#20 0x000000000091d527 in pfs_spawn_thread ()
No symbol table info available.
#21 0x000000318c007851 in start_thread () from /lib64/libpthread.so.0
No symbol table info available.
#22 0x000000318bce890d in clone () from /lib64/libc.so.6
No symbol table info available.

Thread 23 (Thread 0x7ffff41f1700 (LWP 13699)):
#0  0x000000318c00f2a5 in sigwait () from /lib64/libpthread.so.0
No symbol table info available.
#1  0x000000000057c443 in signal_hand ()
No symbol table info available.
#2  0x000000000091d527 in pfs_spawn_thread ()
No symbol table info available.
#3  0x000000318c007851 in start_thread () from /lib64/libpthread.so.0
---Type <return> to continue, or q <return> to quit---
No symbol table info available.
#4  0x000000318bce890d in clone () from /lib64/libc.so.6
No symbol table info available.

以下同様のメッセージがThread1まで続く。

以上、よろしくお願いします。



groonga-dev メーリングリストの案内
Back to archive index