Bug #55225 [Opn->Fbk]: PHP-GTK Segmentation fault on Quit

[email protected] Tue, 19 Jul 2011 18:37:45 -0400
Newsgroups php.gtk.dev
Message-ID <[email protected]>
Edit report at https://bugs.php.net/bug.php?id=55225&edit=1

 ID:                 55225
 Updated by:         [email protected]
 Reported by:        falk dot herrmann at bike24 dot net
 Summary:            PHP-GTK Segmentation fault on Quit
-Status:             Open
+Status:             Feedback
 Type:               Bug
 Package:            PHP-GTK related
 Operating System:   Linux 2.6.38.6
 PHP Version:        5.3.7RC3
 Block user comment: N
 Private report:     N

 New Comment:

Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.




Previous Comments:
------------------------------------------------------------------------
[2011-07-18 05:56:56] falk dot herrmann at bike24 dot net

Description:
------------
Every PHP-GTK application returns an segmentation fault on quit. Alt-F4, close via menu, or close button brings the same error. The program itself runs fine. Only the quit command returns segfault after the last line of code.

Return code: 139


Test script:
---------------
<?php

dl('php_gtk2.so');

$wnd = new GtkWindow();
$wnd->set_title('Hello world');
$wnd->connect_simple('destroy', array('gtk', 'main_quit'));
 
$lblHello = new GtkLabel("Hello world!'");
$wnd->add($lblHello);
 
$wnd->show_all();
Gtk::main();


Expected result:
----------------
Return code: 0


Actual result:
--------------
fh@psyco ~/php-gtk $ php -f hello-world.php
Segmentation fault
fh@psyco ~/php-gtk $ echo $?
139



------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=55225&edit=1