php5 RADIUS module crash
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
php-radius (Debian) |
Fix Released
|
Unknown
|
|||
php-radius (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: php5-radius
keijiban> lsb_release -rd
Description: Ubuntu 9.10
Release: 9.10
keijiban> uname -a
Linux keijiban.kirei.se 2.6.31-14-generic #48-Ubuntu SMP Fri Oct 16 14:05:01 UTC 2009 x86_64 GNU/Linux
keijiban> dpkg -l | grep php5
ii libapache2-mod-php5 5.2.10.
ii php5 5.2.10.
ii php5-cli 5.2.10.
ii php5-common 5.2.10.
ii php5-curl 5.2.10.
ii php5-dbg 5.2.10.
ii php5-mcrypt 5.2.6-0ubuntu2 MCrypt module for php5
ii php5-mhash 5.2.10.
ii php5-mysql 5.2.10.
ii php5-radius 1.2.5-2 PECL radius module for PHP 5
ii php5-xdebug 2.0.4-2 Xdebug Module for PHP 5
keijiban> cat radius-example.php
<?php
$radius = radius_auth_open();
if (! radius_
{
die('Radius Error: ' . radius_
}
if (! radius_
{
die('Radius Error: ' . radius_
}
radius_
radius_
switch (radius_
{
case RADIUS_
echo 'GOOD LOGIN';
break;
case RADIUS_
echo 'BAD LOGIN';
break;
case RADIUS_
echo 'CHALLENGE REQUESTED';
break;
default:
}
?>
keijiban> php5 radius-example.php
Segmentation fault
keijiban> gdb /usr/bin/php5
GNU gdb (GDB) 7.0-ubuntu
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://
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:
<http://
Reading symbols from /usr/bin/
(no debugging symbols found)...done.
(gdb) run radius-example.php
Starting program: /usr/bin/php5 radius-example.php
[Thread debugging using libthread_db enabled]
[New Thread 0x7ffff0f90910 (LWP 21991)]
[Thread 0x7ffff0f90910 (LWP 21991) exited]
Program received signal SIGSEGV, Segmentation fault.
zend_do_
at /build/
205 /build/
in /build/
(gdb) bt
#0 zend_do_
at /build/
#1 0x000000000068e29c in execute (op_array=0xd91b28)
at /build/
#2 0x00007ffff42c1a3e in xdebug_execute (op_array=0xd91b28)
at /build/
#3 0x000000000066a176 in zend_execute_
file_count=3) at /build/
#4 0x0000000000625203 in php_execute_script (primary_file=0x0)
at /build/
#5 0x00000000006e6594 in main (argc=0, argv=0x7ffff7fe
at /build/
(gdb) quit
A debugging session is active.
Inferior 1 [process 21975] will be killed.
Quit anyway? (y or n) y
Changed in php-radius (Debian): | |
status: | Unknown → Fix Released |
Changed in php-radius (Ubuntu): | |
status: | Confirmed → Fix Released |
Seems to work on i386, but not on amd64.