Re: [PHP] Exception thrown without a stack frame



Peter Ford schreef:
Jochem Maas wrote:
Jochem Maas schreef:
I'm getting exceptions thrown without a stackframe. I understand what
this
means but not how it can happen given the following:

1. *every* frontend script on the site is wrapped in a try/catch block
2. I have set an exception handler to dump these so-called uncaught
exceptions
in the error log

I use APC on the site/server in question but it doesn't matter whether
I actually
load or use APC as to whether these uncaught exceptions occur.

I can't seem to reproduce the problem from my own browser - although it's
difficult to determine much from the log given the lack of information
in any
entry referring to 'exception thrown without a stack frame' -
apparently the
uncaught exception is not causing users to see broken or blank pages.

The problem only occurs on the production server, I can't reproduce it
on my test server no matter how hard I push with ab.

I haven't updated php for quite a long time which is at version 5.1.1

has anyone ever experienced something like this? anyone have any clue
as to
what it might be.
I'd like to add that the exception handler is set after 6 files are
included,
2 of them just define constants and 4 of them define classes related to
exception/error/msg handling - none of the 6 files contain a 'throw'
statement
anywhere *and* none of them include any other files.

I am completely stumped.

tia


I just spotted this in the manual page for "date_create":

When using these functions inside of destructors or functions called as a result
of being registered with register_shutdown_handler, be sure to use date_create()
instead of new DateTime(). This is because new DateTime will throw an exception
on failure, which is not permitted in any of the above circumstances. If new
DateTime() does fail in one of these circumstances, you will get an error
stating "Fatal error: Exception thrown without a stack frame in Unknown on line 0."

Maybe there's a clue for you in there?

oh boy do I feel stupid. and I knew about this, it just didn't spring to mind.
thanks for doing my thinking for me ;-)


.



Relevant Pages

  • RE: How to get the end value of month
    ... FROM systables ... DEFINE v_dttm_yd DATETIME YEAR TO DAY; ... END EXCEPTION ... WHERE tabid = 1; ...
    (comp.databases.informix)
  • RE: How to get the end value of month
    ... DEFINE v_dttm_yd DATETIME YEAR TO DAY; ... END EXCEPTION ... FROM systables ... WHERE tabid = 1; ...
    (comp.databases.informix)
  • Re: [PHP] Exception thrown without a stack frame
    ... I have set an exception handler to dump these so-called uncaught ... load or use APC as to whether these uncaught exceptions occur. ... This is because new DateTime will throw an exception ... Maybe there's a clue for you in there? ...
    (php.general)
  • Re: Dates
    ... The conversion of a char data type to a datetime data type resulted in an ... out-of-range datetime value. ... An unhandled exception occurred during the execution of the ... System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, String srcTable, ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: datetime type in SQL Server 2008
    ... No exception occurs after truncating the milliseconds of DateTime. ... OdbcParameter param = cmd.Parameters.Add("FILEDATA", ... It looks like the OdbcType.DateTime doesn't match SQL Server 2008's ...
    (microsoft.public.dotnet.languages.csharp)