bugGNU Octave - Bugs: bug #42450, Octave crashes at startup after...

 
 

bug #42450: Octave crashes at startup after upgrading to Ubuntu 14.04

Submitted by:  None
Submitted on:  Wed 28 May 2014 12:47:51 PM UTC  
 
Category: Configuration and Build SystemSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Segfault, Bus Error, etc.
Status: Works For MeAssigned to: None
Originator Name: wakjahOriginator Email: -unavailable-
Open/Closed: ClosedRelease: 3.8.1
Operating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

(Jump to the original submission Jump to the original submission)

Tue 25 Nov 2014 02:15:32 AM UTC, comment #7:

There hasn't been any new information on this bug and no confirmations, so I'm closing it as invalid. This is likely not a bug in Octave but rather a system configuration problem.

If you are still unable to run Octave without this crash on startup, on 14.04 or any newer version of Ubuntu, please try reporting a bug against the Ubuntu package of Octave.

Mike Miller <mtmiller>
Project Administrator
Fri 30 May 2014 09:10:39 AM UTC, comment #6:

Tried the command you suggested - no difference.

I'm sure it's not nVidia's drivers now, as I am re-installing the drivers to try and sort out another issue. Did a sudo apt-get purge nvidia* from root shell (no X started), rebooted, and tried to run octave - same result, segfault (note that this is before reinstalling nVidia drivers, so there are none on the system).

Anonymous
Thu 29 May 2014 04:30:16 PM UTC, comment #5:

I don't know, but you can try avoiding any graphics initialization to see if Octave starts that way, try

It could be possible that nvidia's libraries are interfering somehow, I don't have a Ubuntu 14.04 with nvidia to test that combination.

Mike Miller <mtmiller>
Project Administrator
Thu 29 May 2014 02:54:47 PM UTC, comment #4:

I don't think there's anything obviously different, except for the fact that it's Lubuntu not straight Ubuntu. Could this be causing the issue?

Aside from the above, I do recall that prior to upgrade Octave would complain about a bad nVidia driver setup (or that there were two installed, or something like that - I can't remember exactly). This should be rectified now, though, as I have installed the nVidia v331 driver from the main package repository.

Anonymous
Thu 29 May 2014 01:26:23 AM UTC, comment #3:

Unable to reproduce on Ubuntu 14.04 with octave 3.8.1 installed from the official repositories.

I can set a breakpoint on pthread_mutex_init and see essentially the same stack trace that you see, but no segmentation fault occurs for me.

Is there anything obviously unusual about your system versus a clean install of Ubuntu 14.04? Things like an alternative libc, debug replacement libraries, resource limitations enforced, AppArmor or SELinux?

The error you are seeing is coming from initializing a pthread mutex when the liboctave library is loaded, before the program's main() function even executes.

Mike Miller <mtmiller>
Project Administrator
Wed 28 May 2014 02:37:20 PM UTC, comment #2:

I figured it would be a configuration problem as I couldn't find any similar issues when searching (hence why I filed under Config. and Build category :) )

I have done a apt-get --reinstall, as requested; no errors were reported, although it did say some packages not required:

The following packages were automatically installed and are no longer required:
gnome-desktop-data libgdome2-0 libgdome2-cpp-smart0c2a libgraphite2-3:i386 libgtkmathview0c2a liblink-grammar4 libreoffice-l10n-en-gb libslicot0 link-grammar-dictionaries-en

After this, the reinstallation completed successfully.

Yes, I still get a segmentation fault when running with --norc option.

Anonymous
Wed 28 May 2014 02:15:20 PM UTC, comment #1:

Thanks for your bug report. This is likely a local configuration problem on your system, because many users are able to run Octave 3.8 without problems on Ubuntu 14.04.

Did the package installation from Ubuntu repositories complete successfully? Can you "sudo apt-get --reinstall install octave" just to be sure it completes without errors or warnings?

Do you get a segmentation fault if you run "/usr/bin/octave --norc"?

Mike Miller <mtmiller>
Project Administrator
Wed 28 May 2014 12:47:51 PM UTC, original submission:

After updating distribution to Ubuntu 14.04, Octave 3.8 crashes prior to startup with a segmentation fault.

This occurs both with the version installed from the package manager, and if it is built and installed manually.

GDB output / backtrace running the version installed from package manager:

Starting program: /usr/bin/octave
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
process 13255 is executing new program: /usr/bin/octave-cli
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff681ceb4 in pthread_mutex_init (mutex=0x606fc0, mutexattr=0x7fffffffdf90) at forward.c:188
188 forward.c: No such file or directory.
(gdb) backtrace
#0 0x00007ffff681ceb4 in pthread_mutex_init (mutex=0x606fc0, mutexattr=0x7fffffffdf90) at forward.c:188
#1 0x00007ffff62bdaa6 in octave_mutex::octave_mutex() () from /usr/lib/x86_64-linux-gnu/liboctave.so.2
#2 0x00007ffff5744095 in ?? () from /usr/lib/x86_64-linux-gnu/liboctave.so.2
#3 0x00007ffff7dea13a in call_init (l=<optimised out>, argc=argc@entry=1, argv=argv@entry=0x7fffffffe048, env=env@entry=0x7fffffffe058) at dl-init.c:78
#4 0x00007ffff7dea223 in call_init (env=<optimised out>, argv=<optimised out>, argc=<optimised out>, l=<optimised out>) at dl-init.c:36
#5 _dl_init (main_map=0x7ffff7ffe1c8, argc=1, argv=0x7fffffffe048, env=0x7fffffffe058) at dl-init.c:126
#6 0x00007ffff7ddb30a in _dl_start_user () from /lib64/ld-linux-x86-64.so.2
#7 0x0000000000000001 in ?? ()
#8 0x00007fffffffe385 in ?? ()
#9 0x0000000000000000 in ?? ()

Output is almost identical with the version built and installed manually (installed under /opt/octave3.8)

GCC version, if this helps, is: 4.8.2

Note that running make check also results in segfault.

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 mtmiller (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):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 25 Nov 2014 02:15:50 AM UTCmtmillerStatusInvalid=>Works For Me
    Tue 25 Nov 2014 02:15:32 AM UTCmtmillerStatusNeed Info=>Invalid
      Open/ClosedOpen=>Closed
    Wed 28 May 2014 02:15:20 PM UTCmtmillerStatusNone=>Need Info

    Back to the top


    Powered by Savane 3.1-cleanup1