Re: [Gc] memory fault with incremental collection (#25)

Ivan Maidanski ivmai at
Wed Aug 21 23:49:58 PDT 2013

 Hi David,

1. try recent gc7.3alpha3 snapshot
2. if you turn off incremental collection, it works, right?
3. what's your target CPU and OS?


Wed, 21 Aug 2013, 23:24 -07:00 from David Terei <notifications at>:
>I'm trying to use the GC in the memcached code base and running into the following issue. Note, this is a modified memcached setup so that the connection objects and various buffers per-connection for reading and writing to the network are managed by the GC. The storage engine for the key-value store is left alone, still uses malloc and reference counting.
>*  Enable incremental collection
>*  Connect to memcached server with one client and start generating load -- works fine.
>*  Connect as above with a second client -- first client will have its connection shutdown as during a read system call an EFAULT will occur, so the memcached code kills that client.
>I'm not sure why an EFAULT is occurring for the first client. The buffer that it is trying to read into is one allocated by GC_malloc and so I assume something is going wrong with the page protection for incremental collection. I'm not able to figure out more than that.
>This is with  7.3alpha2 .
>>Reply to this email directly or  view it on GitHub .

Иван Майданский
-------------- next part --------------
An HTML attachment was scrubbed...

More information about the Gc mailing list