comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » SPAWN EXIT_STATUS not the same as shell. Ideas?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
SPAWN EXIT_STATUS not the same as shell. Ideas? [message #92816] Fri, 04 March 2016 11:43 Go to previous message
Paul Van Delst[1] is currently offline  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}
[Message index]
 
Read Message
Read Message
Previous Topic: Set graphics variables once, function graphics
Next Topic: Problems on the Savitzky-Golay smoothing filter

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 11:42:30 PDT 2025

Total time taken to generate the page: 0.00604 seconds