Skip to content
This repository was archived by the owner on Jan 13, 2022. It is now read-only.
This repository was archived by the owner on Jan 13, 2022. It is now read-only.

Uncaught exception 'OutOfBoundsException' with message 'Integer key 1 is out of bounds' in /base/SiegeStats.php:27 #64

@reedy

Description

@reedy

If the current user can't access a siege config, it shouldn't cause an uncaught exception

Noticed whilst trying to get #57 to work

reedy@hhvm-oss-performance:/home/reedy/oss-performance$ hhvm perf.php --mediawiki --hhvm=`which hhvm` --no-proxygen --i-am-not-benchmarking

**************************************************
** 2015-11-29 02:01:32 UTC
** Configuration: MediaWikiTarget on /usr/bin/hhvm

**************************
** 2015-11-29 02:01:32 UTC
** Installing framework

**************************
** 2015-11-29 02:01:38 UTC
** There is no setUpTest

**************************
** 2015-11-29 02:01:38 UTC
** Starting Nginx

**************************
** 2015-11-29 02:01:39 UTC
** Starting PHP Engine
running hphp...
all files saved in /tmp/hhvm-nginxv21MtR ...
running hphp took 0'49" (49573597 us) wall time
mapping self...
mapping self took 0'00" (2622 us) wall time
loading static content...
loaded file cache from /tmp/hhvm-nginxv21MtR/static.content
loading static content took 0'00" (5066 us) wall time

**************************
** 2015-11-29 02:02:31 UTC
** Running sanity check

*******************************************
** 2015-11-29 02:02:34 UTC
** Starting Siege for single request warmup
****************************************************
siege: could not open /root/.siegerc
run 'siege.config' to generate a new .siegerc file
****************************************************

******************************************
** 2015-11-29 02:02:34 UTC
** Starting Siege for multi request warmup
****************************************************
siege: could not open /root/.siegerc
run 'siege.config' to generate a new .siegerc file
****************************************************

****************************
** 2015-11-29 02:02:34 UTC
** Clearing nginx access.log

*******************************
** 2015-11-29 02:02:34 UTC
** Starting Siege for benchmark
****************************************************
siege: could not open /root/.siegerc
run 'siege.config' to generate a new .siegerc file
****************************************************

**************************
** 2015-11-29 02:02:34 UTC
** Collecting results

Fatal error: Uncaught exception 'OutOfBoundsException' with message 'Integer key 1 is out of bounds' in /home/reedy/oss-performance/base/SiegeStats.php:27
Stack trace:
#0 /home/reedy/oss-performance/base/PerfRunner.php(151): Siege->collectStats()
#1 /home/reedy/oss-performance/base/PerfRunner.php(42): PerfRunner::RunWithOptionsAndEngine()
#2 /home/reedy/oss-performance/base/PerfRunner.php(17): PerfRunner::RunWithOptions()
#3 /home/reedy/oss-performance/perf.php(15): PerfRunner::RunWithArgv()
#4 /home/reedy/oss-performance/perf.php(19): perf_main()
#5 {main}
reedy@hhvm-oss-performance:/home/reedy/oss-performance$

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions