取消
顯示結果 
搜尋替代 
您的意思是: 

cron job : 1019497 Memory fault - core dumped

cron job : 1019497 Memory fault - core dumped

OS : Tru64 5.1B, 系統上設定了一支 cron job, 每小時執行一次, 平常都正常 work, 但昨天 15:00 執行的那一次, 卻報出下面錯誤訊息, 之後又恢復正常, 請問可能的原因是?





/ck_top_process.sh: 1019497 Memory fault - core dumped

/ck_top_process.sh: test: argument expected





7 回覆

cron job : 1019497 Memory fault - core dumped

完整訊息如下, 另說明此 script 執行時不需輸入參數



/ck_top_process.sh: 1019497 Memory fault - core dumped

/ck_top_process.sh: test: argument expected





*************************************************

Cron: The previous message is the standard output

and standard error of the following crontab command:



/ck_top_process.sh

cron job : 1019497 Memory fault - core dumped

Hi Eric,



The "Memory fault - core dumped" was gotten from E-mail after cron running. It indicates it will always failed to run via cron and gets a "core" file in /.



See the /var/adm/cron/log updated, it had a no-zero return code to "rc=XX" value while the

"ck_top_process.sh" running in cron.



If it works to login shell but failed from cronjobs, please assign all of variables defined before the ck_top_process.sh schedule to run.



For example,

# crontab -l

..

0 15 * * * . /.profile; /ck_top_process.sh



Best regards,

Richard.

cron job : 1019497 Memory fault - core dumped

! < root 529529 cr /ck_top_process.sh rc=1 Mon Jul 30 15:00:00 2007



昨天 15:00 執行的時候的確出現 rc=1, 這是什麼意思?

但是並無做任何變更, 之後又恢復正常, 如最近一次執行



! < root 661757 cr /ck_top_process.sh rc=0 Tue Jul 31 13:00:01 2007

cron job : 1019497 Memory fault - core dumped

Hi,



The rc (Return Code) is equal to "0" indicates the job was completed to run, otherwaise it failed. It sames as the following testing.



# ls | grep vmunix

genvmunix

vmunix

# echo $?

0

# ls | grep abcd

# echo $?

1 <=== The above command is failed.

#



The core dump should be analyzed by the troubleshooting from the shell "ck_top_process.sh" debug that can't trace via cron.



See the /core file is generated by which process?

# ls -l /core <== Created at the ck_top_process running.

# file /core



RGDs,

Richard.

cron job : 1019497 Memory fault - core dumped

# ls -l /core

-rw------- 1 root system 6946816 Jul 30 15:00 /core

# file /core

/core: core dump, generated from 'top'



-----------

ck_top_process.sh 裡面的確用到 top, 這個 core dump 是因為執行 ck_top_process.sh 產生, 但為什麼執行 top 會有 core dump?

cron job : 1019497 Memory fault - core dumped

Hi,



The core was created by top that was a truth.



Please trace it via "dbx $PATH/top /core" for getting more informations. Because it is a public tool not system provided. HP can't provide some suggestions.



既然只發生在 15:00 7/30, 是否當時正在 maintain 'top'?



PS: I had gotten a core file from a corrupted top running and

solved until re-compiler top source codes.



Best regards,

Richard.

cron job : 1019497 Memory fault - core dumped

Hi Eric,



> /core: core dump, generated from 'top'

Please apply the latest v3.6.1 of top command on your ALPHA systems if possible. (See the attachment!)

# ls -l top

-rwxr-xr-x 1 root system 320592 Aug 7 11:47 top

# sum top

08564 314 top

# ./top -v

top: version 3.6.1

#



Best regards,

Richard.