[MacPorts] #41238: Octave parcellfun panics
#41238: Octave parcellfun panics --------------------------------+-------------------------------- Reporter: tom_olin@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Keywords: parcellfun, malloc | Port: octave-devel --------------------------------+-------------------------------- I updated MacPorts yesterday, and now the parcellfun function from the general package is unusable. Here's a simple test file: function foo() parcellfun(2, @myfunc, {pi; e}); end function myfunc(val) end When I run it, I get: parcellfun: 0/2 jobs doneoctave(17310,0x7fff7c400180) malloc: *** error for object 0x108b93220: pointer being freed was not allocated *** set a breakpoint in malloc_error_break to debug panic: Abort trap: 6 -- stopping myself... attempting to save variables to 'octave-core'... save to 'octave-core' complete Abort trap: 6 I've found mention of this error going back some months on various forums, but I've found no clear explanation nor solution/workaround. It worked fine since I last updated MacPorts within the last week or two. octave-devel @3.6.4_9+atlas+docs+fltk+gcc47+x11 (active) -- Ticket URL: <https://trac.macports.org/ticket/41238> MacPorts <http://www.macports.org/> Ports system for OS X
#41238: Octave parcellfun panics ---------------------------+------------------------- Reporter: tom_olin@… | Owner: michaelld@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: octave-devel | ---------------------------+------------------------- Changes (by macsforever2000@…): * owner: macports-tickets@… => michaelld@… * keywords: parcellfun, malloc => Old description:
I updated MacPorts yesterday, and now the parcellfun function from the general package is unusable. Here's a simple test file:
function foo() parcellfun(2, @myfunc, {pi; e}); end function myfunc(val) end
When I run it, I get:
parcellfun: 0/2 jobs doneoctave(17310,0x7fff7c400180) malloc: *** error for object 0x108b93220: pointer being freed was not allocated *** set a breakpoint in malloc_error_break to debug panic: Abort trap: 6 -- stopping myself... attempting to save variables to 'octave-core'... save to 'octave-core' complete Abort trap: 6
I've found mention of this error going back some months on various forums, but I've found no clear explanation nor solution/workaround. It worked fine since I last updated MacPorts within the last week or two.
octave-devel @3.6.4_9+atlas+docs+fltk+gcc47+x11 (active)
New description: I updated MacPorts yesterday, and now the parcellfun function from the general package is unusable. Here's a simple test file: {{{ function foo() parcellfun(2, @myfunc, {pi; e}); end function myfunc(val) end }}} When I run it, I get: {{{ parcellfun: 0/2 jobs doneoctave(17310,0x7fff7c400180) malloc: *** error for object 0x108b93220: pointer being freed was not allocated *** set a breakpoint in malloc_error_break to debug panic: Abort trap: 6 -- stopping myself... attempting to save variables to 'octave-core'... save to 'octave-core' complete Abort trap: 6 }}} I've found mention of this error going back some months on various forums, but I've found no clear explanation nor solution/workaround. It worked fine since I last updated MacPorts within the last week or two. {{{ octave-devel @3.6.4_9+atlas+docs+fltk+gcc47+x11 (active) }}} -- Comment: In the future, please use WikiFormatting and Cc the port maintainers (port info --maintainers octave-devel). -- Ticket URL: <https://trac.macports.org/ticket/41238#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
#41238: Octave parcellfun panics ---------------------------+------------------------- Reporter: tom_olin@… | Owner: michaelld@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: octave-devel | ---------------------------+------------------------- Comment (by michaelld@…): Just a guess that octave-general needs to be reinstalled because of some change to octave: {{{ sudo port uninstall octave-general sudo port install octave-general }}} and see if that works. -- Ticket URL: <https://trac.macports.org/ticket/41238#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
#41238: Octave parcellfun panics ---------------------------+------------------------- Reporter: tom_olin@… | Owner: michaelld@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: octave-devel | ---------------------------+------------------------- Comment (by michaelld@…): OK; I finally figured out how to load packages (pkg load general; I'm clearly a noob in some regards :). I get the same error. I'll push it upstream to some octave developers to see what they think. -- Ticket URL: <https://trac.macports.org/ticket/41238#comment:3> MacPorts <http://www.macports.org/> Ports system for OS X
#41238: Octave parcellfun panics ---------------------------+------------------------- Reporter: tom_olin@… | Owner: michaelld@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: octave-devel | ---------------------------+------------------------- Comment (by michaelld@…): Oh; I think I know the issue. I changed octave-devel recently to decouple the c/c++ and fortran compilers. Building octave-devel requires linking using the fortran compiler, which uses that compiler's libstdc++ runtime, which is provided by libgcc. Packages are build using the c/c++ compiler, which will in general be different than the fortran compiler (suite), and use a different c++ runtime. In my case, I have clang as the c/c++ compiler, and gfortran-mp-4.8 as the fortran compiler (via +gcc48). Clang uses /usr/lib/libstdc++ in 10.8 and earlier, while gfortran-mp-4.8 uses /opt/local/lib/libgcc/libstdc++.6.dylib. You can't have both c++ runtimes at the same time. So, I need to fix mkoctfile to use the fortran compiler; or, something like that. YA reason MacPorts needs a single c++ runtime, as will be the case for 10.9 (or, I'm pretty sure that's the case). What fun! You should be able to get around this by setting the variant and compiler to be the same, e.g. {{{ sudo port install octave-devel +gcc47 configure.compiler=macports-gcc-4.7 }}} You might still need to reinstall octave-general. -- Ticket URL: <https://trac.macports.org/ticket/41238#comment:4> MacPorts <http://www.macports.org/> Ports system for OS X
#41238: Octave parcellfun panics ---------------------------+------------------------- Reporter: tom_olin@… | Owner: michaelld@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: octave-devel | ---------------------------+------------------------- Comment (by tom_olin@…): Setting the configure.compiler option fixed the problem. Thanks for your help. -- Ticket URL: <https://trac.macports.org/ticket/41238#comment:5> MacPorts <http://www.macports.org/> Ports system for OS X
#41238: Octave parcellfun panics ---------------------------+------------------------- Reporter: tom_olin@… | Owner: michaelld@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: fixed | Keywords: Port: octave-devel | ---------------------------+------------------------- Changes (by michaelld@…): * status: new => closed * resolution: => fixed Comment: Should be fixed with r114034. -- Ticket URL: <https://trac.macports.org/ticket/41238#comment:6> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts