DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 51KFYxPg315877 Authentication-Results: delorie.com; dmarc=pass (p=none dis=none) header.from=cygwin.com Authentication-Results: delorie.com; spf=pass smtp.mailfrom=cygwin.com DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 51KFYxPg315877 Authentication-Results: delorie.com; dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=cct7zTdV X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 25D213858C42 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1740065697; bh=9b8qAf9xiMhSOktvBwuEvi/CUR8wsMB0YHdu8LmYiwM=; h=Date:Subject:To:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=cct7zTdVcakCCBroUyI3/UtEdZ0FWbn3nHO0iLehn9nTsz2BSkf7L/rxAdpiyVk+M LLeEH/OLdXMn62lTs5XPHXo+vSrUMI/GcUUf4dh1y+hsZlFwmKEjDDX2f2p5P/j5LE Svbf+4Yjlb7QiHM+c9oRDf7TgmJbeV4qT9TqYtl8= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 272883858C42 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 272883858C42 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1740065619; cv=none; b=LyUX8GOEvzofxw0vCEQsXz89AYgXt7IKgt/QYF45AvdIo7/fr+Ya6sdMyDekT7jKOENExnzVsfgt3DdfxqM9Rnv7ojzxQluY9jmH+M0KOioihKfwd8NSzJruHMcUME3LLJx1XdeYKQsER9unIVdqeKGYgeZoDBJKF14Jhh+cNlI= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1740065619; c=relaxed/simple; bh=T53SpsdfqQUE42zuAuw5EQySuJljlHFm9TUJTw3B4lg=; h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To; b=A6y0OsUtKeNUipfhHZMxhsynZKVv5NgCxIpWXe/jAFzazAQ7BXvoLPffrBR1590BU51vQrwQnI43HCNkKoCI/IKjxewsSC+ZZGQiTCQdj8tXDQuJtk2P/Ud2y9RDAMWR2px3ExEDiMcSWqDOOsok8In0Y3Bzx4zVNQwSf9gCzXc= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 272883858C42 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740065618; x=1740670418; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=T53SpsdfqQUE42zuAuw5EQySuJljlHFm9TUJTw3B4lg=; b=kPBD9Hr2qkQz7b1+XFYv6kBaf9H042vGJxDKOvNOccVfDQwbimhlirG0HpnpCkc3f2 q0TWIFi7khBqUGuzHBIevxjANar+PnL2MXf8hwpNL5aGj2D3VXuiIZK3sStNg63FfFmR MotESCq6xavbqHcch8P+/gAJkFDQ5DDC5RB3EAbDLrK/sUzWrKucjpTZF4ByHLKOmZYe JHUIA2lUNBBBWCuC+7UrfYMUKqAbFh2GCLWQngNkSKpGlAxUErkLBoHaBju5Ev+PmkWV 2x66bEaVJP+bXTzhoPzMJON6P5hnxMKXArUmQHYPchRdfu2OMX4yAa+8PyPr0V3tA2no EiCw== X-Gm-Message-State: AOJu0Yxmfu5okP6pkzd5lAcZExoxi/mGYWeVckI3KP+1WH1ENjRUUL2B 6YiWBD3VjKJtQtnDMtNC63XDcn53MkgMvZnkQp6gUoQl+YiT95bXq9+BeXDGgjuLdH9yDKaMNzS tCt6XkPw39+SvWH5Qc57rQhJa0WddDkPxjj0= X-Gm-Gg: ASbGncvMihnAG7+1jtWoKV7yHugiFSdQ+oC3IrCGMeEXzPDpbXHtgbDTiAF9fvtMSY8 Sfa1z1dMGQdZfw5I+zBWPKmMlin9OR1Nof6tkpIKUDGoiXxHHoAY8EmIEwToJN7A8NUgDt1yZ X-Google-Smtp-Source: AGHT+IF7hkmCsHkh4OGIhqjckAmg/L3yLXmGWg2CJi4PoiYcse4/boEKFa1Ah9haTIVAVJ3AndY6L3FZkI9FAii6DuU= X-Received: by 2002:a05:6870:a68c:b0:2b7:564c:6397 with SMTP id 586e51a60fabf-2bc99d91b88mr5299726fac.11.1740065618134; Thu, 20 Feb 2025 07:33:38 -0800 (PST) MIME-Version: 1.0 Date: Fri, 21 Feb 2025 00:33:02 +0900 X-Gm-Features: AWEUYZndh0Tujxa79rULvz8Ccq0NRBAfTokQmH5DTyPhBH8G5eLtvvk2KIvNgW4 Message-ID: Subject: A process spawned inside gem command running on latest ruby segfaults To: cygwin AT cygwin DOT com X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.30 List-Id: General Cygwin discussions and problem reports List-Archive: List-Post: List-Help: List-Subscribe: , From: Daisuke Fujimura via Cygwin Reply-To: Daisuke Fujimura Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Cygwin" Reproduction: - Use ruby-3.4.2-1 (test) - Install gem containing native libraries ``` $ uname -srvmpio CYGWIN_NT-10.0-22000 3.5.7-1.x86_64 2025-01-29 19:46 UTC x86_64 unknown unknown Cygwin $ ruby -v ruby 3.4.2 (2025-02-15 revision d2930f8e7a) +PRISM [x86_64-cygwin] $ gem -v 3.5.11 $ cd /tmp $ git clone https://cygwin.com/git/cygwin-packages/ruby-debug_inspector # Any gem that contains native libraries $ cd ruby-debug_inspector $ cygport ruby-debug_inspector.cygport fetch prep compile # preparation $ cygport ruby-debug_inspector.cygport install : ``` The process spawned inside `gem install` seems to raise SIGSEGV internally and exits. ``` $ gdb /usr/bin/ruby : (gdb) run /usr/bin/gem install -V --local --ignore-dependencies --document=rdoc,ri --build-root /tmp/ruby-debug_inspector/ruby-debug_inspector-1.1.0-1.x86_64/inst --install-dir /usr/share/gems --bindir /usr/bin debug_inspector-1.1.0.gem # https://github.com/cygwin/cygport/blob/0.36.9/cygclass/rubygem.cygclass#L134 : : Building native extensions. This could take a while... current directory: /tmp/ruby-debug_inspector/ruby-debug_inspector-1.1.0-1.x86_64/inst/usr/share/gems/gems/debug_inspector-1.1.0/ext/debug_inspector ["/usr/bin/ruby.exe", "-I/usr/share/rubygems", "extconf.rb"] [New Thread 3600.0x23a0] [New Thread 3600.0x1278] [New Thread 3600.0x2794] creating Makefile Thread 11 "ruby" received signal SIGSEGV, Segmentation fault. [Switching to Thread 3600.0x1278] 0x0000000000000000 in ?? () (gdb) info threads Id Target Id Frame 1 Thread 3600.0x2430 "ruby" st_locale_insensitive_strcasecmp_i (lhs=18210721222, rhs=42950350928) at /usr/src/debug/ruby-3.4.2-1/st.c:2064 2 Thread 3600.0x13b4 0x00007ff9f50fecd4 in ?? () 3 Thread 3600.0x18bc 0x00007ff9f50fecd4 in ?? () 4 Thread 3600.0x8b4 0x00007ff9f50fecd4 in ?? () 5 Thread 3600.0x1a0c "sig" 0x00007ff9f50f5954 in ?? () 6 Thread 3600.0x1ac "ruby" 0x00007ff9f50f73e4 in ?? () 7 Thread 3600.0x1c3c "pipesel" 0x00007ff9f50f73e4 in ?? () 8 Thread 3600.0x1844 0x00007ff9f50fecd4 in ?? () 9 Thread 3600.0x2668 0x00007ff9f50fecd4 in ?? () 10 Thread 3600.0x23a0 "waitproc" 0x00007ff9f50f58b4 in ?? () * 11 Thread 3600.0x1278 "ruby" 0x0000000000000000 in ?? () 12 Thread 3600.0x2794 "pipesel" 0x00007ff9f50f58b4 in ?? () ``` SIGSEGV seems to occur inside the cygwin DLL. This problem also occurs with ruby-3.3.2-3 (test). We have confirmed that it also occurs in cygwin-3.6. -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple