Skip to content
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

{{ getTitle() }} cause segmentation fault on dispatcher->forward to notFound #12938

Closed
gdluck opened this issue Jul 3, 2017 · 6 comments
Closed
Labels
not a bug Reported issue is not a bug

Comments

@gdluck
Copy link
Contributor

gdluck commented Jul 3, 2017

Questions should go to https://forum.phalconphp.com
Documentation issues should go to https://github.com/phalcon/docs/issues

Expected and Actual Behavior

getTitle() in volt main layout cause :
[2948319.527126] php-fpm7.0[43751]: segfault at 1 ip 00007f3aeaedfb1d sp 00007fff9e5ae620 error 6 in phalcon.so[7f3aead5e000+4c8000]

Describe what you are trying to achieve and what goes wrong.

Provide output if related. Provide coredump if any. Use https://github.com/phalcon/cphalcon/wiki/Generating-a-backtrace as reference

// paste output here

Provide minimal script to reproduce the issue

in index.volt - {{ getTitle() }}
in any controller:

return $this->dispatcher->forward([
	'controller'=>'home',
	'action'=>'notFound'
]);

Details

Debian 8 (jessie) 3.16.0-4-amd64 x86_64

Web framework delivered as a C-extension for PHP
phalcon => enabled
Author => Phalcon Team and contributors
Version => 3.2.0
Build Date => Jun 21 2017 21:38:01
Powered by Zephir => Version 0.9.8-6335775f25

Directive => Local Value => Master Value
phalcon.db.escape_identifiers => On => On
phalcon.db.force_casting => Off => Off
phalcon.orm.events => On => On
phalcon.orm.virtual_foreign_keys => On => On
phalcon.orm.column_renaming => On => On
phalcon.orm.not_null_validations => On => On
phalcon.orm.exception_on_failed_save => Off => Off
phalcon.orm.enable_literals => On => On
phalcon.orm.late_state_binding => Off => Off
phalcon.orm.enable_implicit_joins => On => On
phalcon.orm.cast_on_hydrate => Off => Off
phalcon.orm.ignore_unknown_columns => Off => Off
phalcon.orm.update_snapshot_on_save => On => On
phalcon.orm.disable_assign_setters => Off => Off

@sergeyklay
Copy link
Contributor

What is getTitle() ?

@gdluck
Copy link
Contributor Author

gdluck commented Jul 3, 2017

\Phalcon\Tag::getTitle()

It looks like opcache has nothing to do with this problem and is triggered immediately after a Model::findFirst() causing an
user: 'root' host: 'localhost' (Got an error reading communication packets)
to mysql also

@sergeyklay
Copy link
Contributor

Actually there is no getTitle() function. You have to use {{ get_title() }} in Volt.

@sergeyklay sergeyklay added the not a bug Reported issue is not a bug label Jul 3, 2017
@gdluck
Copy link
Contributor Author

gdluck commented Jul 7, 2017

It is, I replaced {{ getTitle() }} (which worked for 2 years until last update, btw) with {{ get_title() }} and is still causing a database crash and an segmentation fault.

@Jurigag
Copy link
Contributor

Jurigag commented Jul 8, 2017

Provide core dump please.

@fesiong
Copy link

fesiong commented Jan 17, 2018

@niden niden added bug A bug report and removed bug A bug report labels Dec 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
not a bug Reported issue is not a bug
Projects
None yet
Development

No branches or pull requests

5 participants