Re: mac os core dump from detached process
On 27/04/2015 11:29, Colin McPhail wrote: ... Is it possible to get core dumps on the Mac for debugging purposes? Would the detached process inherit flags etc etc from the starting process? I know little about OS X/Mach. My first thought would be to run Applications - Utilities - Console and look for a crash report under ‘User Diagnostic Reports’ in the sidebar. I’m not entirely sure what my second thought would be if there wasn’t a report there. — CMcP my colleague is suggesting ulimit -c unlimited in the terminal before starting the django runserver will probably do the trick. What I don't know is if the process started by a view that then detaches will inherit the flags and dump core properly. I have a mac test platform now and will attempt something myself. -- Robin Becker -- https://mail.python.org/mailman/listinfo/python-list
Re: mac os core dump from detached process
On 27 Apr 2015, at 10:21, Robin Becker ro...@reportlab.com wrote: I'm using the double fork exec model as exemplified in http://code.activestate.com/recipes/278731-creating-a-daemon-the-python-way/ to run a django management command detached from any view. A database object is used to store/update information about the process. The command does have a log file and appears to work well on linux. However, on my developer colleague's mac using the django development server the job ends suddenly without passing through the try except finally that's supposed to capture information. I believe the only way it can do this is os._exit or an interrupt eg SIGSEGV etc etc. Is it possible to get core dumps on the Mac for debugging purposes? Would the detached process inherit flags etc etc from the starting process? I know little about OS X/Mach. My first thought would be to run Applications - Utilities - Console and look for a crash report under ‘User Diagnostic Reports’ in the sidebar. I’m not entirely sure what my second thought would be if there wasn’t a report there. — CMcP -- https://mail.python.org/mailman/listinfo/python-list
mac os core dump from detached process
I'm using the double fork exec model as exemplified in http://code.activestate.com/recipes/278731-creating-a-daemon-the-python-way/ to run a django management command detached from any view. A database object is used to store/update information about the process. The command does have a log file and appears to work well on linux. However, on my developer colleague's mac using the django development server the job ends suddenly without passing through the try except finally that's supposed to capture information. I believe the only way it can do this is os._exit or an interrupt eg SIGSEGV etc etc. Is it possible to get core dumps on the Mac for debugging purposes? Would the detached process inherit flags etc etc from the starting process? I know little about OS X/Mach. -- Robin Becker -- https://mail.python.org/mailman/listinfo/python-list