[MacPorts] #46549: crash in gst_plugin_scanner from port:gstreamer010

MacPorts noreply at macports.org
Tue Jan 13 12:33:25 PST 2015


#46549: crash in gst_plugin_scanner from port:gstreamer010
-------------------------+--------------------------------
 Reporter:  rjvbertin@…  |      Owner:  macports-tickets@…
     Type:  defect       |     Status:  new
 Priority:  Normal       |  Milestone:
Component:  ports        |    Version:
 Keywords:  haspatch     |       Port:  gstreamer010
-------------------------+--------------------------------
 I've started running into a crashing from gst_plugin_scanner when starting
 digikam, after rebuilding port:opencv with different variants.

 The crash disappeared when I reactivated the original version and couldn't
 be attributed to a particular variant, so I thought maybe I had to rebuild
 gstreamer010 . After doing that, gst_plugin_scanner crashed even with the
 old opencv version.

 The crash is in `dup2`, which is called to redirect stderr to stdout:

 {{{
      /* Dup stderr down to stdout so things that plugins print are
 visible,
       * but don't care if it fails */
 }}}

 given that 2nd line I first tried to `close(2)` to close stderr, but that
 also crashes. Doing nothing (out-commenting the dup2 statement) seems to
 be the workaround, which is not incompatible with the intended behaviour
 as described in the comment.

 The crash cannot be reproduced starting gst-plugin-scanner from a
 terminal, so it is related either to the way digikam starts the tool, or
 to the fact that it is started from an application in  an app bundle.



 NB: we're talking about the same opencv *release*, but different installed
 *versions* ;)

-- 
Ticket URL: <https://trac.macports.org/ticket/46549>
MacPorts <https://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list