Re: [Rd] Segfault on read.socket with long message

2020-05-12 Thread Tomas Kalibera
On 5/12/20 5:25 PM, Russell Almond wrote: > > Thanks for the link.  Somehow the information about how to join the > bugzilla site was not available at bugzilla and buried in the CRAN web > site instructions on reporting bugs (which pointed me at Bugzilla and > not the page you showed me). > >

Re: [Rd] Segfault on read.socket with long message

2020-05-12 Thread Russell Almond
Thanks for the link.  Somehow the information about how to join the bugzilla site was not available at bugzilla and buried in the CRAN web site instructions on reporting bugs (which pointed me at Bugzilla and not the page you showed me). The example is pretty minimal.  I left the tracing statem

Re: [Rd] Segfault on read.socket with long message

2020-05-12 Thread Tomas Kalibera
Thanks for the report, but it is unlikely anyone would be able to help just based on this code fragment. We need a small and minimal but complete reproducible example. That example should not use any contributed packages (a contributed package may be corrupting memory, which may cause R to cras

[Rd] Segfault on read.socket with long message

2020-05-11 Thread Russell Almond
I'm trying to implement a connection between two processes using a simple socket mechanism. The messages are rather long object stored as JSON. R is crashing with a segmentation fault when I try to read my test message (which is 5305 bytes long). I first send the length in bytes and then