bugGNU Octave - Bugs: bug #30668, Segmentation fault during 'make'

 
 

bug #30668: Segmentation fault during 'make'

Submitted by:  None
Submitted on:  Fri 06 Aug 2010 04:15:28 AM UTC  
 
Category: Configuration and Build SystemSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Build Failure
Status: NoneAssigned to: None
Originator Name: Mahesh SivasambuOriginator Email: -unavailable-
Open/Closed: ClosedRelease: 3.2.4
Operating System: Mac OS

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Mon 23 Aug 2010 04:19:21 AM UTC, comment #3:

To add to the original bug report:

The bug vanishes when `make' is done on Mac OS X 10.6.3 with the new Xcode 3.2.3. Maybe there's a problem in OS X 10.5 with the old xcode 3.1.3.

Anonymous
Mon 23 Aug 2010 01:53:46 AM UTC, comment #2:

Just for completion: MacPorts does install version 3.2.4 correctly and it functions as expected -- so, this version can be made to work on OSX.

Interestingly, I still see this issue when compiling 3.3.52 using a non-Apple GCC (e.g., 4.4 as provided by MacPorts) -- if I use Apple's GCC (from XCode 3.1.3), then I get the issues in bug #30685. The actual error I get is (from gdb):

Program received signal EXC_BAD_ACCESS,
Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x00000000
0x03c1d156 in __gnu_cxx::__exchange_and_add ()
(gdb) bt
#0 0x03c1d156 in __gnu_cxx::__exchange_and_add ()
#1 0x03bc1526 in std::locale::operator= ()
#2 0x03bc041e in std::ios_base::_M_init ()
#3 0x03bd44ba in std::basic_ios<char, std::char_traits<char> >::init ()
#4 0x03bcdaa9 in std::basic_ofstream<char, std::char_traits<char> >::basic_ofstream ()
#5 0x013a1653 in global constructors keyed to pager.cc:59

with the originating issue coming from src/pager.cc:59
---
static std::ofstream external_diary_file;
---

Michael Dickens <michaelld>
Sun 08 Aug 2010 07:40:51 PM UTC, comment #1:

When creating the pdf documentation the build process calls the newly built octave executable to create various plot images. The octave that was built does not run which caused the crashes during make. Continuing with 'make install' only installed the failing executable.

It's usually best to run
make
make check
make install

so that the executable is tested before being installed.

For build problems like this I think you will have more luck posting a request for help at the octave help mailing list. http://www.gnu.org/software/octave/archive.html

You might also want to take a look at this page with special instructions for building on Mac OS:
http://wiki.octave.org/wiki.pl?OctaveForMac

Rik <rik5>
Project Administrator
Fri 06 Aug 2010 04:15:28 AM UTC, original submission:

I am trying to compile octave from source on a MacBook Pro running Mac Os X 10.5.7. During 'make' the following happens:

-------------
.....
makeinfo --html --ifinfo --output=HTML -I.. -I. -I./.. ./octave.texi
../../run-octave -f -q -H ./mk_doc_cache.m doc-cache ../../src/DOCSTRINGS ../../scripts/DOCSTRINGS || rm -f doc-cache
panic: Segmentation fault -- stopping myself...
attempting to save variables to `octave-core'...
save to `octave-core' complete
^Cmake[3]: *** Deleting file `doc-cache'
^C

^Cpanic: attempted clean up apparently failed -- aborting...
/bin/sh: line 1: 39147 Abort trap ../../run-octave -f -q -H ./mk_doc_cache.m doc-cache ../../src/DOCSTRINGS ../../scripts/DOCSTRINGS
make[2]: *** [interpreter] Interrupt
make[1]: *** [doc] Interrupt
make: *** [all] Interrupt

-----------------------------------

I am attaching the files octave-3.2.4/config.log and octave-3.2.4/doc/interpreter/octave-core.

If I nevertheless go ahead after this step and say 'make install', it does intall a working octave binary. However, that binary also exits with complaints:

------------------------
epun:/tmp/bin> ./octave
GNU Octave, version 3.2.4
Copyright (C) 2009 John W. Eaton and others.
This is free software; see the source code for copying conditions.
There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. For details, type `warranty'.

Octave was configured for "i386-apple-darwin9.7.1".

Additional information about Octave is available at http://www.octave.org.

Please contribute if you find this software useful.
For more information, visit http://www.octave.org/help-wanted.html

Report bugs to <bug@octave.org> (but first, please read
http://www.octave.org/bugs.html to learn how to write a helpful report).

For information about changes from previous versions, type `news'.

octave:1> exit

panic: Bus error -- stopping myself...
^C^CPress Control-C again to abort.
^Cpanic: attempted clean up apparently failed -- aborting...
^C^C

---------------------------

Thanks in advance for any help in resolving these problems. I have posted a bzipped tar file of my entire octave-3.2.4 directory at http://home.iitk.ac.in/~smahesh/oct.tar.bz2
Mahesh

Anonymous

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by michaelld (Posted a comment)
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by None (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 08 Aug 2010 07:40:51 PM UTCrik5Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1