php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59691 Segmentation fault when using hot key
Submitted: 2011-03-27 10:38 UTC Modified: 2011-06-25 06:00 UTC
From: maelstro at hotmail dot com Assigned:
Status: Closed Package: newt (PECL)
PHP Version: 5.3.2 OS: Ubuntu 10.04.2 LTS x86_64
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: maelstro at hotmail dot com
New email:
PHP Version: OS:

 

 [2011-03-27 10:38 UTC] maelstro at hotmail dot com
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 ()


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-06-25 06:00 UTC] spektom at gmail dot com
Thank you for your bug report. This issue has been fixed
in the latest released version of the package, which you can download at
http://pecl.php.net/get/newt


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 11:01:30 2024 UTC