bugGNU Octave - Bugs: bug #32315, segmentation fault when starting...

 
 

bug #32315: segmentation fault when starting up octave-3.3.91

Submitter:  Karsten Trulsen <karstent>
Submitted:  Tue 01 Feb 2011 12:41:13 PM UTC
   
 
Category:  Configuration and Build System Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Segfault, Bus Error, etc.
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 20 Feb 2012 08:12:07 PM UTC, comment #3: 

This bug appears to be a duplicate of 30685 which has been fixed for release 3.6.1 and is now closed.  Closing this report as well.

Rik <rik5>
Group administrator
Wed 02 Feb 2011 08:30:01 PM UTC, comment #2: 

This problem looks like a duplicate of

https://savannah.gnu.org/bugs/?30685

John W. Eaton <jwe>
Group administrator
Wed 02 Feb 2011 08:50:51 AM UTC, comment #1: 


$ valgrind octave
==8471== Memcheck, a memory error detector
==8471== Copyright (C) 2002-2009, and GNU GPL'd, by Julian Seward et al.
==8471== Using Valgrind-3.5.0 and LibVEX; rerun with -h for copyright info
==8471== Command: octave
==8471==
==8471==
==8471== Process terminating with default action of signal 11 (SIGSEGV)
==8471==  Bad permissions for mapped region at address 0x5E391F0
==8471==    at 0x5E391F0: ??? (in /work/local/lib/octave-3.3.91/liboctinterp-3.3.91.so)
==8471==    by 0x53FE4D0: octave_set_signal_handler(int, void (*)(int), bool) (sighandlers.cc:225)
==8471==    by 0x53FE599: octave_catch_interrupts() (sighandlers.cc:460)
==8471==    by 0x53FE602: install_signal_handlers() (sighandlers.cc:529)
==8471==    by 0x53D4704: octave_main (octave.cc:663)
==8471==    by 0x9BCF993: (below main) (in /lib64/libc-2.5.so)
==8471==
==8471== HEAP SUMMARY:
==8471==     in use at exit: 465,761 bytes in 2,468 blocks
==8471==   total heap usage: 5,142 allocs, 2,674 frees, 1,121,799 bytes allocated
==8471==
==8471== LEAK SUMMARY:
==8471==    definitely lost: 52 bytes in 1 blocks
==8471==    indirectly lost: 240 bytes in 10 blocks
==8471==      possibly lost: 257,920 bytes in 1,262 blocks
==8471==    still reachable: 207,549 bytes in 1,195 blocks
==8471==         suppressed: 0 bytes in 0 blocks
==8471== Rerun with --leak-check=full to see details of leaked memory
==8471==
==8471== For counts of detected and suppressed errors, rerun with: -v
==8471== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 6 from 4)




gdb octave
GNU gdb (GDB) Red Hat Enterprise Linux (7.0.1-32.el5_6.2)
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /work/local/bin/octave...done.
(gdb) run
Starting program: /work/local/bin/octave
[Thread debugging using libthread_db enabled]

Program received signal SIGSEGV, Segmentation fault.
0x00002aaaabcdc1f0 in sigemptyset ()
   from /mn/anatu/ansatte-u1/karstent/local/lib/octave-3.3.91/liboctinterp-3.3.91.so
(gdb) where
#0  0x00002aaaabcdc1f0 in sigemptyset ()
   from /mn/anatu/ansatte-u1/karstent/local/lib/octave-3.3.91/liboctinterp-3.3.91.so
#1  0x00002aaaab2a14d1 in octave_set_signal_handler (sig=2,
    handler=0x2aaaab2a1a40 <sigint_handler(int)>, restart_syscalls=true)
    at sighandlers.cc:225
#2  0x00002aaaab2a159a in octave_catch_interrupts () at sighandlers.cc:460
#3  0x00002aaaab2a1603 in install_signal_handlers () at sighandlers.cc:529
#4  0x00002aaaab277705 in octave_main (argc=1, argv=0x7fffffffe1a8, embedded=0)
    at octave.cc:663
#5  0x00002aaaafbec994 in __libc_start_main () from /lib64/libc.so.6
#6  0x0000000000400649 in _start ()
(gdb)



