From: LU Urquhart on
I am running matlab on a linux cluster. When I run matlab interactively my script runs fine and the output is as expected. But when I try to run matlab non-interactively using the command:

matlab -logfile "log.txt" -r "doit2" -nosplash

I get a floating point exception error. I have pasted the output below. Any help would be very appreciated.From reading some posts I tried to check the GLIBC compatability and the details are at the bottom of hte post.

------------------------------------------------------------------------
Floating point exception detected at Tue Jul 6 10:45:32 2010
------------------------------------------------------------------------

Configuration:
MATLAB Version: 7.8.0.347 (R2009a)
MATLAB License: ######blocked#######
Operating System: Linux 2.6.9-67.ELsmp #1 SMP Wed Nov 7 13:56:44 EST 2007 x86_64
GNU C Library: 2.3.4 stable
Window System: No active display
Current Visual: None
Processor ID: x86 Family 15 Model 1 Stepping 3, AuthenticAMD
Virtual Machine: Java 1.6.0_04-b12 with Sun Microsystems Inc. Java HotSpot(TM) 64-Bit Server VM mixed mode
Default Encoding: UTF-8

Fault Count: 1

Register State:
rax = 000000000f4d007f rbx = 0000002ac44040e0
rcx = 00000000409f4600 rdx = 0000000000000000
rbp = 00000000409f46b0 rsi = 0000002ac0038860
rdi = 0000002ac002afa8 rsp = 00000000409f44e0
r8 = 0000002ac44040d0 r9 = 0000000000000000
r10 = 00000000409f4738 r11 = 0000000000000000
r12 = 0000002ac0038860 r13 = 0000002ac4203440
r14 = 0000000000000000 r15 = 0000000000000000
rip = 00000037e4b07927 flg = 0000000000010246

Stack Trace:
[0] ld-linux-x86-64.so.2:0x00000037e4b07927(0x2a00000001, 0, 5, 0x409f47c0)
[1] ld-linux-x86-64.so.2:0x00000037e4b090c0(0, 0, 0xffffffff80000002, 0x37e4f6b682)
[2] libc.so.6:0x00000037e4ff8980(0, 0x40a00948, 0x409f49a0, 0x37e4ff8740)
[3] ld-linux-x86-64.so.2:0x00000037e4b0af00(0x006d5940, 0x37e4b0af00, 0, 0x40a00948)
[4] libdl.so.2:0x00000037e5401054(0x409f4ba0, 0x2a955986f1, 0x2ac37a2a10, 0x2a955986f1)

This error was detected while a MEX-file was running. If the MEX-file
is not an official MathWorks function, please examine its source code
for errors. Please consult the External Interfaces Guide for information
on debugging MEX-files.

..........



>> !uname -a
Linux cl009 2.6.18-128.el5 #1 SMP Wed Dec 17 11:41:38 EST 2008 x86_64 x86_64 x86_64 GNU/Linux
>> !/lib/libc.so.6
GNU C Library stable release version 2.5, by Roland McGrath et al.
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 4.1.2 20080704 (Red Hat 4.1.2-44).
Compiled on a Linux 2.6.9 system on 2009-01-05.
Available extensions:
The C stubs add-on version 2.1.2.
crypt add-on version 2.1 by Michael Glad and others
GNU Libidn by Simon Josefsson
GNU libio by Per Bothner
NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk
Native POSIX Threads Library by Ulrich Drepper et al
BIND-8.2.3-T5B
RT using linux kernel aio