Received: from mail-ej1-f54.google.com (mail-ej1-f54.google.com [209.85.218.54]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id 87D69782BDA for ; Sun, 10 May 2020 08:10:47 +0000 (UTC) Received: by mail-ej1-f54.google.com with SMTP id e2so5145255eje.13 for ; Sun, 10 May 2020 01:10:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=1XgbjeH14OF14eDhawN4gjWSByY+XEqxL0FgyznKPu4=; b=uyhnkf7gxRH5v/qkvYdi8u9Fj148Z28rtzaNMq4Ez1ap9NzI5/dO/3iT9MKosRDtui 7Pyhm8qxQa2TlsU2pvThjnpRsRnjBf0DLHdgD8EDtkmTAzq70wHFRPXKfhU/HH3tCl7/ zyRAfKHjslYHVhXNUjaOLpaTXQLFjpJs9dTVoCkB/lzRLIRm3xqg9htUCU9kcE8hzLxI z2ec6TGWf8Jb41T8PciBnXLPV4l2F53Vm470aXs/ewg/mphG8vgfd/aJF7lqyqZYKOG7 8A7l+mStUmbcOYjG8ME+6eLt+gS/NQnUaDezbhyW2HNev6gekjlj47Tmbxva8d5oA/16 uwdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=1XgbjeH14OF14eDhawN4gjWSByY+XEqxL0FgyznKPu4=; b=sxnB+eYPrdSSzt3fUliAmHQuzJre22WlKEAZOX1OCQ98P3vunYYD3tfvDm+JEXtik6 t0VPJTSMQtHDXpxPAdKnvB+hOBlAbIbvdIiIhpgvXhfdmGd3bKTiD+dx3PER0BUzP80n 1FE0365sbTKVUbWUOGYm1fY9h9fcIlzB1rD7mqOD2QkibQStJ2Rs+qz2mjz/ZGYCwsMv ixlsVM4oD5Wgg7yIuDi/lpDoH5jR7xW6M8MHV3W4cCvSqbpWhwVF5Maww/oz//QcWh1P Iq6Y2LjH9HVdvPFbf6FpmpIDGu/2HLc8VoV7hGdeL052cvdhWjXrvrd4TS99w+dLyteV lBvQ== X-Gm-Message-State: AGi0PuYncvO5U/Z8qow4FhVeEgtfpOoWDq/tCJ2bvC3Y7fw3f8eBC8Mu LJA/8VHgi4fOyB0LiVKV/X1PxIrD7qoo6yKSi3N+qzKqbCw= X-Google-Smtp-Source: APiQypKXj9P+JYJYwp5rVwvEin8NbArr8m1DEeov9N7FEVIDKeF2g7akOA/xtrG2VQw3ieidCMt6oTK41p8RmNcCcI4= X-Received: by 2002:a17:906:310e:: with SMTP id 14mr8889155ejx.177.1589098245836; Sun, 10 May 2020 01:10:45 -0700 (PDT) MIME-Version: 1.0 References: <20200509130013.09fa5f1e@ncopa-desktop.copa.dup.pw> In-Reply-To: <20200509130013.09fa5f1e@ncopa-desktop.copa.dup.pw> From: Vittorio Mori Date: Sun, 10 May 2020 10:10:37 +0200 Message-ID: Subject: Re: Mbuffer segfaults To: Natanael Copa Cc: alpine-user@lists.alpinelinux.org Content-Type: multipart/alternative; boundary="00000000000074d56105a546c426" --00000000000074d56105a546c426 Content-Type: text/plain; charset="UTF-8" Thanks a lot. The fix was the same as ZPAQ, I added this linker flag line (as per your previous instructions w ZPAQ) to the makefile and it worked: LDFLAGS=-Wl,-z,stack-size=1048576 Il giorno sab 9 mag 2020 alle ore 13:03 Natanael Copa ha scritto: > On Sat, 9 May 2020 00:10:41 +0200 > Vittorio Mori wrote: > > > I'm trying to use mbuffer to speed up ZFS send on my servers. > > > > The package present in edge/testing segfaults. > > > > I tried to compile it from source, same result: segfault. > > > > There's a way to make it work ? Any pointers ? > > Seems like there is a new version (20200505). Have you tried that? > > Otherwise I'd recommend to build it with debugging symbols, run it in > gdb (or generate core dump) and use gdb to generate a backtrace. This > should be reported upstream to mbuffer developer(s). > > Common cases for segfaults are threading applications assumes that > thread stack size is huge, so thats where I'd start. > > Alternatively, you could file an issue with all the details > (architecture, exact version, and how to reproduce) on our bugtracker > and someone with the know how and time can help you. > > https://gitlab.alpinelinux.org/alpine/aports/-/issues > > > -nc > --00000000000074d56105a546c426 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks a lot.

The fix was the same as ZPAQ, I adde= d this linker flag line (as per your previous instructions w ZPAQ) to the m= akefile and it worked:

LDFLAGS=3D-Wl,-z,stack-size=3D1048576=C2=A0
=C2=A0

Il giorno sab 9 mag 2020 alle ore 13:03 Natanael Copa <<= a href=3D"mailto:ncopa@alpinelinux.org">ncopa@alpinelinux.org> ha sc= ritto:
On Sat, 9= May 2020 00:10:41 +0200
Vittorio Mori <vittorio.mori@gmail.com> wrote:

> I'm trying to use mbuffer to speed up ZFS send on my servers.
>
> The package present in edge/testing segfaults.
>
> I tried to compile it from source, same result: segfault.
>
> There's a way to make it work ? Any pointers ?

Seems like there is a new version (20200505). Have you tried that?

Otherwise I'd recommend to build it with debugging symbols, run it in gdb (or generate core dump) and use gdb to generate a backtrace. This
should be reported upstream to mbuffer developer(s).

Common cases for segfaults are threading applications assumes that
thread stack size is huge, so thats where I'd start.

Alternatively, you could file an issue with all the details
(architecture, exact version, and how to reproduce) on our bugtracker
and someone with the know how and time can help you.

https://gitlab.alpinelinux.org/alpine/aports/-/= issues


-nc
--00000000000074d56105a546c426--