[postgis-tickets] [PostGIS] #3644: interrupt_relate test hangs

PostGIS trac at osgeo.org
Tue Sep 27 01:00:59 PDT 2016


#3644: interrupt_relate test hangs
----------------------+---------------------------
  Reporter:  strk     |      Owner:  pramsey
      Type:  defect   |     Status:  new
  Priority:  blocker  |  Milestone:  PostGIS 2.3.1
 Component:  postgis  |    Version:  trunk
Resolution:           |   Keywords:
----------------------+---------------------------

Comment (by strk):

 Removing this line from "handleInterrupt" fixes the problem for me:
 {{{
 printf("Interrupt requested\n"); fflush(stdout);
 }}}

 It turns out it was never a good idea to printf from the interrupt
 handler, exactly for the risk of being invoked again (and triggering a
 deadlock).

 See http://stackoverflow.com/questions/8738951/printk-inside-an-interrupt-
 handler-is-it-really-that-bad

 I'm going to push a fix

--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/3644#comment:4>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.


More information about the postgis-tickets mailing list