Re: [HACKERS] seg fault on dsm_create call

2016-06-28 Thread Robert Haas
On Tue, Jun 28, 2016 at 12:45 PM, Max Fomichev wrote: > On 28/06/16 19:24, Robert Haas wrote: > Thanks. > It works now with CurrentResourceOwner = ResourceOwnerCreate(NULL, "name of > my extension") > > I am a little bit confused about test/modules/test_shm_mq, where >

Re: [HACKERS] seg fault on dsm_create call

2016-06-28 Thread Max Fomichev
On 28/06/16 19:24, Robert Haas wrote: On Tue, Jun 28, 2016 at 10:11 AM, Max Fomichev wrote: Hello, sorry for my repost from psql-novice, probably it was not a right place for my question. I'm trying to understand how to work with dynamic shared memory, message queues

[HACKERS] seg fault on dsm_create call

2016-06-28 Thread Max Fomichev
Some debug info related to my previous post - * thread #1: tid = 0x2601e9, 0x000100313e5e postgres`ResourceOwnerEnlargeDSMs + 10, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x130) * frame #0: 0x000100313e5e postgres`ResourceOwnerEnlargeDSMs + 10

Re: [HACKERS] seg fault on dsm_create call

2016-06-28 Thread Robert Haas
On Tue, Jun 28, 2016 at 10:11 AM, Max Fomichev wrote: > Hello, > sorry for my repost from psql-novice, probably it was not a right place for > my question. > > I'm trying to understand how to work with dynamic shared memory, message > queues and workers. > The problem is

[HACKERS] seg fault on dsm_create call

2016-06-28 Thread Max Fomichev
Hello, sorry for my repost from psql-novice, probably it was not a right place for my question. I'm trying to understand how to work with dynamic shared memory, message queues and workers. The problem is I can not initialize any dsm segment - void _PG_init() { ...