unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* Segfault when tagging results of to: query 
@ 2019-11-11 19:41 Hugh Williams
  2019-11-12  4:48 ` Suvayu Ali
  0 siblings, 1 reply; 3+ messages in thread
From: Hugh Williams @ 2019-11-11 19:41 UTC (permalink / raw)
  To: notmuch

When trying to tag all messages to a particular address using the query
`notmuch tag +College to:example@example.com` I get a segfault. The
backtrace from gdb is shown below.

```
#0  0x00007ffff78deee4 in  () at /usr/lib/libxapian.so.30
#1  0x00007ffff78e26fe in  () at /usr/lib/libxapian.so.30
#2  0x00007ffff78e90a2 in  () at /usr/lib/libxapian.so.30
#3  0x00007ffff78081f8 in Xapian::Enquire::Internal::get_mset(unsigned int, unsigned int, unsigned int, Xapian::RSet const*, Xapian::MatchDecider const*) const () at /usr/lib/libxapian.so.30
#4  0x00007ffff7808466 in Xapian::Enquire::get_mset(unsigned int, unsigned int, unsigned int, Xapian::RSet const*, Xapian::MatchDecider const*) const () at /usr/lib/libxapian.so.30
#5  0x00007ffff7fb69ca in  () at /usr/lib/libnotmuch.so.5
#6  0x000055555556bca2 in  ()
#7  0x000055555556c21a in  ()
#8  0x000055555555c12c in  ()
#9  0x00007ffff79c9153 in __libc_start_main () at /usr/lib/libc.so.6
#10 0x000055555555c2ee in  ()
```

Thanks,

Hugh

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Segfault when tagging results of to: query
  2019-11-11 19:41 Segfault when tagging results of to: query Hugh Williams
@ 2019-11-12  4:48 ` Suvayu Ali
  2019-11-12 19:46   ` Reto
  0 siblings, 1 reply; 3+ messages in thread
From: Suvayu Ali @ 2019-11-12  4:48 UTC (permalink / raw)
  To: Notmuch list

Hi,

On Mon, Nov 11, 2019 at 8:54 PM Hugh Williams <hugh@hmlw.uk> wrote:
>
> When trying to tag all messages to a particular address using the query
> `notmuch tag +College to:example@example.com` I get a segfault. The
> backtrace from gdb is shown below.
>
> ```
> #0  0x00007ffff78deee4 in  () at /usr/lib/libxapian.so.30
> #1  0x00007ffff78e26fe in  () at /usr/lib/libxapian.so.30
> #2  0x00007ffff78e90a2 in  () at /usr/lib/libxapian.so.30
> #3  0x00007ffff78081f8 in Xapian::Enquire::Internal::get_mset(unsigned int, unsigned int, unsigned int, Xapian::RSet const*, Xapian::MatchDecider const*) const () at /usr/lib/libxapian.so.30
> #4  0x00007ffff7808466 in Xapian::Enquire::get_mset(unsigned int, unsigned int, unsigned int, Xapian::RSet const*, Xapian::MatchDecider const*) const () at /usr/lib/libxapian.so.30
> #5  0x00007ffff7fb69ca in  () at /usr/lib/libnotmuch.so.5
> #6  0x000055555556bca2 in  ()
> #7  0x000055555556c21a in  ()
> #8  0x000055555555c12c in  ()
> #9  0x00007ffff79c9153 in __libc_start_main () at /usr/lib/libc.so.6
> #10 0x000055555555c2ee in  ()
> ```

I see the same issue as well!  I'm on Fedora 30, using the package
available in the repos.
5.1.20-300.fc30.x86_64
notmuch-0.29.1-1.fc30.x86_64

Here's an example stack trace:

Stack trace of thread 26982:
#0  0x00007f6a3f4c42b8 _ZNK14AndNotPostList10get_weightEv (libxapian.so.30)
#1  0x00007f6a3f4c7d06 _ZNK14SelectPostList10get_weightEv (libxapian.so.30)
#2  0x00007f6a3f4cf62a
_ZN10MultiMatch8get_msetEjjjRN6Xapian4MSetERNS0_6Weight8InternalEPKNS0_12MatchDeciderEPKNS0_8KeyMakerE
(libxapian.so.30)
#3  0x00007f6a3f3e50e6
_ZNK6Xapian7Enquire8Internal8get_msetEjjjPKNS_4RSetEPKNS_12MatchDeciderE
(libxapian.so.30)
#4  0x00007f6a3f3e5359
_ZNK6Xapian7Enquire8get_msetEjjjPKNS_4RSetEPKNS_12MatchDeciderE
(libxapian.so.30)
#5  0x00007f6a3f9a6da0 n/a (libnotmuch.so.5)
#6  0x0000000000419468 tag_query (notmuch)
#7  0x00000000004199d2 notmuch_tag_command (notmuch)
#8  0x0000000000409efb main (notmuch)
#9  0x00007f6a3f5b2f43 __libc_start_main (libc.so.6)
#10 0x000000000040a0ae _start (notmuch)

Query that triggered the segfault is: notmuch tag +fedora --
path:Gmail/** and to:lists.fedoraproject.org and is:new

-- 
Suvayu

Open source is the future. It sets us free.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Segfault when tagging results of to: query
  2019-11-12  4:48 ` Suvayu Ali
@ 2019-11-12 19:46   ` Reto
  0 siblings, 0 replies; 3+ messages in thread
From: Reto @ 2019-11-12 19:46 UTC (permalink / raw)
  To: notmuch

That's most probably xapians fault.
Xapian 1.4.13 has a bug in it, there's a patch available but no new version
has been released yet.

You can find the issue here: https://trac.xapian.org/ticket/796#no1

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-11-12 19:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-11-11 19:41 Segfault when tagging results of to: query Hugh Williams
2019-11-12  4:48 ` Suvayu Ali
2019-11-12 19:46   ` Reto

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).