From owner-freebsd-questions@freebsd.org Thu Feb 15 07:57:01 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 EF767F04FDC for ; Thu, 15 Feb 2018 07:57:00 +0000 (UTC) (envelope-from michaelsprivate@gmail.com) Received: from mail-qk0-x229.google.com (mail-qk0-x229.google.com [IPv6:2607:f8b0:400d:c09::229]) (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 8976D87C46 for ; Thu, 15 Feb 2018 07:57:00 +0000 (UTC) (envelope-from michaelsprivate@gmail.com) Received: by mail-qk0-x229.google.com with SMTP id i184so18779372qkf.10 for ; Wed, 14 Feb 2018 23:57:00 -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=axW/pC/Lcu8qIpsjBKfwHpMOaQmhuqjCLc32CoEHPTQ=; b=YK9P+98ADaL7BGPfezO8cDGZKAbUaSX8sOZDhbZLdy2GTrwJf8Sj//7crvTChfGAMq 8ECj29/aqzFdYYdWsEYSYKczJPIX0hBiKYNdGPpGdwD8zMoy4pGm67u+5DgqfySkruI4 OU4/sZt6+NZ3U+p+raDgylJyayYOoYOQulMcWLnnyr7Elhqo4CQ7EcfeJCnvVhXft140 iI6yIMbKrmVzg/ljV4ghe6A22t+Hu2MCJAbmXlJ39cLKd61EAzq2Od96U0zBhzqLJoCd Z2Lz7agNAXMsbWAzdHw0Lg5SlJ5nSDhVzBAS8LOHSUzU+e1JEj8mdjTsfxdtBxpGQr3r 42fg== 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=axW/pC/Lcu8qIpsjBKfwHpMOaQmhuqjCLc32CoEHPTQ=; b=cMfZY2Zi3af0BPlo/PU9LpFSjrrUN2+k6YXi9pgZ0SU+8KHgO3plWe4SslV3rQ1tHS rKPBCWuHhAIsb3djGpGGdbnEnAidyCi+lMXF2yf7gx+Jv2MMoDI6HS9ywl3IJKQCGmUH QiqTIRYxd5Wxl3oQ12mLYMoa0QYdBNx5WYrfeL8wzfSJoaf7bmnaSe7bbG83g+EGJZd9 jTh6Ea4bxyh1sOydUWDMZyCsv8qrajPm5ZikGVKB5V6jah4EHTb7eZX9R9JXZ7FNMyaO CHAnNGwBrRFF5vece3ZS1TpJCDB2gPUC6U58QxRig9Mx7tQfj+7Dgzp3CFntblH0OHVb 08RQ== X-Gm-Message-State: APf1xPCFJ+rE2JICAjgm/P8n3MoJARSeZUZ4vqSPjUkUMQ7Q9ojSaJm8 dPiGt8ZoUWROBtxiI5rHwtBjsNYAGqO9UYepbftOhg== X-Google-Smtp-Source: AH8x225yvjY8Cn2TYJxjvh7+29BD54jcYTzBG9DmILQXKCb2HflhlfrirgbM41SF1/H20NkIwDjhsXJSEid34k0Lu30= X-Received: by 10.55.79.68 with SMTP id d65mr2739436qkb.153.1518681420117; Wed, 14 Feb 2018 23:57:00 -0800 (PST) MIME-Version: 1.0 Received: by 10.12.183.136 with HTTP; Wed, 14 Feb 2018 23:56:39 -0800 (PST) In-Reply-To: References: From: Michael Schuster Date: Thu, 15 Feb 2018 08:56:39 +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 07:57:01 -0000 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... HTH Michael > and a tempfile is produced, always same size: > 3017208832 cyrus.squat.NEW > > Same result on 10.3 and 11-STABLE. > > Is there a knob to let squatter have the necessary resource to complete > the indexing? > > Thanks, > > //per > -- Michael Schuster http://recursiveramblings.wordpress.com/ recursion, n: see 'recursion'