It's possible you are simply not handling interrupts properly. If you do a blocking recv of a zframe or a zmsg and the process is interrupted, you'll get a NULL back. You must test for this on all recv calls.
On Tue, Mar 24, 2015 at 11:32 AM, Alan Ward <[email protected]> wrote: > Hi Pieter, > Thanks for the reply. > > I was hoping someone out there had a service running successfully on RedHat > and could tell me how they had set up their .service file. > > If I hear nothing then I'll cut the service down to a repeatable test case. > > Regards, > Alan > > -----Original Message----- > From: [email protected] > [mailto:[email protected]] On Behalf Of Pieter Hintjens > Sent: 24 March 2015 10:24 > To: ZeroMQ development list > Subject: Re: [zeromq-dev] Running a service (with zeromq) on RedHat 7 > > It's impossible to help you unless you provide a minimal test case that > fails. (I.e. source code that crashes). > > On Tue, Mar 24, 2015 at 10:25 AM, Alan Ward <[email protected]> wrote: >> Hi, >> >> >> >> I have a multi-process service that uses zeromq (and PostgreSQL). >> >> >> >> I have successfully ported it to RedHat 7 (from Ubuntu). >> >> >> >> I am now trying to get the service to start automatically when the >> server starts. >> >> I have written a unit file (xxxx.service) and installed it in >> /usr/lib/systemd/system. >> >> >> >> If I start it manually using systemctl start xxxx, it works fine. >> >> >> >> But if I restart the server the service crashes in one process with: >> >> src/zframe.c:174: zframe_data: Assertion `self' failed. >> >> >> >> And the another three processes with: >> >> src/zmsg.c:225: zmsg_pop: Assertion `self' failed. >> >> >> >> I guess I have a dependency missing in the Unit section of the >> .service file >> >> >> >> I currently have: >> >> >> >> After=network.target >> >> After=syslog.target >> >> After=postgresql-9.3.target >> >> >> >> Can anyone tell me what I’m missing? >> >> >> >> Thanks, >> >> Alan >> >> >> >> >> _______________________________________________ >> zeromq-dev mailing list >> [email protected] >> http://lists.zeromq.org/mailman/listinfo/zeromq-dev >> > _______________________________________________ > zeromq-dev mailing list > [email protected] > http://lists.zeromq.org/mailman/listinfo/zeromq-dev > > _______________________________________________ > zeromq-dev mailing list > [email protected] > http://lists.zeromq.org/mailman/listinfo/zeromq-dev _______________________________________________ zeromq-dev mailing list [email protected] http://lists.zeromq.org/mailman/listinfo/zeromq-dev
