Summary | create.php ticket |
Queue | Whups |
Queue Version | 1.0-RC1 |
Type | Bug |
State | Not A Bug |
Priority | 1. Low |
Owners | |
Requester | andrea.nannicini (at) misericordia-campi-bisenzio (dot) it |
Created | 09/15/2008 (6135 days ago) |
Due | 09/15/2008 (6135 days ago) |
Updated | 10/31/2008 (6089 days ago) |
Assigned | 09/15/2008 (6135 days ago) |
Resolved | 09/16/2008 (6134 days ago) |
Github Issue Link | |
Github Pull Request | |
Milestone | |
Patch | No |
http://bugs.php.net/bug.php?id=39661
someone on Win. It was suggested:
http://snaps.php.net/php5.2-latest.tar.gz
$dummy=implode(',',$values)
sprintf(...........,$dummy)
Segmentation fault is yet present
http://bugs.php.net/bug.php?id=39661
The bug report the error under IIS 5.1 and PHP.
My system is:
PHP Version 5.2.0-8+etch13
Linux 2.6.18-4-686
Apache/2.2.3 (Debian) DAV/2 mod_python/3.2.10 Python/2.4.4
PHP/5.2.0-8+etch13 mod_perl/2.0.2 Perl/v5.8.8
I tried to change sql.php:
$dummy=implode(',',$values)
sprintf(...........,$dummy)
Segmentation fault is yet present
http://bugs.php.net/bug.php?id=39661
It seems to be fixed in later versions.
Workaround would be to call implode outside of sprintf. I don't think
we should implement that.
smaller subset?
installation with apache2 / php5 / horde webmail and tried to create a
ticket. still the same problem.
my configuration:
- (virtualbox 2.0.4)
- apache 2.2.3
- php 5.2.0-8+etch13
- php5-imap 5.2.0-8+etch13
- php5-gd 5.2.0-8+etch13
- php5-mysql 5.2.0-8+etch13
if it's helpful i can upload the virtualbox-machine onto some webspace
for further testings.
and it obviously isn't affecting everyone.
my installation is regular debian package based. i'm also only seeing
this on the said page.
is very suspect to me, because everything is working fine, until
trying to create a new ticket.
and it obviously isn't affecting everyone.
With the help of eaccelerator I was able to pin it down:
in four places in WHUPS/lib/Driver/sql.php the function sprintf is
being called in order to generate a log message with one argument
being generated by implode:
$string = sprintf("Whups_Driver_sql::getQueueUsers(): query=%s;
values=%s", $query, implode(',', $values));
It doesn't crash if called like this:
$dummy = implode(',', $values);
$string = sprintf("Whups_Driver_sql::getQueueUsers(): query=%s;
values=%s", $query, $dummy;
Affected line are: 1460, 1574, 1828, 2063.
In the first affected function getQueueUsers($queueId) when crashing
$queueID seems to be empty, therefore $values = array($queueId) is
empty and implode(empty string) inside sprintf eventually becomes a
invalid parameter?
No patch attached, as cause in uncertain.
The following error occurse in the apache2 logfiles:
[Tue Sep 23 17:08:20 2008] [notice] child pid 14286 exit signal
Segmentation fault (11)
[Tue Sep 23 17:08:20 2008] [notice] child pid 17477 exit signal
Segmentation fault (11)
I traced the error back to whups/lib/Driver/sql.php line 1575 on whups
fresh cvs where Horde::logMessage() is called.
I'm running php5 version 5.2.0-8+etch11 on a Debian.
State ⇒ Not A Bug
http://bugs.php.net/how-to-report.php if you want to investigate
further.
The problem is a segmentation fault 11 into the log error file of apache.
It appens only in Whups ticket creation.
I have to read the FAQ before call Help....
this is the error code in Firebird and chrome
IE does not load the page.
the page error is created by ticket/create.php
create.php does not create the result page probably, i think, the script exit.
I tried to debug the create.php.
Which test create.php have to execute before load the form?
State ⇒ Feedback
Errore 320 (net::ERR_INVALID_RESPONSE)
Horde or Whups.
Priority ⇒ 1. Low
State ⇒ Unconfirmed
Patch ⇒ No
Milestone ⇒
Due ⇒ 09/15/2008
Summary ⇒ create.php ticket
Type ⇒ Bug
Queue ⇒ Whups
Installed whups and created sql table and conf.php
Created example queue attributes
and assigned users to queue.
All whups application and form are displayed.
When i open new ticket menu the page cant not be loaded with this error:
Errore 320 (net::ERR_INVALID_RESPONSE)
New Ticket Form cant be loaded, only new ticket.
The admin panel works perfectly
I tryed to insert by sql command a row into table whups_tickets
and it appear in the list my ticket
I drop all table and reinstalled whups but New Ticket fails with the
same error