Error 134 Linux
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more exit code 134 java about Stack Overflow the company Business Learn more about hiring developers or posting error code 134 wow ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack
Unix Signal 6
Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Strange return value “134” to call gawk in bash script up
Linux Signal 6
vote 1 down vote favorite I met a very very strange issue when using gawk in bash script. in this script, i use a function to do some text processing. Even a very simple gawk command will return error 134 #!/bin/bash testFunc() { log "Before gawk: $?" gawk '{print}' file log "After gawk: $?" } if i manually run this script in console, it will work perfectly, $? will process finished with exit code 134 python always be 0 which means success, but if i use this script as linux startup script in etc/rc.d/ for level 3, after gawk is executed, the $? is always 134, i don't know what's the meaning of 134. if i replace "gawk '{print}' file" to "gawk --version", the result is ok, $? is 0. linux bash awk share|improve this question edited Apr 16 '14 at 4:13 asked Apr 16 '14 at 3:57 mailzyok 122110 This would imply that the previous command did not execute successfully. –devnull Apr 16 '14 at 4:01 No, if i replace "gawk '{print}' file" to "gawk --version", the result is ok, $? is 0 –mailzyok Apr 16 '14 at 4:05 What is the content of file? –chepner Apr 16 '14 at 4:27 the content of file is like below: abc,1,2[new line] def,3,4 –mailzyok Apr 16 '14 at 4:39 add a comment| 1 Answer 1 active oldest votes up vote 3 down vote Exit code 134 means your program was aborted (received SIGABRT), perhaps as a result of a failed assertion. You may need give the full path of command log and full path of file Here is sigal list by command kill kil
work correctly without it enabled. Please turn JavaScript back on and reload this page. Please enter a title. You can not post a blank message. Please type your message and try again. More discussions in Many-core Applications Research Community
Linux Sigabrt
All PlacesMany-core Applications Research Community 3 Replies Latest reply on Apr linux exit codes 4, 2011 10:44 AM by aprell Error code 134? bamarker Apr 1, 2011 10:20 AM Can somebody tell exit code 137 me what an error code of 134 means? It's not in the error code PDF.Thanks! 17995Views Tags: none (add) This content has been marked as final. Show 3 replies 1. http://stackoverflow.com/questions/23098695/strange-return-value-134-to-call-gawk-in-bash-script Re: Error code 134? tedk Apr 1, 2011 11:34 AM (in response to bamarker) It's a new one for me. It's coming from bash though. If you can ssh to a core directly and run your program, you'll get a better error message ... from Linux itself. If your program runs on several cores, you may have to bring up https://communities.intel.com/thread/20673 sccKonsole, configure input to be broadcasted to invoke your program. You'll also need to grab the pssh paratemrs that rccerun uses, if you were using rccerun.sccKonsole is going to want a desktop. So you need to VNC in. If your remote connection is not good enough for VNC, send me mail about how to run your program and I can try it out locally. Like Show 0 Likes(0) Actions 2. Re: Error code 134? bamarker Apr 1, 2011 4:10 PM (in response to tedk) Thanks, Ted! Like Show 0 Likes(0) Actions 3. Re: Error code 134? aprell Apr 4, 2011 10:44 AM (in response to bamarker) Exit code 134 means your program was aborted (received SIGABRT), perhaps as a result of a failed assertion.If you program with assertions and want to debug, I recommend the following: redirect stderr to stdout with a simpledup2(STDOUT_FILENO, STDERR_FILENO);at the beginning of your program (dup2 is declared in unistd.h), and you don't have to ssh to the cores directly to see what's written to stderr. Like Show 0 Likes(0) Actions Go to
>ExampleComments1Catchall for general errorslet "var1 = 1/0"Miscellaneous errors, such http://tldp.org/LDP/abs/html/exitcodes.html as "divide by zero" and other impermissible operations2Misuse of shell builtins (according to Bash documentation)empty_function() {}Missing keyword https://www.student.cs.uwaterloo.ca/~cs136/seashell/docs/seashell-error-codes.html or command, or permission problem (and diff return code on a failed binary file comparison).126Command invoked cannot execute/dev/nullPermission exit code problem or command is not an executable127"command not found"illegal_commandPossible problem with $PATH or a typo128Invalid argument to exitexit 3.14159exit takes only integer args in the range 0 - 255 (see first footnote)128+nFatal error signal "n"kill -9 $PPID of script$? returns 137 (128 + 9)130Script terminated by Control-CCtl-CControl-C is fatal error signal 2, (130 = 128 + 2, see above)255*Exit status out of rangeexit -1exit takes only integer args in the range 0 - 255
Errors1.4Common Error Codes►1.4Common Error Codes1.4.1Code 0 - Successful Completion1.4.2Error code 1 - General Error1.4.3Error code 134 - Program Abort1.4.4Error code 136 - Erroneous Arithmetic Operation1.4.5Error code 139 - Segmentation Fault1.4.6Error code 255 - Program Timed OutOn this page:1.4.1Code 0 - Successful Completion1.4.2Error code 1 - General Error1.4.3Error code 134 - Program Abort1.4.4Error code 136 - Erroneous Arithmetic Operation1.4.5Error code 139 - Segmentation Fault1.4.6Error code 255 - Program Timed Out2.5.7 (stable-22b8a3d)← prevupnext →1.4Common Error CodesThis document outlines the meaning of several commonly-encountered error codes in Seashell.1.4.1Code 0 - Successful Completion1.4.2Error code 1 - General Error1.4.3Error code 134 - Program Abort1.4.4Error code 136 - Erroneous Arithmetic Operation1.4.5Error code 139 - Segmentation Fault1.4.6Error code 255 - Program Timed Out1.4.1Code 0 - Successful CompletionThis is NOT an error code, the one exception among all other codes you might encounter. If a program returns this code, then your program has not crashed and successfully completed (ie. reached the end of main).1.4.2Error code 1 - General ErrorThis is a general error code that programs can return to indicate that something went wrong, but not as an indication of what specifically went wrong. This error code shouldn’t happen, unless you return 1 from main, or call exit(1) at any point in your program. If you obtain this error (and don’t satisfy the conditions above), reload Seashell and try running your code again.1.4.3Error code 134 - Program AbortThis code appears when an assertion fails.1.4.4Error code 136 - Erroneous Arithmetic OperationSome error occurred when the computer attempted some form of arithmetic operation. This is likely caused by: - Division by zero1.4.5Error code 139 - Segmentation FaultSuch an error is caused by some form of invalid memory access. This could be to access memory that the program does not have access to, or can also be caused by running out of memory. If you have received this error: - Your program/function is likely recursing infinitely, and thus running out of memory. - You have attempted to dereference/access an invalid pointer address - Dereferencing NULL - Attempting to access memory that was not returned through malloc - Accessing memory that has been free-d1.4.6Error code 255 - Program Timed OutYour program took too long to run, and was terminated by Seashell.← prevupnext &ra