# gdb --args php crypt.php GNU gdb (GDB) 7.0-ubuntu Copyright (C) 2009 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". For bug reporting instructions, please see: ... Reading symbols from /usr/local/bin/php...done. (gdb) run Starting program: /usr/local/bin/php crypt.php [Thread debugging using libthread_db enabled] #1: ABcghTMliojv2 #2: ABcghTMliojv2 ^C Program received signal SIGINT, Interrupt. 0x00007ffff3e71c34 in __lll_lock_wait () from /lib/libpthread.so.0 (gdb) bt #0 0x00007ffff3e71c34 in __lll_lock_wait () from /lib/libpthread.so.0 #1 0x00007ffff3e6d295 in _L_lock_949 () from /lib/libpthread.so.0 #2 0x00007ffff3e6d0b8 in pthread_mutex_lock () from /lib/libpthread.so.0 #3 0x00000000006fb530 in _crypt_extended_init_r () at /home/install/php-5.3.2/ext/standard/php_crypt_r.c:81 #4 0x00000000007106ef in zif_crypt (ht=, return_value=0x13c7e70, return_value_ptr=, this_ptr=, return_value_used=, tsrm_ls=) at /home/install/php-5.3.2/ext/standard/crypt.c:261 #5 0x0000000000831d19 in zend_do_fcall_common_helper_SPEC (execute_data=0x7ffff7e8b050, tsrm_ls=0xfdc0c0) at /home/install/php-5.3.2/Zend/zend_vm_execute.h:313 #6 0x000000000082a7bb in execute (op_array=0x13c85f8, tsrm_ls=0xfdc0c0) at /home/install/php-5.3.2/Zend/zend_vm_execute.h:104 #7 0x0000000000800938 in zend_execute_scripts (type=, tsrm_ls=0xfdc0c0, retval=, file_count=3) at /home/install/php-5.3.2/Zend/zend.c:1194 #8 0x00000000007a2aff in php_execute_script (primary_file=, tsrm_ls=) at /home/install/php-5.3.2/main/main.c:2260 #9 0x000000000089b46c in main (argc=, argv=) at /home/install/php-5.3.2/sapi/cli/php_cli.c:1192 (gdb)