Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: octave mmap failure (netbsd-current/amd64)



Sverre Froyen wrote:
I'm seeing mmap failures with octave.
[...]
error: mmap of entire address space failed: Cannot allocate memory
[...]
Is the problem unique to my system or do other people see this error too?

Hi,

i am not sure if this helps you, but on NetBSD 5.1_RC4 i386 with octave from pkgsrc (pkgsrc-current, about 3 days old) i get a core dump just trying to launch the octave. Backtrace is attached, here are few lines of ktruss output before the SIGSEGV arrived:

3052 1 octave-3.2.4 open("/usr/pkg/libexec/octave/3.2.4/oct/i386--netbsdelf/find.oct", 0, 0x804a0d8) = 3
  3052      1 octave-3.2.4 __fstat30(0x3, 0xbfbfc578) = 0
3052 1 octave-3.2.4 mmap(0, 0x1000, 0x1, 0x1, 0x3, 0, 0, 0) = 0xb94ee000
  3052      1 octave-3.2.4 munmap(0xb94ee000, 0x1000) = 0
3052 1 octave-3.2.4 mmap(0x8048000, 0x1f000, 0x5, 0x2, 0x3, 0, 0, 0) = 0x8029000 3052 1 octave-3.2.4 mmap(0x8047000, 0x1000, 0x3, 0x12, 0x3, 0, 0x1e000, 0) = 0x8047000 3052 1 octave-3.2.4 mmap(0x8048000, 0, 0x3, 0x1012, 0xffffffff, 0, 0, 0) = 0x8048000
  3052      1 octave-3.2.4 close(0x3)              = 0
3052 1 octave-3.2.4 SIGSEGV caught handler=0xbb36f020 mask=0x400 code=0x6

r.
GNU gdb 6.5
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386--netbsdelf"...(no debugging symbols found)

