[MacPorts] #36597: portpkg.tcl script fails with segfault
#36597: portpkg.tcl script fails with segfault ---------------------------+-------------------------------- Reporter: damo.clarky@… | Owner: macports-tickets@… Type: defect | Status: new Priority: High | Milestone: Component: base | Version: 2.1.2 Keywords: pkg | Port: ---------------------------+-------------------------------- Like 189 of portpkg.tcl uses the findBinary procedure to locate the full path to the cpio binary and then uses that as the value to the -x parameter of the pax command. This causes pax to segmentation fault. The command that fails is: cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports .org_release_tarballs_ports_multimedia_mythtv-core.25/mythtv- core.25/work/destroot && /bin/pax -x /usr/bin/cpio -w -z . > /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports .org_release_tarballs_ports_multimedia_mythtv-core.25/mythtv-core.25/work /mythtv-core.25-0.25.2-Fixes-20120918.pkg/Contents/Archive.pax.gz The attached patch file simply uses 'cpio' as the parameter to -x option of pax rather than the calculated full path (ie /usr/bin/pax). With just 'cpio' there is no segmentation fault. -- Ticket URL: <https://trac.macports.org/ticket/36597> MacPorts <http://www.macports.org/> Ports system for Mac OS
#36597: portpkg.tcl script fails with segfault ----------------------------+-------------------------------- Reporter: damo.clarky@… | Owner: macports-tickets@… Type: defect | Status: new Priority: High | Milestone: Component: base | Version: 2.1.2 Resolution: | Keywords: pkg Port: | ----------------------------+-------------------------------- Comment (by damo.clarky@…): Sorry, I should have added that this was on OSX 10.8.1 I suspect earlier versions of Mac OS had a more tolerant pax command. Damien. -- Ticket URL: <https://trac.macports.org/ticket/36597#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#36597: portpkg.tcl script fails with segfault ----------------------------+-------------------------------- Reporter: damo.clarky@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: base | Version: 2.1.2 Resolution: | Keywords: Port: | ----------------------------+-------------------------------- Changes (by ryandesign@…): * keywords: pkg => * priority: High => Normal Old description:
Like 189 of portpkg.tcl uses the findBinary procedure to locate the full path to the cpio binary and then uses that as the value to the -x parameter of the pax command. This causes pax to segmentation fault.
The command that fails is:
cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports .org_release_tarballs_ports_multimedia_mythtv-core.25/mythtv- core.25/work/destroot && /bin/pax -x /usr/bin/cpio -w -z . > /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports .org_release_tarballs_ports_multimedia_mythtv-core.25/mythtv-core.25/work /mythtv-core.25-0.25.2-Fixes-20120918.pkg/Contents/Archive.pax.gz
The attached patch file simply uses 'cpio' as the parameter to -x option of pax rather than the calculated full path (ie /usr/bin/pax). With just 'cpio' there is no segmentation fault.
New description: Like 189 of portpkg.tcl uses the findBinary procedure to locate the full path to the cpio binary and then uses that as the value to the -x parameter of the pax command. This causes pax to segmentation fault. The command that fails is: {{{cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports .org_release_tarballs_ports_multimedia_mythtv-core.25/mythtv- core.25/work/destroot && /bin/pax -x /usr/bin/cpio -w -z . > /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports .org_release_tarballs_ports_multimedia_mythtv-core.25/mythtv-core.25/work /mythtv-core.25-0.25.2-Fixes-20120918.pkg/Contents/Archive.pax.gz}}} The attached patch file simply uses 'cpio' as the parameter to -x option of pax rather than the calculated full path (ie /usr/bin/pax). With just 'cpio' there is no segmentation fault. -- Comment: Could you attach the crash log from that segmentation fault? It should be in ~/Library/Logs/DiagnosticReports -- Ticket URL: <https://trac.macports.org/ticket/36597#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#36597: portpkg.tcl script fails with segfault ----------------------------+-------------------------------- Reporter: damo.clarky@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: base | Version: 2.1.2 Resolution: | Keywords: Port: | ----------------------------+-------------------------------- Comment (by damo.clarky@…): Crash log attached. The segfault can be reproduced directly from the command line: pax -x /usr/bin/cpio -w -z /tmp >/dev/null If you run it without the full path, there is no segfault: pax -x cpio -w -z /tmp >/dev/null This is on 10.8.1. Both the above commands work fine on 10.7.5. -- Ticket URL: <https://trac.macports.org/ticket/36597#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#36597: portpkg.tcl script fails with segfault ----------------------------+-------------------------------- Reporter: damo.clarky@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: base | Version: 2.1.2 Resolution: fixed | Keywords: Port: | ----------------------------+-------------------------------- Changes (by jmr@…): * status: new => closed * resolution: => fixed Comment: This was already fixed in r96262. You can't hit the problematic code if you have PackageMaker installed, BTW. -- Ticket URL: <https://trac.macports.org/ticket/36597#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#36597: portpkg.tcl script fails with segfault ----------------------------+-------------------------------- Reporter: damo.clarky@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: MacPorts Future Component: base | Version: 2.1.2 Resolution: fixed | Keywords: Port: | ----------------------------+-------------------------------- Changes (by jmr@…): * milestone: => MacPorts Future -- Ticket URL: <https://trac.macports.org/ticket/36597#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#36597: portpkg.tcl script fails with segfault ----------------------------+-------------------------------- Reporter: damo.clarky@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: MacPorts 2.1.3 Component: base | Version: 2.1.2 Resolution: fixed | Keywords: Port: | ----------------------------+-------------------------------- Changes (by jmr@…): * milestone: MacPorts Future => MacPorts 2.1.3 -- Ticket URL: <https://trac.macports.org/ticket/36597#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts