| Anonymous | Login | Signup for a new account | 2010-09-09 14:02 CEST |
| Main | My View | View Issues | Change Log | Roadmap | Docs |
| Viewing Issue Advanced Details [ Jump to Notes ] | [ View Simple ] [ Issue History ] [ Print ] | ||||||||
| ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||
| 0000230 | [Sphinx] general | minor | always | 2008-10-23 16:18 | 2009-03-02 11:07 | ||||
| Reporter | nobleclem | View Status | public | ||||||
| Assigned To | shodan | ||||||||
| Priority | normal | Resolution | fixed | Platform | |||||
| Status | resolved | OS | |||||||
| Projection | none | OS Version | |||||||
| ETA | none | Fixed in Version | Product Version | 0.9.8-release | |||||
| Target Version | Product Build | ||||||||
| Summary | 0000230: Core Dump when index contains odd number of attributes | ||||||||
| Description |
When indexer is ran on an index that has an odd number of attributes a core dump is produced and obviously the index fails. Work around is to add "'0' AS dummy" to the query and set another attribute of "sql_attr_uint = dummy" to index config. Example Setup: sql_query: SELECT id, text, field1, field2, field3 FROM table sql_attr_uint = field1 sql_attr_uint = field2 sql_attr_uint = field3 OS: Solaris 10 |
||||||||
| Steps To Reproduce | |||||||||
| Additional Information |
Command Execution Results: -------------------------- [localhost]$ ./bin/indexer --all -rotate Sphinx 0.9.8-id64-release (r1371) Copyright (c) 2001-2008, Andrew Aksyonoff using config file '/home/sphinx/etc/sphinx.conf'... indexing index 'index1'... Bus Error (core dumped) Pstack Output of core dump -------------------------- [localhost]$ pstack core core 'core' of 25399: ./bin/indexer --all -rotate 0006740c _ZN13CSphIndex_VLN5BuildEP8CSphDictRK10CSphVectorIP10CSphSourceEi11ESphDocinfo (28ddd0, 0, ffbff098, 17, ac53121c, 313d80) + 1d44 0001e600 _Z7DoIndexRK17CSphConfigSectionPKcRK17SmallStringHash_TIS_E (2d07d0, 2cdb48, 14bb78, 28cc30, 28be80, 8209c) + 1ad4 00022bac main (14a000, 69, 14b400, 4, ffbff280, 2cdb48) + 395c 00016074 _start (0, 0, 0, 0, 0, 0) + 5c |
||||||||
| Tags | No tags attached. | ||||||||
| Attached Files | |||||||||
|
|
|||||||||
Notes |
|
|
(0000295) xale (administrator) 2008-10-29 22:09 |
I can't reproduce this so we're going to assume this problem is Solaris-specific. Is it running on SPARC? If you want to help fix this, rebuild Sphinx with debug enabled [*], run indexer under gdb so we can get line number and backtrace. [*] http://www.sphinxsearch.com/doc.html#reporting-bugs [^] |
|
(0000297) nobleclem (reporter) 2008-10-29 22:19 |
Yes we are running on SPARC. Let me see what I can do. We don't have gdb installed so I am going to have to do that first before I can get you more information. I should have some time to do in the next couple of days. I have a FreeBSD server that I will also attempt to see if I can recreate the dump on. Its running Xeon CPU's. |
|
(0000300) nobleclem (reporter) 2008-11-12 04:43 |
Sorry for the delay took some time for the system admins to get gdb installed. I did also test on a couple more systems FreeBSD7 and CentOS4 and was unable to reproduce on those systems. I rebuilt sphinx with debug and surprisingly the error was not reproducible. So I ran it again without debug enabled and here is the gdb as per the documentation. ---- BEGIN $ gdb ./bin/indexer core GNU gdb 6.8 Copyright (C) 2008 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 "sparc-sun-solaris2.10"... Reading symbols from /usr/local/lib/libexpat.so.1...done. Loaded symbols for /usr/local/lib/libexpat.so.1 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 /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/sfw/lib/libgcc_s.so.1...done. Loaded symbols for /usr/sfw/lib/libgcc_s.so.1 Reading symbols from /lib/libc.so.1...done. Loaded symbols for /lib/libc.so.1 Reading symbols from /platform/sun4v/lib/libc_psr.so.1...done. Loaded symbols for /platform/SUNW,Sun-Fire-T1000/lib/libc_psr.so.1 Reading symbols from /lib/nss_files.so.1...done. Loaded symbols for /lib/nss_files.so.1 Reading symbols from /lib/ld.so.1...done. Loaded symbols for /lib/ld.so.1 Core was generated by `./bin/indexer --all'. Program terminated with signal 10, Bus error. [New process 91608 ] #0 CSphIndex_VLN::Build (this=0x2cd170, pDict=0x0, dSources=@0xffbff080, iMemoryLimit=23, eDocinfo=2891125276) at sphinx.h:113 113 inline SphDocID_t & DOCINFO2ID ( const DWORD * pDocinfo ) { return *(SphDocID_t*)pDocinfo; } (gdb) bt #0 CSphIndex_VLN::Build (this=0x2cd170, pDict=0x0, dSources=@0xffbff080, iMemoryLimit=23, eDocinfo=2891125276) at sphinx.h:113 0000001 0x0005a230 in DoIndex (hIndex=@0x2e05d8, sIndexName=0x2dccc0 "lifelonglearning", hSources=@0x1a0a48) at indexer.cpp:816 0000002 0x0005e7dc in main (argc=1680384, argv=0x69) at sphinxstd.h:666 (gdb) quit ----- END |
|
(0000366) shodan (administrator) 2009-03-02 11:07 |
Should be fixed in r1692. (Blind fix) |
| Copyright © 2000 - 2008 Mantis Group |