From bug-octave-request at bevo dot che dot wisc dot edu Mon Aug 7 10:08:44 2000 Subject: Re: popen-pclose From: "Stef Pillaert (KAHO)" To: "bug-octave" Date: Mon, 7 Aug 2000 17:06:03 +0200 [Sorry for the late reply...] ----- Original Message ----- From: John W. Eaton To: Stef Pillaert Cc: Sent: Monday, June 26, 2000 7:46 PM Subject: popen-pclose > On 22-Jun-2000, Stef Pillaert wrote: > > | To: bug-octave at bevo dot che dot wisc dot edu > | Cc: stef > | Subject: popen (or pclose?) errors. > | -------- > | Bug report for Octave 2.1.30 configured for %OCTAVE_CONF_CANONICAL_HOST_TYPE% > | > | Description: > | ----------- > | I always have problems with popen-pclose > | > | Repeat-By: > | --------- > | > | octave:2> fid=popen("ls","r") > | fid = > | { > | id = 4 > | name = ls > | mode = r > | arch = native > | status = open > | } > | octave:3> pclose(fid) > | ans = 0 > | octave:4> fid > | fid = > | { > | id = 4 > | name = ls > | mode = r > | arch = native > | status = closed > | } > | octave:5> fid=popen("ls","r") > | panic: Segmentation fault -- stopping myself... > | attempting to save variables to `octave-core'... > | warning: save: wrong type argument `file' > | save to `octave-core' complete > | Segmentation fault (core dumped) > > I'm unable to reproduce this with my current sources, so perhaps it > has been fixed. > > jwe I recently installed 2.1.31, and I still have the same problem. Could this be related to the problems I also have with popen2 (see a recent bug-report I did send a few days ago)? Don't know if it is relevant, but neither the popen-close problem, nor the popen2 problem happens with 2.0.16: here everything works fine... (but I would prefer to use the 2.1.31, because I adopted all my .oct-functions to the 2.1.?? version...) Thanks for your time, Stef. ----------------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.che.wisc.edu/octave/octave.html How to fund new projects: http://www.che.wisc.edu/octave/funding.html Subscription information: http://www.che.wisc.edu/octave/archive.html -----------------------------------------------------------------------