Octave is now configured for x86_64-unknown-linux-gnu

  Source directory:            .
  Installation prefix:         /mn/anatu/ansatte-u1/karstent/local
  C compiler:                  gcc   -Wall -W -Wshadow -Wformat -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings -Wcast-align -Wcast-qual -g -O2 -pthread
  C++ compiler:                g++  -I/local/include -I/local/include/freetype2 -I/local/include -I/local/include    -Wall -W -Wshadow -Wold-style-cast -Wformat -Wpointer-arith -Wwrite-strings -Wcast-align -Wcast-qual -g -O2
  Fortran compiler:            gfortran -O
  Fortran libraries:            -L/mn/anatu/ansatte-u1/karstent/local/lib -L/usr/lib/gcc/x86_64-redhat-linux/4.1.2 -L/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -lgfortranbegin -lgfortran -lm
  Lex libraries:
  LIBS:                        -lm

  AMD CPPFLAGS:
  AMD LDFLAGS:
  AMD libraries:
  BLAS libraries:              -lblas
  CAMD CPPFLAGS:
  CAMD LDFLAGS:
  CAMD libraries:
  CARBON libraries:
  CCOLAMD CPPFLAGS:
  CCOLAMD LDFLAGS:
  CCOLAMD libraries:
  CHOLMOD CPPFLAGS:
  CHOLMOD LDFLAGS:
  CHOLMOD libraries:
  COLAMD CPPFLAGS:
  COLAMD LDFLAGS:
  COLAMD libraries:
  CURL CPPFLAGS:
  CURL LDFLAGS:
  CURL libraries:
  CXSPARSE CPPFLAGS:
  CXSPARSE LDFLAGS:
  CXSPARSE libraries:
  DL libraries:                -ldl
  FFTW3 CPPFLAGS:
  FFTW3 LDFLAGS:
  FFTW3 libraries:             -lfftw3
  FFTW3F CPPFLAGS:
  FFTW3F LDFLAGS:
  FFTW3F libraries:            -lfftw3f
  fontconfig CFLAGS:           -I/local/include
  fontconfig LIBS:             -L/local/lib -lfontconfig
  FT2_CFLAGS:                  -I/local/include/freetype2 -I/local/include
  FT2_LIBS:                    -L/local/lib -Wl,--rpath -Wl,/local/lib -lfreetype -lz
  GLPK CPPFLAGS:
  GLPK LDFLAGS:
  GLPK libraries:
  graphics CFLAGS:
  graphics LIBS:
  Magick++ CPPFLAGS:
  Magick++ LDFLAGS:
  Magick++ libraries:
  HDF5 CPPFLAGS:
  HDF5 LDFLAGS:
  HDF5 libraries:
  LAPACK libraries:            -llapack
  OPENGL libraries:            -L/local/lib -lfontconfig   -lGL -lGLU
  PTHREAD flags:               -pthread
  PTHREAD libraries:
  QHULL CPPFLAGS:
  QHULL LDFLAGS:
  QHULL libraries:
  QRUPDATE libraries:
  READLINE libraries:          -lreadline
  REGEX libraries:             -L/local/lib -lpcre
  TERM libraries:              -lncurses
  UMFPACK libraries:
  X11 include flags:
  X11 libraries:               -lX11
  Z CPPFLAGS:
  Z LDFLAGS:
  Z libraries:                 -lz

  Default pager:               less
  gnuplot:                     gnuplot

  Do internal array bounds checking:  true
  Build static libraries:             false
  Build shared libraries:             true
  Dynamic Linking:                    true (dlopen)
  Include support for GNU readline:   true
  64-bit array dims and indexing:     false


Karsten Trulsen <karstent>
Tue 01 Feb 2011 12:41:13 PM UTC, original submission:  

I attempted to build octave-3.3.91 on target x86_64-redhat-linux (recognized as x86_64-unknown-linux-gnu by octave) using
gcc version 4.1.2 20080704 (Red Hat 4.1.2-50)

Octave was configured with
./configure --prefix=$INSTALL --without-curl --enable-bounds-check --with-blas=/usr/lib/atlas-sse2/libptf77blas

The installed program starts up with a segmentation fault.  I attach output from valgrind and gdb, as well as the configuration summary produced by configure.

Karsten Trulsen <karstent>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #22578:  octavebug1 added by karstent (2KiB - application/octet-stream)
file #22579:  octavebug3 added by karstent (3KiB - application/octet-stream)
file #22580:  octavebug2 added by karstent (1KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by jwe (Posted a comment)
  • -email is unavailable- added by karstent (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2012-02-20 rik5 StatusNone Fixed
        Open/ClosedOpen Closed
    2011-02-01 karstent Attached File- Added octavebug1, #22578
        Attached File- Added octavebug3, #22579
        Attached File- Added octavebug2, #22580

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code