Reading symbols from /usr/pkg/lib/liboctinterp.so.3...done.
Loaded symbols for /usr/pkg/lib/liboctinterp.so.3
Reading symbols from /usr/pkg/lib/liboctave.so.3...done.
Loaded symbols for /usr/pkg/lib/liboctave.so.3
Reading symbols from /usr/pkg/lib/libcruft.so.3...done.
Loaded symbols for /usr/pkg/lib/libcruft.so.3
Reading symbols from /usr/pkg/lib/liblapack.so.3...done.
Loaded symbols for /usr/pkg/lib/liblapack.so.3
Reading symbols from /usr/pkg/lib/libblas.so.1...done.
Loaded symbols for /usr/pkg/lib/libblas.so.1
Reading symbols from /usr/X11R7/lib/libX11.so.6...done.
Loaded symbols for /usr/X11R7/lib/libX11.so.6
Reading symbols from /usr/pkg/lib/libreadline.so.6...done.
Loaded symbols for /usr/pkg/lib/libreadline.so.6
Reading symbols from /usr/lib/libtermcap.so.0...done.
Loaded symbols for /usr/lib/libtermcap.so.0
Reading symbols from /usr/lib/libcurses.so.6...done.
Loaded symbols for /usr/lib/libcurses.so.6
Reading symbols from /usr/pkg/lib/libhdf5.so.0...done.
Loaded symbols for /usr/pkg/lib/libhdf5.so.0
Reading symbols from /usr/lib/libz.so.1...done.
Loaded symbols for /usr/lib/libz.so.1
Reading symbols from /usr/X11R7/lib/libfreetype.so.6...done.
Loaded symbols for /usr/X11R7/lib/libfreetype.so.6
Reading symbols from /usr/X11R7/lib/libGL.so.1...done.
Loaded symbols for /usr/X11R7/lib/libGL.so.1
Reading symbols from /usr/X11R7/lib/libGLU.so.1...done.
Loaded symbols for /usr/X11R7/lib/libGLU.so.1
Reading symbols from /usr/pkg/lib/libf2c.so.0...done.
Loaded symbols for /usr/pkg/lib/libf2c.so.0
Reading symbols from /usr/lib/libstdc++.so.6...done.
Loaded symbols for /usr/lib/libstdc++.so.6
Reading symbols from /usr/lib/libm.so.0...done.
Loaded symbols for /usr/lib/libm.so.0
Reading symbols from /usr/lib/libgcc_s.so.1...done.
Loaded symbols for /usr/lib/libgcc_s.so.1
Reading symbols from /usr/lib/libpthread.so.0...done.
Loaded symbols for /usr/lib/libpthread.so.0
Reading symbols from /usr/lib/libc.so.12...done.
Loaded symbols for /usr/lib/libc.so.12
Reading symbols from /usr/X11R7/lib/libXdmcp.so.6...done.
Loaded symbols for /usr/X11R7/lib/libXdmcp.so.6
Reading symbols from /usr/X11R7/lib/libXau.so.6...done.
Loaded symbols for /usr/X11R7/lib/libXau.so.6
Reading symbols from /usr/X11R7/lib/libXext.so.6...done.
Loaded symbols for /usr/X11R7/lib/libXext.so.6
Reading symbols from /usr/X11R7/lib/libXxf86vm.so.1...done.
Loaded symbols for /usr/X11R7/lib/libXxf86vm.so.1
Reading symbols from /usr/X11R7/lib/libXfixes.so.3...done.
Loaded symbols for /usr/X11R7/lib/libXfixes.so.3
Reading symbols from /usr/X11R7/lib/libXdamage.so.1...done.
Loaded symbols for /usr/X11R7/lib/libXdamage.so.1
Reading symbols from /usr/X11R7/lib/libdrm.so.2...done.
Loaded symbols for /usr/X11R7/lib/libdrm.so.2
Reading symbols from 
/usr/pkg/libexec/octave/3.2.4/oct/i386--netbsdelf/find.oct...done.
Loaded symbols for /usr/pkg/libexec/octave/3.2.4/oct/i386--netbsdelf/find.oct
Reading symbols from /usr/libexec/ld.elf_so...done.
Loaded symbols for /usr/libexec/ld.elf_so
Core was generated by `octave-3.2.4'.
Program terminated with signal 11, Segmentation fault.
#0  0x00000000 in ?? ()
(gdb) bt
#0  0x00000000 in ?? ()
#1  0x080317e3 in frame_dummy () from 
/usr/pkg/libexec/octave/3.2.4/oct/i386--netbsdelf/find.oct
#2  0x08030b68 in _init () from 
/usr/pkg/libexec/octave/3.2.4/oct/i386--netbsdelf/find.oct
#3  0xbbbf4aab in _rtld_call_init_functions () at 
/usr/src/libexec/ld.elf_so/rtld.c:207
#4  0xbbbf5853 in dlopen (name=0xb91af08c 
"/usr/pkg/libexec/octave/3.2.4/oct/i386--netbsdelf/find.oct", mode=2) at 
/usr/src/libexec/ld.elf_so/rtld.c:792
#5  0xba4b2f2c in octave_dlopen_shlib::open (this=0xb9018140, f=@0xbfbfc940) at 
oct-shlib.cc:258
#6  0xbb0c8f13 in octave_dynamic_loader::do_load_oct (this=0xb93312c4, 
fcn_name=@0xbfbfc938, file_name=@0xbfbfc940, relative=false) at 
../liboctave/oct-shlib.h:91
#7  0xbb0c921a in octave_dynamic_loader::load_oct (fcn_name=@0xbfbfc938, 
file_name=@0xbfbfc940, relative=false) at dynamic-ld.cc:515
#8  0xbb344a2f in load_fcn_from_file (file_name=@0xbfbfc9e8, 
dir_name=@0xbfbfc9ec, dispatch_type=@0xbfbfc9f8, fcn_name=@0xbfbfc9f4, 
autoload=false) at parse.y:3431
#9  0xbb3980bd in symbol_table::fcn_info::fcn_info_rep::find_user_function 
(this=0xb91a8bc0) at symtab.cc:797
#10 0xbb39d484 in symbol_table::fcn_info::fcn_info_rep::xfind (this=0xb91a8bc0, 
args=0xb9016aa0, arg_names=@0xbfbfcfac, evaluated_args=@0xbfbfcf34, 
args_evaluated=@0xbfbfcffb) at symtab.cc:705
#11 0xbb39dac8 in symbol_table::fcn_info::fcn_info_rep::find (this=0xb91a8bc0, 
args=0xb9016aa0, arg_names=@0xbfbfcfac, evaluated_args=@0xbfbfcf34, 
args_evaluated=@0xbfbfcffb) at symtab.cc:507
#12 0xbb39dc07 in symbol_table::fcn_info::find (this=0xbfbfcc64, 
args=0xb9016aa0, arg_names=@0xbfbfcfac, evaluated_args=@0xbfbfcf34, 
args_evaluated=@0xbfbfcffb) at symtab.cc:941
#13 0xbb39dd11 in symbol_table::do_find (this=0xb91abcc0, name=@0xbfbfcdf4, 
args=0xb9016aa0, arg_names=@0xbfbfcfac, evaluated_args=@0xbfbfcf34, 
args_evaluated=@0xbfbfcffb, skip_variables=true) at symtab.cc:1152
#14 0xbb39e68a in symbol_table::find (name=@0xbfbfcdf4, args=0xb9016aa0, 
arg_names=@0xbfbfcfac, evaluated_args=@0xbfbfcf34, args_evaluated=@0xbfbfcffb, 
skip_variables=true) at symtab.cc:955
#15 0xbb39ec07 in symbol_table::find_function (name=@0xbfbfcdf4, 
args=0xb9016aa0, arg_names=@0xbfbfcfac, evaluated_args=@0xbfbfcf34, 
args_evaluated=@0xbfbfcffb) at symtab.cc:984
#16 0xbb39f4d2 in symbol_table::symbol_record::find (this=0xb91f54d8, 
args=0xb9016aa0, arg_names=@0xbfbfcfac, evaluated_args=@0xbfbfcf34, 
args_evaluated=@0xbfbfcffb) at symtab.cc:117
#17 0xbb5fb376 in tree_index_expression::rvalue (this=0xb9015bc0, nargout=1) at 
pt-id.h:90
#18 0xbb5f8f73 in tree_index_expression::rvalue1 (this=0xb9015bc0, nargout=1) 
at pt-idx.cc:398
#19 0xbb5df00a in tree_simple_assignment::rvalue1 (this=0xb900ad30) at 
pt-assign.cc:205
#20 0xbb5efbd6 in tree_evaluator::visit_statement (this=0xbbbe776c, 
stmt=@0xb9016a80) at pt-eval.cc:699
#21 0xbb61672b in tree_statement::accept (this=0xb9016a80, tw=@0xbbbe776c) at 
pt-stmt.cc:152
#22 0xbb5eaa3b in tree_evaluator::visit_statement_list (this=0xbbbe776c, 
lst=@0xb90165a0) at pt-eval.cc:735
#23 0xbb61674b in tree_statement_list::accept (this=0xb90165a0, tw=@0xbbbe776c) 
at pt-stmt.cc:216
#24 0xbb5ec7cd in tree_evaluator::visit_if_command_list (this=0xbbbe776c, 
lst=@0xb91fb548) at pt-eval.cc:557
#25 0xbb615278 in tree_if_command_list::accept (this=0xb91fb548, 
tw=@0xbbbe776c) at pt-select.cc:84
#26 0xbb5ea79b in tree_evaluator::visit_if_command (this=0xbbbe776c, 
cmd=@0xb91f57c0) at pt-eval.cc:535
#27 0xbb615298 in tree_if_command::accept (this=0xb91f57c0, tw=@0xbbbe776c) at 
pt-select.cc:133
#28 0xbb5efe3f in tree_evaluator::visit_statement (this=0xbbbe776c, 
stmt=@0xb9016bc0) at pt-eval.cc:669
#29 0xbb61672b in tree_statement::accept (this=0xb9016bc0, tw=@0xbbbe776c) at 
pt-stmt.cc:152
#30 0xbb5eaa3b in tree_evaluator::visit_statement_list (this=0xbbbe776c, 
lst=@0xb90095e0) at pt-eval.cc:735
#31 0xbb61674b in tree_statement_list::accept (this=0xb90095e0, tw=@0xbbbe776c) 
at pt-stmt.cc:216
#32 0xbb4f23a4 in octave_user_function::do_multi_index_op (this=0xb93d84ec, 
nargout=1, args=@0xb900a138) at ov-usr-fcn.cc:454
#33 0xbb4f30e1 in octave_user_function::subsref (this=0xb93d84ec, 
type=@0xbfbfd8cc, idx=@0xbfbfd8a0, nargout=1) at ov-usr-fcn.cc:309
#34 0xbb4f4053 in octave_user_function::subsref (this=0xb93d84ec, 
type=@0xbfbfd8cc, idx=@0xbfbfd8a0) at ov-usr-fcn.h:285
#35 0xbb497ee2 in octave_value::subsref (this=0xbfbfd8a8, type=@0xbfbfd8cc, 
idx=@0xbfbfd8a0, nargout=1) at ov.cc:1059
#36 0xbb5fa7aa in tree_index_expression::rvalue (this=0xb91ab900, nargout=1) at 
pt-idx.cc:387
#37 0xbb5f8f73 in tree_index_expression::rvalue1 (this=0xb91ab900, nargout=1) 
at pt-idx.cc:398
#38 0xbb5df00a in tree_simple_assignment::rvalue1 (this=0xb91aa0d0) at 
pt-assign.cc:205
#39 0xbb5efbd6 in tree_evaluator::visit_statement (this=0xbbbe776c, 
stmt=@0xb91c5900) at pt-eval.cc:699
#40 0xbb61672b in tree_statement::accept (this=0xb91c5900, tw=@0xbbbe776c) at 
pt-stmt.cc:152
#41 0xbb5eaa3b in tree_evaluator::visit_statement_list (this=0xbbbe776c, 
lst=@0xb91c5550) at pt-eval.cc:735
#42 0xbb61674b in tree_statement_list::accept (this=0xb91c5550, tw=@0xbbbe776c) 
at pt-stmt.cc:216
#43 0xbb5ec7cd in tree_evaluator::visit_if_command_list (this=0xbbbe776c, 
lst=@0xb9392498) at pt-eval.cc:557
#44 0xbb615278 in tree_if_command_list::accept (this=0xb9392498, 
tw=@0xbbbe776c) at pt-select.cc:84
#45 0xbb5ea79b in tree_evaluator::visit_if_command (this=0xbbbe776c, 
cmd=@0xb91c2a40) at pt-eval.cc:535
#46 0xbb615298 in tree_if_command::accept (this=0xb91c2a40, tw=@0xbbbe776c) at 
pt-select.cc:133
#47 0xbb5efe3f in tree_evaluator::visit_statement (this=0xbbbe776c, 
stmt=@0xb91c5cd0) at pt-eval.cc:669
#48 0xbb61672b in tree_statement::accept (this=0xb91c5cd0, tw=@0xbbbe776c) at 
pt-stmt.cc:152
#49 0xbb5eaa3b in tree_evaluator::visit_statement_list (this=0xbbbe776c, 
lst=@0xb91c53c0) at pt-eval.cc:735
#50 0xbb61674b in tree_statement_list::accept (this=0xb91c53c0, tw=@0xbbbe776c) 
at pt-stmt.cc:216
#51 0xbb4f23a4 in octave_user_function::do_multi_index_op (this=0xb93d80b4, 
nargout=0, args=@0xb9189d68) at ov-usr-fcn.cc:454
#52 0xbb4f30e1 in octave_user_function::subsref (this=0xb93d80b4, 
type=@0xbfbfe14c, idx=@0xbfbfe120, nargout=0) at ov-usr-fcn.cc:309
#53 0xbb497ea8 in octave_value::subsref (this=0xbfbfe128, type=@0xbfbfe14c, 
idx=@0xbfbfe120, nargout=0) at ov.cc:1061
#54 0xbb5fa7aa in tree_index_expression::rvalue (this=0xb91ab1c0, nargout=0) at 
pt-idx.cc:387
#55 0xbb5f8f73 in tree_index_expression::rvalue1 (this=0xb91ab1c0, nargout=0) 
at pt-idx.cc:398
#56 0xbb5efbd6 in tree_evaluator::visit_statement (this=0xbbbe776c, 
stmt=@0xb91a2fe0) at pt-eval.cc:699
#57 0xbb61672b in tree_statement::accept (this=0xb91a2fe0, tw=@0xbbbe776c) at 
pt-stmt.cc:152
#58 0xbb5eaa3b in tree_evaluator::visit_statement_list (this=0xbbbe776c, 
lst=@0xb91a2ff0) at pt-eval.cc:735
#59 0xbb61674b in tree_statement_list::accept (this=0xb91a2ff0, tw=@0xbbbe776c) 
at pt-stmt.cc:216
#60 0xbb4ee2c6 in octave_user_script::do_multi_index_op (this=0xb91c8000, 
nargout=0, args=@0xbfbfe3e4) at ov-usr-fcn.cc:134
#61 0xbb34394d in source_file (file_name=@0xbfbfe520, context=@0xbfbfe514, 
verbose=false, require_file=true, warn_for=@0xbfbfe51c) at parse.y:3615
#62 0xbb248c6d in execute_pkg_add_or_del (dir=@0xb9338d08, script_file=<value 
optimized out>) at load-path.cc:1795
#63 0xbb248e20 in execute_pkg_add (dir=@0xb9338d08) at load-path.cc:1803
#64 0xbb250714 in load_path::do_set (this=0xb93072b0, p=@0xbfbfe5fc, 
warn=false) at load-path.cc:580
#65 0xbb2508ad in load_path::do_initialize (this=0xb93072b0, 
set_initial_path=true) at load-path.cc:505
#66 0xbb3296d8 in octave_main (argc=1, argv=0xbfbfe7d8, embedded=0) at 
load-path.h:52
#67 0x08048968 in main ()
(gdb) 


Home | Main Index | Thread Index | Old Index