Capistrano 2.3 causes LS to core dump on cap restart

Discussion in 'Bug Reports' started by subBlue, May 8, 2008.

  1. subBlue

    subBlue Active Member

    Since upgrading to the latest capistrano we're finding everytime we call:
    sudo "/usr/local/lsws/bin/lswsctrl restart"
    in out cap restart task that we get the email saying:

    web server with pid=5712 received unexpected signal=6, a core file is created. A new instance of web server will be started automatically!
    Server: LiteSpeed/3.3.11 Enterprise
    OS: Linux
    Release: 2.6.18-53.1.14.el5
    Version: #1 SMP Wed Mar 5 11:37:38 EST 2008
    Machine: x86_64
    One thing that has changed in the new Capistrano release is that the actual command called is:
    sudo /bin/sh -c /usr/local/lsws/bin/lswsctrl restart
    Previously it didn't use the /bin/sh -c command IFAIK

    Any ideas?
  2. mistwang

    mistwang LiteSpeed Staff

    You can try the same command from command line see what happen. then try
    "sudo /usr/local/lsws/bin/lswsctrl restart"

    If there is a core file under /tmp/lshttpd, please check it with GDB.

    gdb lshttpd core_file


Share This Page