From owner-freebsd-questions@freebsd.org Thu Feb 15 09:07:25 2018 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0F709F0A5A6 for ; Thu, 15 Feb 2018 09:07:25 +0000 (UTC) (envelope-from michaelsprivate@gmail.com) Received: from mail-qk0-x232.google.com (mail-qk0-x232.google.com [IPv6:2607:f8b0:400d:c09::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 9FB026BCB6 for ; Thu, 15 Feb 2018 09:07:24 +0000 (UTC) (envelope-from michaelsprivate@gmail.com) Received: by mail-qk0-x232.google.com with SMTP id o7so15643431qkc.1 for ; Thu, 15 Feb 2018 01:07:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=+DbJj2iojOOcolfB0a2v1PsKD1znyquxabGXhpXkUXs=; b=G8ISSBySak9mnufurqRnB0hF5GuruGIEkxBLQHO1cRls4wMOr0Mm4Xm5+y3AwP4skj 6YvBKC7zFqIXpZ922/n+iW8UsnLD3L6AuMBuavAPlZ/CBliKFliZ/ItcpeY7Fv+fK3ZS I82m9CQKLKr3BDrPkpTDM9VSEHYQ9EyHCujqo4vR58W+ErB7Ie7WZyIabHp0EMM4mKKh IcVkIQeDJT8sSgZtmMWJ3fgrmH4pusJ+UwadW13w+3Arh91GPQxXSiJDkPJpHv96wQGo OpUBg9RrBCWBML7790TFbRxnToYT5Dptk1Y1qUvuT5XUEkwvUee+MG3Yxx8QqgJyu05s Y5ow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=+DbJj2iojOOcolfB0a2v1PsKD1znyquxabGXhpXkUXs=; b=ThYKWSPt1Tv/2MYz/9VKSD2cO+yiQUBm71tbdwKmHvd0FVskg5QEtmNKaQAymLaG5W C08Mh4Bgq72/g8M8AWbZPuoCVlfhr4JQVw1EZhuaWC4XCrib7d5pd/Pd9DeBVfKfo8g2 yXV0bCGVwAx8yN+GiNynZm5HGsnOmPbuQlP1zeoux9M+P937cUhEEFSqrFKjxJXl/3+k vr8Z8mG/mvzkdTfpO/XDZfrJLqrKzIaHN7KoLINkM60386JsYHd2CMGEaxcfNgjpFiDJ DQ3DVX2IIdJNc4IkkxyL3V3t9xtnZtBssOGMi4WdDTK+aCBDkj6rzKWRGGJQzzd+epM8 RbYw== X-Gm-Message-State: APf1xPCO0u/a81hSVBWMfJcj2Vd/Tkh32cIhUHicRa7BfRxquA5twGzD CPzDtl58qxlDarUriLBeJgpOJPO1VqnBNbVPFgAeXw== X-Google-Smtp-Source: AH8x227E1bw+7pPDSUvO2Y0c+rAIpcZZQ6N8I2qLONpc4KLF5ZKGJqcQj32VCtUQIGIHf9yM0Z+kPaWfDU5aoErApJo= X-Received: by 10.55.131.69 with SMTP id f66mr3071196qkd.27.1518685644134; Thu, 15 Feb 2018 01:07:24 -0800 (PST) MIME-Version: 1.0 Received: by 10.12.183.136 with HTTP; Thu, 15 Feb 2018 01:07:03 -0800 (PST) In-Reply-To: <71635f3b-0494-1956-fa31-bd8df7b72a93@nethead.se> References: <71635f3b-0494-1956-fa31-bd8df7b72a93@nethead.se> From: Michael Schuster Date: Thu, 15 Feb 2018 10:07:03 +0100 Message-ID: Subject: Re: which limit is hit here? To: Per olof Ljungmark Cc: FreeBSD Mailing List Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Feb 2018 09:07:25 -0000 hmm ... what does gdb's "info shared" print out? On Thu, Feb 15, 2018 at 10:06 AM, Per olof Ljungmark wrote: > On 02/15/18 08:56, Michael Schuster wrote: > > Hi Per, > > > > On Thu, Feb 15, 2018 at 8:41 AM, Per olof Ljungmark > > wrote: > > > > Hi, > > > > A process "squatter" from Cyrus-IMAP version 2.5.11 exits with signal > > 11. The purpose of the process is to create an index of the content > in a > > mailbox. > > > > On large mailboxes, squatter coredumps, the final message from truss > > reads: > > > > mmap(0x0,700448768,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,-1,0x0) > = > > 34783363072 (0x819400000) > > mmap(0x0,936334732,PROT_READ,MAP_SHARED,107,0x0) = 35483811840 > > (0x843000000) > > SIGNAL 11 (SIGSEGV) > > process killed, signal = 11 (core dumped) > > > > > > to me this looks like the error is happening *after* mmap() returned > > successfully - most likely because "someone" miscalculates some pointer > > and tries to access an unmapped address. Maybe (but that's conjecture), > > PROT_READ is wrong here and someone is attempting to write to that > > mapped region; I'm not 100% sure though whether that'd actually trigger > > SIGSEGV. > > > > I'd suggest you do something like > > $ gdb squatter core > > (gdb) bt > > > > and look at the output, and maybe go to the maintainers of Cyrus-IMAP... > > Hi, > > gdb says, > > (gdb) bt > #0 0x00000000004049cc in ?? () > #1 0x0000000803456da4 in ?? () > #2 0x0000000804445130 in ?? () > #3 0x003875e5ffffcb00 in ?? () > #4 0x00000008047e7008 in ?? () > #5 0x00000008047e7048 in ?? () > #6 0x00000001040000c0 in ?? () > #7 0x0000000810800000 in ?? () > #8 0x0000000200000045 in ?? () > #9 0x000000083a400000 in ?? () > #10 0x00000008047e8e98 in ?? () > #11 0x00000000000003bb in ?? () > #12 0x00000008047e8eb8 in ?? () > #13 0x00000000000000bf in ?? () > #14 0x0ffd2a151071e550 in ?? () > #15 0x000000bf00000002 in ?? () > #16 0x37cf558c1298d1e7 in ?? () > #17 0x0135682800000000 in ?? () > #18 0x02e00a0e020d0336 in ?? () > #19 0x0487888c03b90d10 in ?? () > #20 0x062618da0556e126 in ?? () > #21 0x0000000006f31067 in ?? () > #22 0x0000000000000000 in ?? () > -- Michael Schuster http://recursiveramblings.wordpress.com/ recursion, n: see 'recursion'