[Vm-dev] [OpenSmalltalk/opensmalltalk-vm] Fix symbolic C stack backtrace in WIN64 builds. (65d9d81)

Marcel Taeumel notifications at github.com
Fri Oct 1 06:21:21 UTC 2021


> N.B. As of cygwin 1.5.25 fopen("crash.dmp","a") DOES NOT WORK!  crash.dmp
> contains garbled output as if the file pointer gets set to the start of the
> file, not the end.  So we synthesize our own append mode.

Hi Eliot. Please update your Cygwin ASAP! It's hardly believeable that the append-mode in `fopen` is broken in a fairly recent Cygwin installation.

```
$ cygcheck -c cygwin
Cygwin Package Information
Package              Version        Status
cygwin               3.2.0-1        OK
```

```
$ cygcheck -f /usr/include/stdio.h
cygwin-devel-3.2.0-1
```

This works like a charm and as expected:

```
/* File name is hello_world.c */
#include <stdio.h>

int main(void)
{
	FILE *pFile;
	pFile = fopen("crash.dmp","a+t");
	fprintf(pFile, "%s", "Hello!");
	fclose(pFile);
}
```

PLEASE! Update your Cygwin installation. :-)

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/OpenSmalltalk/opensmalltalk-vm/commit/65d9d814015f68f472966bdd6ee0263bd4d1c9e0#commitcomment-57342743
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20210930/d442ae2b/attachment.html>


More information about the Vm-dev mailing list