Received: from mail-io1-f65.google.com (mail-io1-f65.google.com [209.85.166.65]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id 008A7782BBA for ; Fri, 19 Jul 2019 07:40:22 +0000 (UTC) Received: by mail-io1-f65.google.com with SMTP id f4so56515902ioh.6 for ; Fri, 19 Jul 2019 00:40:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=8SdeWZTSgC4DgeTglN53rxPWklhH8VCOH3AXZuDpETU=; b=gqSXgjL3aY8flX0zbgJfNcD1YjAyYp8D7bAdNmvxzQd5fAEXOw0aP9TT8KtrQgKVB4 ep1SZNsBwRxiQzMaS/4i83sF25w+2GTtp/S8g/vROIVEVQvdPcEkVY2KI9kp0ou1hGoJ ccr+0P8gvAGGLYkNWCWXEgYZ3aR5khWQKyEbbBmb3CRHFnjS7nhrGIfC1+wbhFRp3x9e ToEfHPcXKKmv2XLwjFXjaCCdXwQvMEPkEiIG+vBvoarc14Yf1QcnSIKcF7/ShkSELBSX rEDxucXTco3reX67R0AL0R1L5CKWqlGwDS7Qq0FSiV4Z+8hYm1x4NNQPCbEhehYOhkjC xBKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=8SdeWZTSgC4DgeTglN53rxPWklhH8VCOH3AXZuDpETU=; b=aYUPbcRm9Iwpzy15NKc2OiZr1esW9Nl2UwqMvI9n6aKO1lcqc3XJ0sTZVAdLW4V9qr /U2FncKxD+5jmgF5jUR746IXrmEWQ4Lr5RpSVvbs8a2aMXi+67m+735lksHfM/O3NEM4 sYuMx/7FFmb/Br7DswR4OF/2sEidU8fqYE1nO23KqnM5mFyanEgvwTPU3UE0FGeJ5Sp5 xeLaY444en/TEo9fMCxgytaSPfrkbDXkr2cg8EjzBRcpwb5xlwGaSO8sPaAh8o+rEMNR IMxJznwoCjuHHRBgaHRROPP7NzrSM2L88cewrnhdQC2e+5dM9Fv+/RjtAfHbSYaaTi9M ObtQ== X-Gm-Message-State: APjAAAWRVwRA9jPaTxLBz52yiEfoBxv7+EkE5I7FbvG+WDvjqCTCL1QR PJk81trqtDGFsjQe4cZxEUQBNtF6W55OdllcuH49t2hP X-Google-Smtp-Source: =?utf-8?q?APXvYqxiOozucs3+Ue9D6R7DdR3bQNDB3V2f2FaPZMJX?= =?utf-8?q?DJw9xs/9HADv3ec20KFFXqSQWLK2R7QcRtPqPJeDU8/+DE4=3D?= X-Received: by 2002:a6b:d008:: with SMTP id x8mr45630911ioa.129.1563522021783; Fri, 19 Jul 2019 00:40:21 -0700 (PDT) MIME-Version: 1.0 From: Vittorio Mori Date: Fri, 19 Jul 2019 09:40:13 +0200 Message-ID: Subject: ZPAQ compiles but segfaults at pthread() with musl To: alpine-user@lists.alpinelinux.org Content-Type: text/plain; charset="UTF-8" Hello everyone. I have an issue compiling the ZPAQ compressor/archive utility from Matt Mahoney. It seems there are problems with pthread() function: the program compiles correctly, but segfaults at some point. This is what I get from GDB: Starting program: /root/zpaq a test / zpaq v7.15 journaling archiver, compiled May 3 2019 test.zpaq: 0 versions, 0 files, 0 fragments, 0.000000 MB Updating test.zpaq at offset 0 + 0 Adding 1326.112348 MB in 42966 files -method 14 -threads 1 at 2019-05-03 12:12:34. [New LWP 2317] [New LWP 2318] 1.27% 0:00:27 [1..236] 16754818 -method 14,97,0 Thread 2 "zpaq" received signal SIGSEGV, Segmentation fault. [Switching to LWP 2317] 0x00007ffff7fac5c0 in libzpaq::Predictor::Predictor(libzpaq::ZPAQL&) () (gdb) (gdb) backtrace #0 0x00007ffff7fac5c0 in libzpaq::Predictor::Predictor(libzpaq::ZPAQL&) () #1 0x00007ffff7fc7122 in libzpaq::compressBlock(libzpaq::StringBuffer*, libzpaq::Writer*, char const*, char const*, char const*, bool) () #2 0x00007ffff7f83284 in compressThread(void*) () #3 0x00007ffff7fdd2c6 in start (p=) at src/thread/pthread_create.c:147 #4 0x00007ffff7fddd11 in __clone () at src/thread/x86_64/clone.s:21 Backtrace stopped: frame did not save the PC (gdb) (gdb) frame 3 #3 0x00007ffff7fdd2c6 in start (p=) at src/thread/pthread_create.c:147 147 src/thread/pthread_create.c: No such file or directory. I wonder if there is a trivial solution to this problem. I've found a (kinda ugly, but useful) workaround for this installing the glibc binaries from sgerrand repository on github and using a binary compiled from another distro (with glibc).. Any help appreciated.