[php-maint] Bug#528600: Bug#528600: gforge: massmail.php segfault
haoniukun at gmail.com
Fri May 15 16:30:23 UTC 2009
Thank you for your reply.
But I failed to get a php5-dbg package on my system.
Here's my sources.list file
deb http://mirrors.kernel.org/debian/ testing main non-free contrib
deb-src http://mirrors.kernel.org/debian testing main non-free contrib
#deb http://www.emdebian.org/debian/ testing main
#deb-src http://www.emdebian.org/debian/ testing main
deb http://www.symfony-project.org/get debian/
#deb http://download.videolan.org/pub/videolan/debian sid main
deb http://oss.oracle.com/debian unstable main non-free
And I've run test.php file.
It works fine on my system.
Do you have any other hints?
Thanks again for your attention to my problem.
Raphael Geissert 写道:
> clone 528600 -1
> reassign -1 gforge
> retitle -1 gforge: shebangs should not pass an empty -f parameter
> severity 528600 minor
> On Friday 15 May 2009 08:27:05 Roland Mas wrote:
>> Niu Kun, 2009-05-15 20:27:39 +0800 :
>>> Hi Roland,
>>> Funny thing has been detected that the first line of my massmail.php
>>> is written like this:
>>> #! /usr/bin/php5 -f
>>> When I change the line to "#!/usr/bin/php5 -f", the seg fault remains
>>> the same.
>>> But when I change the line to "#!/usr/bin/php5" or "#! /usr/bin/php5",
>>> seg fault disappeared.
>>> Does it mean that this bug is caused by php5?
>> Interesting. I think it could very well be a bug in PHP indeed (and the
>> bug has been reassigned already).
> It is a bug the fact that it segfaults, but calling php5 with -f but without
> passing it a file name is a bug on your side. The man page specifically says
>> You can parse and execute files by using parameter -f followed by the name
>> of the file to be executed.
>> If none of -r -f -B -R -F or -E is present but a single parameter is given
>> then this parameter is taken as the filename to parse and execute (same as
>> with -f). If no parameter is present then the standard input is read and
> So am cloning the report and assigning the copy back to gforge.
> I've tried to but failed at reproducing the bug with a simple script. So, Niu,
> could you please install the php5-dbg package and run the following commands?
> $ cat > test.php <<'FOO'
> #!/usr/bin/php5 -f
> echo "hello world\n";
> $ chmod +x test.php
> $ ./test.php
> And see if it segfaults? if it does, then please run:
> $ ulimit -c unlimited
> $ ./test.php
> $ gdb -c core
> (gdb) bt
> <attach in your reply what is displayed here>
> (gdb) q
> If it doesn't segfault then please repeat the same steps but instead of
> running the test script run the massmail.php script as you did before.
More information about the pkg-php-maint