{"action":"created","issue":{"url":"https://api.github.com/repos/seamusabshere/upsert/issues/37","labels_url":"https://api.github.com/repos/seamusabshere/upsert/issues/37/labels{/name}","comments_url":"https://api.github.com/repos/seamusabshere/upsert/issues/37/comments","events_url":"https://api.github.com/repos/seamusabshere/upsert/issues/37/events","html_url":"https://github.com/seamusabshere/upsert/issues/37","id":33446427,"number":37,"title":"PG Segmentation fault (sidekiq / postgres)","user":{"login":"didil","id":1284255,"avatar_url":"https://avatars.githubusercontent.com/u/1284255?v=3","gravatar_id":"","url":"https://api.github.com/users/didil","html_url":"https://github.com/didil","followers_url":"https://api.github.com/users/didil/followers","following_url":"https://api.github.com/users/didil/following{/other_user}","gists_url":"https://api.github.com/users/didil/gists{/gist_id}","starred_url":"https://api.github.com/users/didil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/didil/subscriptions","organizations_url":"https://api.github.com/users/didil/orgs","repos_url":"https://api.github.com/users/didil/repos","events_url":"https://api.github.com/users/didil/events{/privacy}","received_events_url":"https://api.github.com/users/didil/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2014-05-13T22:45:53Z","updated_at":"2015-01-25T18:26:33Z","closed_at":null,"body":"using upsert 2.0.3 with sidekiq 2.17.7 I get the following error\r\n\r\nupsert-2.0.3/lib/upsert/connection/PG_Connection.rb:10: [BUG] Segmentation fault\r\nruby 2.0.0p451 (2014-02-24 revision 45167) [x86_64-linux]\r\n\r\n-- Control frame information -----------------------------------------------\r\nc:0048 p:---- s:0210 e:000209 CFUNC  :exec\r\nc:0047 p:0025 s:0205 e:000204 METHOD /home/didil/.rvm/gems/ruby-2.0.0-p451@project/gems/upsert-2.0.3/lib/upsert/connection/PG_Connection.rb:10\r\nc:0046 p:0080 s:0200 E:001588 METHOD /home/didil/.rvm/gems/ruby-2.0.0-p451@project/gems/upsert-2.0.3/lib/upsert/merge_function/PG_Connection.rb:21\r\nc:0045 p:0021 s:0193 e:000192 METHOD /home/didil/.rvm/gems/ruby-2.0.0-p451@project/gems/upsert-2.0.3/lib/upsert/merge_function.rb:13\r\nc:0044 p:0032 s:0187 e:000186 METHOD /home/didil/.rvm/gems/ruby-2.0.0-p451@project/gems/upsert-2.0.3/lib/upsert.rb:216"},"comment":{"url":"https://api.github.com/repos/seamusabshere/upsert/issues/comments/71384645","html_url":"https://github.com/seamusabshere/upsert/issues/37#issuecomment-71384645","issue_url":"https://api.github.com/repos/seamusabshere/upsert/issues/37","id":71384645,"user":{"login":"wcurtis","id":530242,"avatar_url":"https://avatars.githubusercontent.com/u/530242?v=3","gravatar_id":"","url":"https://api.github.com/users/wcurtis","html_url":"https://github.com/wcurtis","followers_url":"https://api.github.com/users/wcurtis/followers","following_url":"https://api.github.com/users/wcurtis/following{/other_user}","gists_url":"https://api.github.com/users/wcurtis/gists{/gist_id}","starred_url":"https://api.github.com/users/wcurtis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wcurtis/subscriptions","organizations_url":"https://api.github.com/users/wcurtis/orgs","repos_url":"https://api.github.com/users/wcurtis/repos","events_url":"https://api.github.com/users/wcurtis/events{/privacy}","received_events_url":"https://api.github.com/users/wcurtis/received_events","type":"User","site_admin":false},"created_at":"2015-01-25T18:26:33Z","updated_at":"2015-01-25T18:26:33Z","body":"I'm hitting a similar error using upsert with sidekiq. Problem dissapears if I set sidekiq concurrency to 1. If I comment out the upsert lines the issue disappears too.\r\n\r\n@thbar's solution didn't fix, though I feel like that's the right idea. @whistlerbrk any luck?"}}