From owner-freebsd-questions@freebsd.org Thu Feb 15 09:57:07 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 0AB7FF0E1D4 for ; Thu, 15 Feb 2018 09:57:07 +0000 (UTC) (envelope-from michaelsprivate@gmail.com) Received: from mail-qt0-x22b.google.com (mail-qt0-x22b.google.com [IPv6:2607:f8b0:400d:c0d::22b]) (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 99EFF6E583 for ; Thu, 15 Feb 2018 09:57:06 +0000 (UTC) (envelope-from michaelsprivate@gmail.com) Received: by mail-qt0-x22b.google.com with SMTP id q18so11188026qtl.3 for ; Thu, 15 Feb 2018 01:57:06 -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=Ja0Q6bhmVwBbIm8jos1X29/XHKu9bVjv7CbkMblXbLA=; b=avESibIa3x8sW+CQl61kCXUvH8GQQOE6Ec+7hFJrpDFQevhBpv8qYXbjC2ASf+dU6N 758d1pebUTbz6D8Ku6Vmcw2PUwfuX64oNuqOXdrzEygy+Ilm08mLmrDz1H4/TnAAVgXG ufjgzrG9t2B5MuY76Wb9fCCbFxLEXPVTxhviFS546xIDXS9GImK86gkI3NyjrRiXFvvx QbaBhI21FtT/AWkshchN7Vd1zLpdx7VYz27+7KNCp2euERvfhqeMG0FJ1GznUhrCUZZY o5guweJBQMGK4XJtqNpDRh+HxqEdETzKPH/8xnOADyPCH/aWRXeXjWJ00UCqFXxED3Cq CbcA== 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=Ja0Q6bhmVwBbIm8jos1X29/XHKu9bVjv7CbkMblXbLA=; b=gM7vrlt2H6Fe0BvxIu0j8C7Z7kwb0fslsM4oVRH4YWCm/iZUjx1/VVsgC67Ug6qCmz WgGPhUsxJnE5AB8fyMKvoyXnZBea2O2uTjM6erKuY2HPDWYf9vWfmJkwziU63Dt8Eu3R 5BTrSfw6q1oxvH55V9pXgBGVN2VyHhs0qwxOkiXWAyjP30x0hel+njX5ZWgJZqHSklBi fYMnUUu9Y1yIV9u3PMWoKqSaqjk8tdv7yhSz137LVljAYgL+ufJvzcq5nRxL5YMqlHRz G8yft8+AtgBB/CYgHt+ZQkhAKp96BI4EJ1fKIP/PseTmhAlW+DYLtjXz8Rcr/rAKvO0x FTAw== X-Gm-Message-State: APf1xPAgOjscjkH8IOettWpCtgkHi7PygEqMdviybjLewMVYH9yQQ658 o86bsmXRJayxC2nPJGZOtr7PQXrKH8g0QB5sZv9XkA== X-Google-Smtp-Source: AH8x227lWoYlK0M/RNexmcjYUwjlTHsVdhQc+pIM51t+RC8Tv+3e8ldF04WxEq5zF5noMXpi7GlN/fXRxFcFLXnhxRY= X-Received: by 10.200.4.159 with SMTP id s31mr3321309qtg.144.1518688626058; Thu, 15 Feb 2018 01:57:06 -0800 (PST) MIME-Version: 1.0 Received: by 10.12.183.136 with HTTP; Thu, 15 Feb 2018 01:56:45 -0800 (PST) In-Reply-To: <0d45799f-cd71-86e2-9c70-d8da3b64364d@nethead.se> References: <71635f3b-0494-1956-fa31-bd8df7b72a93@nethead.se> <0d45799f-cd71-86e2-9c70-d8da3b64364d@nethead.se> From: Michael Schuster Date: Thu, 15 Feb 2018 10:56:45 +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:57:07 -0000 On Thu, Feb 15, 2018 at 10:54 AM, Per olof Ljungmark wrote: > On 02/15/18 10:31, Michael Schuster wrote: > > > > > > On Thu, Feb 15, 2018 at 10:27 AM, Per olof Ljungmark > > wrote: > > > > > > > > On 02/15/18 10:07, Michael Schuster wrote: > > > hmm ... > > > > > > what does gdb's "info shared" print out? > > > > "No shared libraries loaded at this time." > > > > > > is that really all? > > Yes, that is what is says. > in that case, someone with more intimate knowledge of (and access to) FreeBSD and/or Cyrus-IMAP will have to step in ... sorry :-) Michael > > I'd expect something like this (library names removed by me) - this is > > not on BSD, btw, but I'd expect gdb to behave in a similar fashion: > > > > (gdb) info shared > > From To Syms Read Shared Object Library > > 0x01120000 0x011b090c Yes xxxx > > 0x78a3e000 0x78a64660 Yes (*) xxxxxx > > 0x78317000 0x7831d290 Yes (*) xxxxxx.so > > 0x78087000 0x78087000 No xxxxxxxxxxxx.so.1.1 > > 0x78056000 0x78056000 No xxxxxxxxxx.1.2 > > 0x7801f000 0x7801f000 No xxxxxxxxxxxxso.1.0 > > 0x7800c000 0x7800c000 No xxxxxxxxxx.so.1.0 > > 0x78000000 0x78000000 No xxxxxxxxxxxxxx.so.1.0 > > 0x78017000 0x78017000 No xxxxxxxxx.so.1.0 > > 0x78129000 0x7819f960 Yes xxxxxxso > > 0x78037000 0x78040768 Yes xxxxxxxx.so > > 0x78025000 0x7802f6e0 Yes xxxxxxxxso.2 > > 0x78047000 0x78054970 Yes xxxxxxxxxxx.so > > (*): Shared library is missing debugging information. > > (gdb) > > > > > > > > > > > > > > On Thu, Feb 15, 2018 at 10:06 AM, Per olof Ljungmark < > peo@nethead.se > > > >> wrote: > > > > > > On 02/15/18 08:56, Michael Schuster wrote: > > > > Hi Per, > > > > > > > > On Thu, Feb 15, 2018 at 8:41 AM, Per olof Ljungmark < > peo@nethead.se > > > > > > > > >>> 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' > > > > -- > > Per olof Ljungmark > > +46 707 50 20 46 > > Nethead AB > > Registered in Stockholm, Sweden > > SE556815226701 > > > > > > > > > > -- > > Michael Schuster > > http://recursiveramblings.wordpress.com/ > > recursion, n: see 'recursion' > > -- > Per olof Ljungmark > +46 707 50 20 46 > Nethead AB > Registered in Stockholm, Sweden > SE556815226701 > -- Michael Schuster http://recursiveramblings.wordpress.com/ recursion, n: see 'recursion'