-
-
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
[BUG] Segfault in phalcon.so when using Phalcon\Forms\Element::getUserOption(). #1343
Comments
Hi, |
No, I am not. $element is an instance of Text, Select or whatever else. What kind of debug info might be helpful? |
@temuri416 Any chance you can write a simple test case that reproduces the problem? |
I'm on it. |
Unfortunately, small test I wrote did not crash.. But in my much more complex application environment it is crashing consistently. Instead, I'm using ->getUserOptions(), that works fine. Any other suggestion? |
If you run
does it crash? |
no, my unit tests pass OK from CLI. It only fails via HTTP. |
OK, what version of PHP do you use? And what git revision of Phalcon do you use (if you remember)? |
I'm on PHP 5.5.0, the same happens with 5.5.1. I'm on latest Phalcon 1.3.0. |
OK, could you please do this:
If the app crashes, you will see a file named Then run: At the gdb prompt please run |
Well... It does not crash when I go to http://127.0.0.1:9900 with Lynx (I don't have any GUI). The same crashes in the browser (goes through nginx/php-fpm). I'm on Win7, with Ubuntu 13 running in VirtualBox. |
OK, and if you run |
Hold on - with 127.0.0.1:9900 in one window I did see this: [Tue Oct 1 16:53:08 2013] 127.0.0.1:60160 [200]: /
Segmentation fault (core dumped) Lynx in my other window still loaded the form, and I didn't bother checking window with php -S. Let me get all that stuff. |
Here it comes: gdb /var/web/php/bin/php ./coreGNU gdb (GDB) 7.5.91.20130417-cvs-ubuntu warning: Can't read pathname for load map: Input/output error. warning: no loadable sections found in added symbol-file system-supplied DSO at 0x7fff861b9000 |
Could you please rebuild Phalcon with debug info and try again? This will give a more useful backtrace. cd ext
phpize --clean
phpize
./configure CFLAGS="-g3 -O0"
make -j2
sudo make install |
Never mind, I have just found the bug |
Ohhh gooood :-) Looks like it was well-hidden! Thank you for your time. |
Fixed in 1.3.0 by @sjinks |
Confirmed. |
I am getting the following error in my syslog:
The line of code that's causing it:
I realise that it is of very little use. So, what can I do to provide with more information?
I am on Phalcon 1.3.0.
Thanks!
The text was updated successfully, but these errors were encountered: