Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@hiroyuki-sato
Created September 9, 2015 11:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hiroyuki-sato/a5979362d7194caecc02 to your computer and use it in GitHub Desktop.
Save hiroyuki-sato/a5979362d7194caecc02 to your computer and use it in GitHub Desktop.
groonga segfault
Groonga 5.0.6
Scientific Linux 6 x86_64
% gdb /usr/bin/groonga -c core.28484 bt
Excess command line arguments ignored. (bt)
GNU gdb (GDB) Red Hat Enterprise Linux (7.2-60.el6_4.1)
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/groonga...Reading symbols from /usr/lib/debug/usr/bin/groonga.debug...done.
done.
[New Thread 28513]
[New Thread 28484]
Missing separate debuginfo for
Try: yum --disablerepo='*' --enablerepo='*-debug*' install /usr/lib/debug/.build-id/d6/c129cc385340a2e2c512f3c6c189704197e3ab
Reading symbols from /usr/lib64/libgroonga.so.0.0.0...Reading symbols from /usr/lib/debug/usr/lib64/libgroonga.so.0.0.0.debug...done.
done.
Loaded symbols for /usr/lib64/libgroonga.so.0.0.0
Reading symbols from /lib64/libz.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib64/libz.so.1
Reading symbols from /lib64/libdl.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib64/libdl.so.2
Reading symbols from /lib64/librt.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib64/librt.so.1
Reading symbols from /usr/lib64/libstdc++.so.6...(no debugging symbols found)...done.
Loaded symbols for /usr/lib64/libstdc++.so.6
Reading symbols from /lib64/libm.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib64/libm.so.6
Reading symbols from /lib64/libgcc_s.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib64/libgcc_s.so.1
Reading symbols from /lib64/libc.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib64/libc.so.6
Reading symbols from /lib64/libpthread.so.0...(no debugging symbols found)...done.
[Thread debugging using libthread_db enabled]
Loaded symbols for /lib64/libpthread.so.0
Reading symbols from /lib64/ld-linux-x86-64.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib64/ld-linux-x86-64.so.2
Reading symbols from /lib64/libnss_files.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib64/libnss_files.so.2
Reading symbols from /lib64/libnss_dns.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib64/libnss_dns.so.2
Reading symbols from /lib64/libresolv.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib64/libresolv.so.2
Core was generated by `/usr/bin/groonga -s --log-level debug --log-path /home/arch_apps/archx/nritv/gr'.
Program terminated with signal 6, Aborted.
#0 0x0000003ffb6328a5 in raise () 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 zlib-1.2.3-29.el6.x86_64
(gdb) bt
#0 0x0000003ffb6328a5 in raise () from /lib64/libc.so.6
#1 0x0000003ffb634085 in abort () from /lib64/libc.so.6
#2 0x00007f931574ce8e in segv_handler (signal_number=<value optimized out>,
info=<value optimized out>, context=<value optimized out>) at ctx.c:2612
#3 <signal handler called>
#4 grn_pat_scan (ctx=0x7f930da60d10, pat=0x0,
str=0x7f9308286ab0 "..."..., str_len=12, sh=0x7f930da45de0, sh_size=1024,
rest=0x7f930da48de8) at pat.c:1558
#5 0x00007f93158e6b8a in grn_pat_tag_keys (ctx=0x7f930da60d10, keywords=0x0,
string=0x7f9308286ab0 ".."..., string_length=12, open_tags=0x7f930da48ea0,
open_tag_lengths=0x7f930da48ec0, close_tags=0x7f930da48e90,
close_tag_lengths=0x7f930da48eb0, n_tags=1, highlighted=0x7f9308271990,
use_html_escape=1 '\001') at proc.c:5995
#6 0x00007f93158e7a62 in func_highlight_html (ctx=0x7f930da60d10,
nargs=<value optimized out>, args=<value optimized out>,
user_data=0x7f930da48f20) at proc.c:6097
#7 0x00007f9315799518 in grn_proc_call (ctx=0x7f930da60d10, proc=0x1be0520,
nargs=1, caller=0x7f930816a620) at expr.c:1272
#8 0x00007f93157b7f37 in grn_expr_exec (ctx=0x7f930da60d10,
expr=0x7f930816a620, nargs=0) at expr.c:2442
#9 0x00007f93158ce25d in grn_output_table_record_by_expression (
ctx=0x7f930da60d10, outbuf=0x7f9308026660, output_type=GRN_CONTENT_JSON,
table=<value optimized out>, format=0x7f930da4ba10) at output.c:1332
#10 grn_output_table_records_by_expression (ctx=0x7f930da60d10,
outbuf=0x7f9308026660, output_type=GRN_CONTENT_JSON,
table=<value optimized out>, format=0x7f930da4ba10) at output.c:1385
---Type <return> to continue, or q <return> to quit---
#11 grn_output_table_records (ctx=0x7f930da60d10, outbuf=0x7f9308026660,
output_type=GRN_CONTENT_JSON, table=<value optimized out>,
format=0x7f930da4ba10) at output.c:1431
#12 0x00007f93158cb8c1 in grn_output_table (ctx=0x7f930da60d10,
outbuf=0x7f9308026660, output_type=GRN_CONTENT_JSON, obj=0x7f930816a320,
format=<value optimized out>) at output.c:1461
#13 grn_output_obj (ctx=0x7f930da60d10, outbuf=0x7f9308026660,
output_type=GRN_CONTENT_JSON, obj=0x7f930816a320,
format=<value optimized out>) at output.c:1512
#14 0x00007f93158e3ddb in grn_select_output_columns (ctx=0x7f930da60d10,
res=0x7f930816a320, n_hits=<value optimized out>,
offset=<value optimized out>, limit=<value optimized out>,
columns=<value optimized out>, columns_len=175, condition=0x7f93081425a0)
at proc.c:577
#15 0x00007f93158fc6a1 in grn_select (ctx=<value optimized out>,
table=0x7f930cc50001 "", table_len=1,
match_columns=0x7f93080fe4c0 "subject_content,headline,program\n",
match_columns_len=0, query=<value optimized out>,
query_len=<value optimized out>,
filter=0x7f93080fd4b0 "program_start_time >= 1438354800 && program_start_time <= 1441738799?", filter_len=68, scorer=0x7f930cc5c138 "", scorer_len=0,
sortby=0x7f93081588a0 "program_start_time,station,subject_start_time",
sortby_len=45,
---Type <return> to continue, or q <return> to quit---
output_columns=0x7f9308156880 "station,highlight_html(headline),highlight_html(program),program_time,program_start_time,subject_start_time,subject_start_time_str,subject_time,highlight_html(subject_content)", output_columns_len=175,
offset=0, limit=979, drilldowns=0x7f930da5cf10, n_drilldowns=0,
cache=0x7f930cc5c338 "", cache_len=0,
match_escalation_threshold=0x7f930cc5c400 "",
match_escalation_threshold_len=0, query_expander=0x7f930cc5c490 "",
query_expander_len=0, query_flags=<value optimized out>,
query_flags_len=0, adjuster=0x7f930cc5c4c0 "", adjuster_len=0)
at proc.c:1181
#16 0x00007f93158fdd7f in proc_select (ctx=0x7f930da60d10,
nargs=<value optimized out>, args=<value optimized out>,
user_data=0x7f930da5e310) at proc.c:1350
#17 0x00007f9315799518 in grn_proc_call (ctx=0x7f930da60d10, proc=0x1b98ae0,
nargs=0, caller=0x1b98ae0) at expr.c:1272
#18 0x00007f931574be11 in grn_command_run (ctx=0x7f930da60d10,
command=<value optimized out>, input=<value optimized out>)
at command.c:194
#19 0x00007f93157a92d1 in grn_expr_exec (ctx=0x7f930da60d10, expr=0x1b98ae0,
nargs=0) at expr.c:2359
#20 0x00007f931575244d in grn_ctx_qe_exec_uri (ctx=0x7f930da60d10,
path=<value optimized out>, path_len=<value optimized out>) at ctx.c:1380
#21 0x00007f9315753417 in grn_ctx_send (ctx=0x7f930da60d10,
---Type <return> to continue, or q <return> to quit---
str=0x1b1f894 "/d/select?"..., str_len=591,
flags=0) at ctx.c:1572
#22 0x0000000000407793 in do_htreq_get (arg=<value optimized out>)
at groonga.c:1019
#23 do_htreq (arg=<value optimized out>) at groonga.c:1332
#24 h_worker (arg=<value optimized out>) at groonga.c:1962
#25 0x0000003ffba07851 in start_thread () from /lib64/libpthread.so.0
#26 0x0000003ffb6e890d in clone () from /lib64/libc.so.6
(gdb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment