delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2026/03/12/11:15:40

DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 62CFFdFe4121359
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 62CFFdFe4121359
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=gWoELE7Z
X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EC9014BBCDD4
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1773328538;
bh=T1I/Vhj1syGW2+QW5VDkk/H+qnrLoNvw89aFT0xRZ5A=;
h=Date:Subject:To:References:Cc:In-Reply-To:List-Id:
List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe:
From:Reply-To:From;
b=gWoELE7ZxjWMDLQLT4yh5MI99JKdsWK/LRUn2EXq4dmgp6xwh+USd91/0Qkvjz2OR
0psGpDMbuEchhrcfbCdGsd3cy1tQIo+apk9b+1NXju/CFMqVBh0aFeBVH4hxcpeyYj
S6He3sD1v9r1OWNq6KMcK8FulTzFkdMMNtfsLCoo=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 1AE254BA23E8
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 1AE254BA23E8
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1773328486; cv=none;
b=Pz6/czj/578+yndB+hE50u9pESANejlHBNgOHzvzRsETj2mbJS08pwEv/5R7+kPzNhfmNv5iYf/oYd8D0zdZRM5mGxvhE7nE/xgTaNe/Le3v/VbL3WdiC61i7HlRyyGHW6Oo+Lze0NszzKe9IAk6SMmE5YQtDlpi8BoSMBQBFo4=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1773328486; c=relaxed/simple;
bh=B4szQry9Sa1MoJ2CNaR7iGgENWZohR5nRx5NdKXf7Pg=;
h=Message-ID:Date:MIME-Version:Subject:To:From;
b=s077yMWWqV3NEMX1GnYOlME69isKRL46mHnmvefN0O6SqjbJlL8ip/sHIbuqUY1nc83AU0lq+/0+VAjNwHQy6dfOEqzRkItEbg+PPSCXDcDps0kWFXDuY+fdRbRRiJJEIIl7TURVt33/onDxIzUa9lflqezM/XCukWKiMSwpiPg=
ARC-Authentication-Results: i=1; server2.sourceware.org
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1AE254BA23E8
X-SNCR-Rigid: 69AF6D5A004088B4
X-Originating-IP: [62.49.245.144]
X-OWM-Source-IP: 62.49.245.144
X-OWM-Env-Sender: jon DOT turney AT dronecode DOT org DOT uk
X-RazorGate-Vade: dmFkZTFnH8xtqEquq24I/gjBAHITUr7gTmuiHue2bZ6yhb6A45iTOXAIeKsZzctMULWbeaSTQ/Uf4VBdbSgWUo0Mvl2Jencngi34hHCacXZJMzMgtkl9IesAAqT3bLZV8VL1kzYBo3Nm6jFukQvVgQnbNsffgfuyJJLDTMTrsyKCyD08OvrI9bboa3RbD8dz570BmM1jg3paApW3VmDHcXuw/o8FKn4jphXi2O6q2isHa9DqJ+zPVlxWJagOyGGPC1QRVXa8+x4PeX3XuqIXNPYyNQworwLje8gRYGTv4/Edo9hHgDkVeIbGFysF/wHXtUmKwxolBMmTIWCyRsUu9ginp2hihYuuwXKlYTNxraYHV4gfvt8v9sOkabPAE7zEmR6WkwPh7O7iiWZ9vNkZTqgLs5EWNGPwn7zPMR7D7QDgcJJg8kWV7r3rK/KwMWjw33VivApfB8enzY6PErNONHhbqnY90QX36ZEyE3bPfXLM/AmTxSH6Ppmtul6OtfDlnyYjydAvqBRH7i9MTEfi/Zhg3ZSrz4yM+ZzupftgDBOCH+klYgKTUvwZhaMOrpJYJ35b4RPURYWuCKLtHq5SydF9bUdzygYTDuK0zy/vhfVvSHCnNj6FNIiVXhpetEY3wT7TymhG4EHDFm9rLX8pKm+8tC7R8mCvNapkJV80Dw9JYJkVXQ
X-RazorGate-Vade-Verdict: clean 0
X-RazorGate-Vade-Classification: clean
X-VadeSecure-score: verdict=clean score=0/300, class=clean
Message-ID: <abd66c5d-6bcd-40ae-b7c6-a8a3325aca8e@dronecode.org.uk>
Date: Thu, 12 Mar 2026 15:14:39 +0000
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: Memmove causing program crashes, giving SIGTRAP in GDB(?)
To: KENNON J CONRAD <kennonconrad AT comcast DOT net>
References: <547312365 DOT 1464244 DOT 1771958282029 AT connect DOT xfinity DOT com>
<aZ7PrbisVR1R4A7v AT dimstar DOT local DOT net>
<1670201592 DOT 1489273 DOT 1772043520008 AT connect DOT xfinity DOT com>
<e91d8b5b-2690-4271-aa74-e6226440e33d AT SystematicSW DOT ab DOT ca>
<1044918836 DOT 1507810 DOT 1772086967212 AT connect DOT xfinity DOT com>
Cc: cygwin AT cygwin DOT com
In-Reply-To: <1044918836.1507810.1772086967212@connect.xfinity.com>
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.30
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Jon Turney via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Jon Turney <jon DOT turney AT dronecode DOT org DOT uk>
Errors-To: cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com>

On 26/02/2026 06:22, KENNON J CONRAD via Cygwin wrote:
> Hi Brian,
> 

I'd add to that a reference to [1]

[1] https://cygwin.com/faq.html#faq.programming.debugging-cygwin

Unfortunately, when investigating exceptions inside the cygwin dll, it's 
necessary to 'set cygwin-exceptions on', which will cause the debugger 
to actually stop at the point of the exception.

(This explains why the specific exception is SIGTRAP, and why you get 
the all the extra frames for exception handling below memmove in the 
backtrace)

>     I installed the version of the cygwin-debuginfo that is on my test computer to the build machine (version 3.6.6-1).  I put the memmove back in the code in place of the bloated code that has been running the past 4 days without any problem (and the past ~10 years before changing to memset) and got another SIGTRAP in gbd on that memset within 2 hours.  The backtrace looks very similar:
> 
> #0  0x00007ff97e40a98b in KERNELBASE!DebugBreak () from /cygdrive/c/Windows/system32/KERNELBASE.dll
> No symbol table info available.
> #1  0x00007ff96ba86417 in cygwin1!.assert () from /cygdrive/c/Windows/cygwin1.dll
> No symbol table info available.
> #2  0x00007ff96ba9fb18 in secure_getenv () from /cygdrive/c/Windows/cygwin1.dll
> No symbol table info available.
> #3  0x00007ff980c5d82d in ntdll!.chkstk () from /cygdrive/c/Windows/SYSTEM32/ntdll.dll
> No symbol table info available.
> #4  0x00007ff980c0916b in ntdll!RtlRaiseException () from /cygdrive/c/Windows/SYSTEM32/ntdll.dll
> No symbol table info available.
> #5  0x00007ff980c5c9ee in ntdll!KiUserExceptionDispatcher () from /cygdrive/c/Windows/SYSTEM32/ntdll.dll
> No symbol table info available.
> #6  0x00007ff96ba812a9 in memmove () from /cygdrive/c/Windows/cygwin1.dll
> No symbol table info available.

Hmmm.... if you've successfully installed the matching 
cygwin-debugininfo package on the machine running gdb, you should get 
getting symbol information here, so something's not quite right.

> #7  0x00000001004099ec in rank_scores_thread (arg=0x6ffecf1c0010) at GLZAcompress.c:854
>          new_score_rank = 767
>          new_score_lmi2 = 333188156
>          new_score_pmi2 = 333188149
>          rank = 3360
>          max_rank = 767
>          num_symbols = 7
>          new_score_lmi = 332397489
>          new_score_pmi = 332397482
>          thread_data_ptr = 0x6ffecf1c0010
>          max_scores = 3361
>          candidates_index = 0xa00034460
>          score_index = 3319
>          node_score_num_symbols = 14
>          num_candidates = 3361
>          node_ptrs_num = 49710
>          local_write_index = 49711
>          rank_scores_buffer = 0x6ffecf1c0020
>          candidates = 0x6ffecf2c0020
>          score = 50.3955727
> #8  0x00007ff96bae2eec in cygwin1!.getreent () from /cygdrive/c/Windows/cygwin1.dll
> No symbol table info available.
> #9  0x00007ff96ba847d3 in cygwin1!.assert () from /cygdrive/c/Windows/cygwin1.dll
> No symbol table info available.
> #10 0x0000000000000000 in ?? ()
> No symbol table info available.

-- 
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019