Call_external Problem - File size limit exceed (core dump) [message #32683] |
Thu, 31 October 2002 07:39  |
ninghai
Messages: 3 Registered: October 2002
|
Junior Member |
|
|
Try running call_external() function on linux and HP-UX, seperately.
Same C code.
On linux 2.4.9-31, gcc-2.96, IDL 5.4
gcc -c -fPIC -g -Wall test.c to get obj file
ld -shared -o test.so test.o to get lib file
Give "File size limit exceed (core dump)" (.so file is only 38K)
Then jump out of idl.
On HP-UX, IDL 5.3
cc +z -C test.c
ld -b -o test.sl test.o
No problem.
Any hint on why it happens?
|
|
|
Re: Call_external Problem - File size limit exceed (core dump) [message #32767 is a reply to message #32683] |
Fri, 01 November 2002 07:08  |
Nigel Wade
Messages: 286 Registered: March 1998
|
Senior Member |
|
|
Ninghai Sun wrote:
> Try running call_external() function on linux and HP-UX, seperately.
> Same C code.
>
> On linux 2.4.9-31, gcc-2.96, IDL 5.4
> gcc -c -fPIC -g -Wall test.c to get obj file
> ld -shared -o test.so test.o to get lib file
>
> Give "File size limit exceed (core dump)" (.so file is only 38K)
> Then jump out of idl.
>
> On HP-UX, IDL 5.3
> cc +z -C test.c
> ld -b -o test.sl test.o
>
> No problem.
>
> Any hint on why it happens?
What is your external code doing? It sounds like it's creating an output
file somewhere which is larger than is allowed by your limits.
You can see what the maximum allowed file size is by using the command
'ulimit -f'.
--
Nigel Wade, System Administrator, Space Plasma Physics Group,
University of Leicester, Leicester, LE1 7RH, UK
E-mail : nmw@ion.le.ac.uk
Phone : +44 (0)116 2523568, Fax : +44 (0)116 2523555
|
|
|