From bug-request at octave dot org Thu Nov 17 06:38:26 2005 Subject: problem accessing structures From: Stefan van der Walt To: bug at octave dot org Date: Thu, 17 Nov 2005 14:41:46 +0200 I have problems assigning elements in structures (using Octave 2.1.71, Ubuntu package). Compile this OCT-file (from the wiki): #include #include DEFUN_DLD (structure, args, , "quick and dirty demo") { octave_value_list retval; Octave_map a (args(0).map_value()); Octave_map ab (a.contents (a.seek ("b"))(0).map_value()); ab.assign ("c", -1.0); a.assign ("b", ab); retval(0) = a; return retval; } Then run the following sequence: octave:1> a.a = 0; a.b.a = 1; a.b.b = 2; octave:2> a = structure (a) panic: Segmentation fault -- stopping myself... attempting to save variables to `octave-core'... save to `octave-core' complete Segmentation fault Can someone verify whether this behaviour is present in the latest development release? AFAIK, it is not present in the 2.9.x branch. Stéfan ------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------