Amazon-ecs-agent: ECS Task stopped with Exit Code 139

Created on 8 Dec 2016  路  2Comments  路  Source: aws/amazon-ecs-agent

ECS cluster lists multiple containers under stopped list that were stopped with following info

  • Stopped reason Essential container in task exited
  • Details Exit Code 139

Can someone please offer any insight into what that code means?

kinquestion

Most helpful comment

I disagree. It'll be because ECS is failing to do something that works elsewhere. I e at the very least a bug in the documentation, but most likely in the logging or something, that led somebody to google "ecs Exit Code 139" because that's all they got. I know a key design goal of ECS is to completely hide any useful information or feedback of what's going wrong so that the customer always is completely blind, but it might be a nice change of pace to get some information occasionally.

All 2 comments

Exit code 139 typically indicates that your program had a segmentation fault and was killed by the kernel. Exit codes starting with 128 usually indicate the receipt of a signal, which you can get by subtracting 128 from the exit code: 139 - 128 = 11 (SIGSEGV). See general information on special exit codes.

I'm going to close this here since this is a general Linux question rather than something ECS specific.

I disagree. It'll be because ECS is failing to do something that works elsewhere. I e at the very least a bug in the documentation, but most likely in the logging or something, that led somebody to google "ecs Exit Code 139" because that's all they got. I know a key design goal of ECS is to completely hide any useful information or feedback of what's going wrong so that the customer always is completely blind, but it might be a nice change of pace to get some information occasionally.

Was this page helpful?
0 / 5 - 0 ratings