-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problems with Controllers #5
Comments
Here seems to be the issue somewhere... in dispatcher.c
|
hi sraka1, I can't reproduce this crash on my machine, although, actually, it's possible to implement a notFoundAction to control those situations. It has not been implemented in the INVO application right now. Here's an example: http://phalconphp.com/documentation/controllers (Request and Response section) Are you working on linux? |
Nope. Still experiencing this. A look at Wireshark however, gives this: Okay, it's failing at gzip compression, HOWEVER, what seems to be decoded has some redirect script to linksys.com. My router comes to mind. Okay, I guess it has a bug or something. BUT, why does this only appear when there is a non-existant view on an existing controller on a PhalconPHP site. There must be something out of the ordinary sent there for my router to go "loco" :) EDIT: Conclusion: I have a very rare firmware version and router model. This router is very buggy. EDIT2: Hacked firmware installed, everything works great! Fixed! Sorry for the trouble! |
I might as well make a comment here.
I have also experienced the same on INVO, however in this example it's for my example. Now, what could be producing these empty responses (and I'm now 99% sure it's not my router) :D. Also this is also on pages with 200 OK. 1-2 times no response, 2nd or 3rd time always works. This is weird... And I have this on several computers! EDIT: |
Is it possible to generate a gdb backtrace when there is a empty response? Here's a guide: |
It's definitely crashing. This is the apache2 log. Will update this comment with a gdb backtrace. IRC?
|
I think I found the problem, the phalcon memory manager doesn't support single-process multithreaded web servers, then, some memory related stuff was not thread safe producing segmentation faults cause double-freeing memory. Just recoded it to add ZTS support, hope this time it works correctly. |
Nope. Still: [Wed Apr 18 10:42:41 2012] [notice] child pid 32394 exit signal Segmentation fault (11) EDIT: |
Hi, Just found a possible reason of the problem. I think gcc could be doing extra optimizations over null pointers. Please compile the extension again by setting first CFLAGS: export CFLAGS="-O2 -fno-delete-null-pointer-checks" |
Fixed updating PHP to PHP > 5.3.6 |
Got it again... And response is 'No data received'... While there is no response, this code returns normal rendered html: $content = $application->handle()->getContent() ...with Phalcon 1.1.0 and PHP 5.4.6 |
Added $expression to logger::warning call
Another bug.
Here's another bug. When requesting something with an existing controller, but a non-existent action, phalcon (I presume, /tmp/phalcon-debug.a is empty, not sure why, is it a different file on the dev branch?) crashes. Browsers get either content decoding failed or just no response from the server. _I believe this started to happen when I switched from the release to the dev branch._ <-- SEE EDIT Haven't located the problem yet, have to check.
sraka1
EDIT:
It's the same on release branch. Check out for example http://invo.phalconphp.com/about/nonexistent
Proposed fix. A 404 header and a page does not exist page :). This, however should be possibly to customize by the user :) Maybe will do myself, but I'm a bit lazy...
The text was updated successfully, but these errors were encountered: