Skip to content
Prev 58663 / 63424 Next

[External] Re: use of the tcltk package crashes R 4.0.1 for Windows

On Sun, Jun 7, 2020 at 5:53 PM <luke-tierney at uiowa.edu> wrote:
Writing R extensions, section 6.1.2 says: "Do not assume that memory
allocated by Calloc/Realloc comes from the same pool as used by
malloc: in particular do not use free or strdup with it."

I think the reason is that R uses dlmalloc for Calloc on Windows:
https://github.com/wch/r-source/blob/c634fec5214e73747b44d7c0e6f047fefe44667d/src/main/memory.c#L94-L103

Thread (24 messages)

John Fox use of the tcltk package crashes R 4.0.1 for Windows Jun 6 Peter Dalgaard use of the tcltk package crashes R 4.0.1 for Windows Jun 6 Peter Dalgaard use of the tcltk package crashes R 4.0.1 for Windows Jun 6 Peter Dalgaard use of the tcltk package crashes R 4.0.1 for Windows Jun 6 John Fox use of the tcltk package crashes R 4.0.1 for Windows Jun 7 Jeroen Ooms use of the tcltk package crashes R 4.0.1 for Windows Jun 7 John Fox use of the tcltk package crashes R 4.0.1 for Windows Jun 7 Duncan Murdoch use of the tcltk package crashes R 4.0.1 for Windows Jun 7 Peter Dalgaard use of the tcltk package crashes R 4.0.1 for Windows Jun 7 iuke-tier@ey m@iii@g oii uiow@@edu use of the tcltk package crashes R 4.0.1 for Windows Jun 7 John Fox use of the tcltk package crashes R 4.0.1 for Windows Jun 7 iuke-tier@ey m@iii@g oii uiow@@edu use of the tcltk package crashes R 4.0.1 for Windows Jun 7 Jeroen Ooms use of the tcltk package crashes R 4.0.1 for Windows Jun 7 Peter Dalgaard use of the tcltk package crashes R 4.0.1 for Windows Jun 7 Peter Dalgaard use of the tcltk package crashes R 4.0.1 for Windows Jun 7 Gábor Csárdi use of the tcltk package crashes R 4.0.1 for Windows Jun 7 iuke-tier@ey m@iii@g oii uiow@@edu use of the tcltk package crashes R 4.0.1 for Windows Jun 7 Peter Dalgaard use of the tcltk package crashes R 4.0.1 for Windows Jun 7 Abby Spurdle use of the tcltk package crashes R 4.0.1 for Windows Jun 7 Abby Spurdle use of the tcltk package crashes R 4.0.1 for Windows Jun 7 Avraham Adler use of the tcltk package crashes R 4.0.1 for Windows Jun 7 Peter Dalgaard use of the tcltk package crashes R 4.0.1 for Windows Jun 8 Jeroen Ooms use of the tcltk package crashes R 4.0.1 for Windows Jun 8 John Fox use of the tcltk package crashes R 4.0.1 for Windows Jun 8