|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2011-06-25 06:00 UTC] spektom at gmail dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 17:00:01 2025 UTC |
Description: ------------ Hi, I'm experiencing some "Segmentation Fault" when trying to use forms with hot keys. Reproduce code: --------------- newt_init (); newt_cls (); newt_get_screen_size (&$rows, &$cols); newt_open_window ($rows/2-20, $cols/2-10, 54, 20, "Choose"); $form = newt_form (); newt_form_add_hot_key ($form, NEWT_KEY_ESCAPE); $list = newt_listbox (2, 1, 13, NEWT_LISTBOX_RETURNEXIT); foreach (array ( "Authentication configuration", "Firewall configuration", "Mouse configuration", "Network configuration", "Printer configuration", "System services") as $l_item) newt_listbox_add_entry ($list, $l_item, $l_item); newt_form_add_component ($form, $list); newt_refresh (); newt_form_run ($form, &$res); newt_pop_window (); newt_finished (); newt_form_destroy ($form); Expected result: ---------------- Run and press "ESC" to quit Actual result: -------------- "ESC" quit with a Segmentation Fault Program received signal SIGSEGV, Segmentation fault. 0x00000000006b7373 in ?? () (gdb) where #0 0x00000000006b7373 in ?? () #1 0x000000000069685d in _zval_dtor_func () #2 0x000000000068a8dd in _zval_ptr_dtor () #3 0x00000000006a38a8 in zend_hash_destroy () #4 0x00000000006968af in _zval_dtor_func () #5 0x000000000068a8dd in _zval_ptr_dtor () #6 0x00000000006a3562 in ?? () #7 0x00000000006a37e8 in zend_hash_graceful_reverse_destroy () #8 0x000000000068ae8e in ?? () #9 0x00000000006975f2 in ?? () #10 0x0000000000643235 in php_request_shutdown () #11 0x0000000000726ea4 in ?? () #12 0x00007ffff52a5c4d in __libc_start_main () from /lib/libc.so.6 #13 0x000000000042c6a9 in _start ()