SPAWN EXIT_STATUS not the same as shell. Ideas? [message #92816] |
Fri, 04 March 2016 11:43  |
Paul Van Delst[1]
Messages: 1157 Registered: April 2002
|
Senior Member |
|
|
Hello,
When I run a command in the shell I get the following result with a
non-zero exit status:
-----%<-----
$ lblrtm
Program received signal SIGSEGV: Segmentation fault - invalid memory
reference.
Backtrace for this error:
#0 0x7F1874C5AB07
#1 0x7F1874C5B11E
#2 0x3000C3269F
#3 0x45C2E5 in eminit_
#4 0x473F4A in xmerge_
#5 0x408F96 in xlayer_
#6 0x429333 in MAIN__ at lblrtm.f90:0
Segmentation fault (core dumped)
$ echo $?
139
-----%<-----
When I run the same command in my IDL script via spawn, I see the following:
-----%<-----
IDL> SPAWN, 'lblrtm', stdout, stderr, EXIT_STATUS = exit_stat
IDL> foreach s, stderr do print, s
Program received signal SIGSEGV: Segmentation fault - invalid memory
reference.
Backtrace for this error:
#0 0x7F75D828DB07
#1 0x7F75D828E11E
#2 0x3000C3269F
#3 0x45C2E5 in eminit_
#4 0x473F4A in xmerge_
#5 0x408F96 in xlayer_
#6 0x429333 in MAIN__ at lblrtm.f90:0
IDL> print, exit_stat
0
-----%<-----
Umm...anyone know why my IDL EXIT_STATUS (0) is different from my shell
exit status (139)?
Do I need an extra switch in the SPAWN command or...?
Thanks for any info.
cheers,
paulv
p.s.
IDL> print, !version
{ x86_64 linux unix linux 8.3 Nov 15 2013 64 64}
|
|
|