Skip to content
Prev 58668 / 63424 Next

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

Ah, I see it now: 

The remapping of free() to Rm_free() and calloc() to Rm_calloc() happens in memory.c, but not in tcltk.c; the macro Calloc in R_ext/RS.h maps to a call to R_chk_alloc which is defined in memory.h; RS.h is included in tcltk.c, so tcltk.c winds up calling Rm_calloc() via Calloc(), but then the NON-remapped free(), and the walls come tumbling down. 

If the  "#if defined(Win32)" block had been inside RS.h, the problem wouldn't arise.

-pd

  
    

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