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

 
 

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

Submitter:  None
Submitted:  Wed 28 May 2014 12:47:51 PM UTC
   
 
Category:  Configuration and Build System Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Segfault, Bus Error, etc.
Status:  Works For Me Assigned to:  None
Originator Name:  wakjah Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 3.8.1
Operating System:  * GNU/Linux Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

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>
Group Member
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


DISPLAY= octave --no-window-system


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>
Group Member
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>
Group Member
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>
Group Member
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 Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by mtmiller (Posted a comment)
  • -email is unavailable- added by None (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 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-11-25 mtmiller StatusInvalid / Not an Octave Bug Works For Me
    2014-11-25 mtmiller StatusNeed Info Invalid / Not an Octave Bug
        Open/ClosedOpen Closed
    2014-05-28 mtmiller StatusNone Need Info

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code