Hi all, I encounter a problem, program will segment fault when executed in a shell by crontab. logs: start abstract bills Sat Jun 17 15:53:01 CST 2006 ./startabstract.sh: line 37: 7347 Segmentation fault abstractsvrd -t $TABLENAME $billfile abstartct failed Sat Jun 17 15:53:01 CST 2006 But the shell script is normal when executed manual. The script like this, #!/bin/sh cd /home/bryan/bin echo start abstract bills `date` billfile=/data/bill.txt TABLENAME=t_AdInfo`date '+%04Y%02m%02d%02H'` cd /home/bryan/bin abstract -t $TABLENAME $billfile The abstract is a program that uses shared memory to compute the bill. Anyone can help? Thanks in advance. bryan -------------- next part -------------- HTML attachment scrubbed and removed
On Sat, 2006-06-17 at 16:27 +0800, Reddragon Wang wrote:> I encounter a problem, program will segment fault when executed in a > shell by crontab. [...] The abstract is a program that uses shared > memory to compute the bill.This doesn't seem to have anything to do with rsync. You should ask the authors of "abstract" why it is crashing. However, I can think of two ways in general that you might be able to find out more about the crash: - Run "abstract" in a debugger, such as GDB. - Run "abstract" under valgrind. Matt