[Xapian-discuss] errors with flint database, xapian 1.0.4
Vasiliy Sergeev
vasiliy.sergeev at sibers.com
Wed Jan 9 13:22:41 GMT 2008
Olly Betts wrote:
> On Thu, Dec 27, 2007 at 03:57:38PM +0600, Vasiliy Sergeev wrote:
>
>> My problem with 'segmantation fault' still appears.
>> I tried latest xapian version 1.0.5. Still 'segmentation fault' occurs.
>> in /var/log/messages I found next record:
>> kernel: php[17170] general protection rip:7613cc rsp:7fbfffc430 error:0
>>
>
> We really need more information on where this is happening - a backtrace
> would be ideal.
>
> If you have a core file, feed it to gdb. Or else if the problem can be
> provoked on demand, run php under gdb.
>
> Cheers,
> Olly
>
>
Hello everyone!
I posted php code of the test script in earlier posts. The problem is
the same.
Gdb crushed if I tries to run php script under gdb. So I created core
dump and feed it to gdb as Olly advised.
I attached gdb backtrace.
I don't understand it absolutely. But my worries are about "static npos
= 18446744073709551615" in #1. I think it is the upper limit of long,
right? is it ok?
Please advise.
Thanks,
Vaso.
-------------- next part --------------
[root at DB2 Utils]# gdb php core.26581
GNU gdb Red Hat Linux (6.3.0.0-1.153.el4_6.1rh)
Copyright 2004 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 "x86_64-redhat-linux-gnu"...Using host libthread_db library "/lib64/tls/libthread_db.so.1".
Core was generated by `php -e test.php'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /lib64/libcrypt.so.1...done.
Loaded symbols for /lib64/libcrypt.so.1
Reading symbols from /usr/lib64/libtidy-0.99.so.0...done.
Loaded symbols for /usr/lib64/libtidy-0.99.so.0
Reading symbols from /usr/lib64/libpq.so.3...done.
Loaded symbols for /usr/lib64/libpq.so.3
Reading symbols from /lib64/tls/librt.so.1...done.
Loaded symbols for /lib64/tls/librt.so.1
Reading symbols from /lib64/libresolv.so.2...done.
Loaded symbols for /lib64/libresolv.so.2
Reading symbols from /lib64/tls/libm.so.6...done.
Loaded symbols for /lib64/tls/libm.so.6
Reading symbols from /lib64/libdl.so.2...done.
Loaded symbols for /lib64/libdl.so.2
Reading symbols from /lib64/libnsl.so.1...done.
Loaded symbols for /lib64/libnsl.so.1
Reading symbols from /lib64/tls/libpthread.so.0...done.
Loaded symbols for /lib64/tls/libpthread.so.0
Reading symbols from /usr/lib64/libxml2.so.2...done.
Loaded symbols for /usr/lib64/libxml2.so.2
Reading symbols from /lib64/tls/libc.so.6...done.
Loaded symbols for /lib64/tls/libc.so.6
Reading symbols from /lib64/libssl.so.4...done.
Loaded symbols for /lib64/libssl.so.4
Reading symbols from /lib64/libcrypto.so.4...done.
Loaded symbols for /lib64/libcrypto.so.4
Reading symbols from /usr/lib64/libkrb5.so.3...done.
Loaded symbols for /usr/lib64/libkrb5.so.3
Reading symbols from /lib64/libcom_err.so.2...done.
Loaded symbols for /lib64/libcom_err.so.2
Reading symbols from /lib64/ld-linux-x86-64.so.2...done.
Loaded symbols for /lib64/ld-linux-x86-64.so.2
Reading symbols from /usr/lib64/libz.so.1...done.
Loaded symbols for /usr/lib64/libz.so.1
Reading symbols from /usr/lib64/libgssapi_krb5.so.2...done.
Loaded symbols for /usr/lib64/libgssapi_krb5.so.2
Reading symbols from /usr/lib64/libk5crypto.so.3...done.
Loaded symbols for /usr/lib64/libk5crypto.so.3
Reading symbols from /usr/local/lib/php/extensions/no-debug-non-zts-20060613/xapian.so...done.
Loaded symbols for /usr/local/lib/php/extensions/no-debug-non-zts-20060613/xapian.so
Reading symbols from /usr/local/lib/libxapian.so.15...done.
Loaded symbols for /usr/local/lib/libxapian.so.15
Reading symbols from /usr/lib64/libstdc++.so.6...done.
Loaded symbols for /usr/lib64/libstdc++.so.6
Reading symbols from /lib64/libgcc_s.so.1...done.
Loaded symbols for /lib64/libgcc_s.so.1
#0 deflateReset (strm=0x7fbfffc500) at deflate.c:991
991 deflate.c: No such file or directory.
in deflate.c
(gdb) bt
#0 deflateReset (strm=0x7fbfffc500) at deflate.c:991
#1 0x0000002a98a9362b in FlintTable::add (this=0xc56838, key=@0x7fbfffc6c0, tag=
{static npos = 18446744073709551615, _M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>}, _M_p = 0xc79968 "\001\001\0041000\001"}}, already_compressed=false) at backends/flint/flint_table.cc:1059
#2 0x0000002a98a96eb2 in FlintTermListTable::set_termlist (this=0xc56838, did=1, doc=Variable "doc" is not available.
) at backends/flint/flint_utils.h:407
#3 0x0000002a98a76d18 in FlintWritableDatabase::add_document_ (this=0xc563c0, did=0, document=@0xc576c0) at backends/flint/flint_database.cc:740
#4 0x0000002a98a79079 in FlintWritableDatabase::add_document (this=0x1000000000000, document=@0xfffe) at backends/flint/flint_database.cc:676
#5 0x0000002a98a41124 in Xapian::WritableDatabase::add_document (this=Variable "this" is not available.
) at ./include/xapian/base.h:462
#6 0x0000002a98891e15 in _wrap_WritableDatabase_add_document (ht=2, return_value=0x2a958ea8e8, return_value_ptr=Variable "return_value_ptr" is not available.
) at php5/xapian_wrap.cc:15603
#7 0x000000000068b3be in zend_do_fcall_common_helper_SPEC (execute_data=0x7fbfffcd10) at /root/php-5.2.2/Zend/zend_vm_execute.h:200
#8 0x000000000068a9d1 in execute (op_array=0x2a987e9560) at /root/php-5.2.2/Zend/zend_vm_execute.h:92
#9 0x000000000068acd3 in zend_do_fcall_common_helper_SPEC (execute_data=0x7fbfffd150) at /root/php-5.2.2/Zend/zend_vm_execute.h:234
#10 0x000000000068a9d1 in execute (op_array=0x2a958e5558) at /root/php-5.2.2/Zend/zend_vm_execute.h:92
#11 0x000000000066bf84 in zend_execute_scripts (type=8, retval=Variable "retval" is not available.
) at /root/php-5.2.2/Zend/zend.c:1134
#12 0x0000000000628f8d in php_execute_script (primary_file=0x7fbffff8c0) at /root/php-5.2.2/main/main.c:1794
#13 0x00000000006fb40f in main (argc=3, argv=0x7fbffffa18) at /root/php-5.2.2/sapi/cli/php_cli.c:1130
(gdb) quit
More information about the Xapian-discuss
mailing list