6.0.0-alpha14
7/3/25

[#7335] create.php ticket
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

History
10/31/2008 02:15:11 PM ralph (at) rsrc (dot) de Comment #17 Reply to this comment
It's a bug in PHP 5.2.0. See:
http://bugs.php.net/bug.php?id=39661
The bug report the error under IIS 5.1 and PHP.
So what? It was reported for PHP 5.2.0. It was initially reported by 
someone on Win. It was suggested:
Please try using this CVS snapshot:
http://snaps.php.net/php5.2-latest.tar.gz
And a direct link for Win was provided for the convinience of the reporter.
I tried to change sql.php:
$dummy=implode(',',$values)
sprintf(...........,$dummy)

Segmentation fault is yet present
Have you change all lines (see below) ?
10/31/2008 09:34:33 AM andrea (dot) nannicini (at) misericordia-campi-bisenzio (dot) it Comment #16 Reply to this comment
It's a bug in PHP 5.2.0. See:

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






10/30/2008 11:26:04 AM ralph (at) rsrc (dot) de Comment #15 Reply to this comment
  I'll try and see.
It's a bug in PHP 5.2.0. See:

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.
10/29/2008 09:17:37 PM ralph (at) rsrc (dot) de Comment #14 Reply to this comment
Are you both running suhosin or something.
No.
Can you reproduce the crash with that line of code alone, or a
smaller subset?
You mean e.g. in a standalone file run manually? I'll try and see.
10/29/2008 08:32:12 PM privat (at) wolfgang-andreas (dot) de Comment #13 Reply to this comment
i recently set up a test environment with a basic debian etch 
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.
10/29/2008 07:58:57 PM Chuck Hagenbuch Comment #12 Reply to this comment
Can you reproduce the crash with that line of code alone, or a smaller subset?
10/29/2008 05:20:52 PM a-dinc (at) hotmail (dot) de Comment #11 Reply to this comment
Are you both running suhosin or something? That's a weird crash bug,
and it obviously isn't affecting everyone.
no particular securitymanagement for php like suhosin or similar.

my installation is regular debian package based. i'm also only seeing 
this on the said page.


10/29/2008 04:18:16 PM privat (at) wolfgang-andreas (dot) de Comment #10 Reply to this comment
negative. i've no hardened php solution installed here. this problem 
is very suspect to me, because everything is working fine, until 
trying to create a new ticket.
10/29/2008 04:07:19 PM Chuck Hagenbuch Comment #9 Reply to this comment
Are you both running suhosin or something? That's a weird crash bug, 
and it obviously isn't affecting everyone.
10/29/2008 02:58:10 PM ralph (at) rsrc (dot) de Comment #8 Reply to this comment
I'm facing the same Problem when calling "Create Ticket"-Page
Me too. Apache child process is segfaulting.



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.
09/23/2008 03:32:50 PM a-dinc (at) hotmail (dot) de Comment #7 Reply to this comment
I'm facing the same Problem when calling "Create Ticket"-Page



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.




09/16/2008 02:32:05 PM Chuck Hagenbuch Comment #6
State ⇒ Not A Bug
Reply to this comment
Not much we can do about a segfault in PHP. See 
http://bugs.php.net/how-to-report.php if you want to investigate 
further.
09/16/2008 12:50:41 PM andrea (dot) nannicini (at) misericordia-campi-bisenzio (dot) it Comment #5 Reply to this comment
Thanks a lot.

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....




09/15/2008 12:06:04 PM andrea (dot) nannicini (at) misericordia-campi-bisenzio (dot) it Comment #3 Reply to this comment
Errore 320 (net::ERR_INVALID_RESPONSE)

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?


09/15/2008 10:34:15 AM Jan Schneider Comment #2
State ⇒ Feedback
Reply to this comment
When i open new ticket menu the page cant not be loaded with this error:
Errore 320 (net::ERR_INVALID_RESPONSE)
*Where* does this error appear? In any case, it is not coming from 
Horde or Whups.
New Ticket Form cant be loaded, only new ticket.
What now?
09/15/2008 09:03:21 AM andrea (dot) nannicini (at) misericordia-campi-bisenzio (dot) it Comment #1
Priority ⇒ 1. Low
State ⇒ Unconfirmed
Patch ⇒ No
Milestone ⇒
Due ⇒ 09/15/2008
Summary ⇒ create.php ticket
Type ⇒ Bug
Queue ⇒ Whups
Reply to this comment
My version: horde 3.2.1



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




















Saved Queries