lxr.kde.org: kf5-qt5 general search crashes Glimpse
Closed, ResolvedPublic

Description

When trying to do a general search using the kf5-qt5 branch in LXR (by entering something like "kde_install_mandir" into the "Or containing field", not the "Files Named" one, I always get the following error message:

Unexpected return value 134 from Glimpse (usually means syntax error)
can't open glimpse partition-table /home/lxr/glimpse-db/kf5-qt5/.glimpse_partitions
(use -H to specify an index-directory or run glimpseindex to make an index)

*** Error in `/home/lxr/inst/bin/glimpse': double free or corruption (top): 0x0000000001360ea0 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x77725)[0x7f92a352c725]
/lib/x86_64-linux-gnu/libc.so.6(+0x7ff4a)[0x7f92a3534f4a]
/lib/x86_64-linux-gnu/libc.so.6(cfree+0x4c)[0x7f92a3538abc]
/lib/x86_64-linux-gnu/libc.so.6(fclose+0x103)[0x7f92a3522313]
/home/lxr/inst/bin/glimpse[0x405c33]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0)[0x7f92a34d5830]
/home/lxr/inst/bin/glimpse[0x401c79]

======= Memory map: ========
00400000-00460000 r-xp 00000000 fc:03 10880355 /home/lxr/inst/bin/glimpse
0065f000-00660000 r--p 0005f000 fc:03 10880355 /home/lxr/inst/bin/glimpse
00660000-00661000 rw-p 00060000 fc:03 10880355 /home/lxr/inst/bin/glimpse
00661000-008f1000 rw-p 00000000 00:00 0
0135a000-0137b000 rw-p 00000000 00:00 0 [heap]
7f929c000000-7f929c021000 rw-p 00000000 00:00 0
7f929c021000-7f92a0000000 ---p 00000000 00:00 0
7f92a329f000-7f92a32b5000 r-xp 00000000 fc:03 10226063 /lib/x86_64-linux-gnu/libgcc_s.so.1
7f92a32b5000-7f92a34b4000 ---p 00016000 fc:03 10226063 /lib/x86_64-linux-gnu/libgcc_s.so.1
7f92a34b4000-7f92a34b5000 rw-p 00015000 fc:03 10226063 /lib/x86_64-linux-gnu/libgcc_s.so.1
7f92a34b5000-7f92a3675000 r-xp 00000000 fc:03 10226049 /lib/x86_64-linux-gnu/libc-2.23.so
7f92a3675000-7f92a3874000 ---p 001c0000 fc:03 10226049 /lib/x86_64-linux-gnu/libc-2.23.so
7f92a3874000-7f92a3878000 r--p 001bf000 fc:03 10226049 /lib/x86_64-linux-gnu/libc-2.23.so
7f92a3878000-7f92a387a000 rw-p 001c3000 fc:03 10226049 /lib/x86_64-linux-gnu/libc-2.23.so
7f92a387a000-7f92a387e000 rw-p 00000000 00:00 0
7f92a387e000-7f92a3881000 r-xp 00000000 fc:03 10226057 /lib/x86_64-linux-gnu/libdl-2.23.so
7f92a3881000-7f92a3a80000 ---p 00003000 fc:03 10226057 /lib/x86_64-linux-gnu/libdl-2.23.so
7f92a3a80000-7f92a3a81000 r--p 00002000 fc:03 10226057 /lib/x86_64-linux-gnu/libdl-2.23.so
7f92a3a81000-7f92a3a82000 rw-p 00003000 fc:03 10226057 /lib/x86_64-linux-gnu/libdl-2.23.so
7f92a3a82000-7f92a3aa8000 r-xp 00000000 fc:03 10226009 /lib/x86_64-linux-gnu/ld-2.23.so
7f92a3c9c000-7f92a3c9f000 rw-p 00000000 00:00 0
7f92a3ca4000-7f92a3ca7000 rw-p 00000000 00:00 0
7f92a3ca7000-7f92a3ca8000 r--p 00025000 fc:03 10226009 /lib/x86_64-linux-gnu/ld-2.23.so
7f92a3ca8000-7f92a3ca9000 rw-p 00026000 fc:03 10226009 /lib/x86_64-linux-gnu/ld-2.23.so
7f92a3ca9000-7f92a3caa000 rw-p 00000000 00:00 0
7ffc87ca9000-7ffc87cca000 rw-p 00000000 00:00 0 [stack]
7ffc87dab000-7ffc87dad000 r--p 00000000 00:00 0 [vvar]
7ffc87dad000-7ffc87daf000 r-xp 00000000 00:00 0 [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]
Aborted
rakuco created this task.Aug 21 2016, 10:28 AM
Restricted Application added a subscriber: sysadmin. · View Herald TranscriptAug 21 2016, 10:28 AM

David, any idea what Glimpse is complaining about there with the partition table error?

Oh, hmm, this is probably happening when glimpse is re-indexing, I remember this from my own use of glimpse; this didn't happen with swish-e. We should let glimpse work on a copy. I'll discuss this with the lxr author, we're already discussing many on-going topics about lxr.

bcooksley changed the visibility from "Custom Policy" to "Public (No Login Required)".Sep 13 2016, 7:35 AM
bcooksley added a subscriber: mart.

Making this task public, we're receiving increasing numbers of reports regarding this issue.

dfaure closed this task as Resolved.Sep 18 2016, 10:00 AM
dfaure claimed this task.

A fix has now been integrated into lxr git upstream and I have updated the checkout on lxr.kde.org.

Please reopen if you still hit issues from today onwards.