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

ODM (MongoDB) on document save: exit signal Segmentation fault (11) #10240

Closed
asd-lt opened this issue May 4, 2015 · 3 comments
Closed

ODM (MongoDB) on document save: exit signal Segmentation fault (11) #10240

asd-lt opened this issue May 4, 2015 · 3 comments

Comments

@asd-lt
Copy link

asd-lt commented May 4, 2015

Randomly crashes when trying to save simple document in mongodb.
I'm using:

  OS: CentOS 6.5
  Phalcon: v2 
  MongoDB: v2.6.9 (tried 2.4.13, 2.4.14)
  Mongo driver: 1.6.8 (tried 1.4, 1.7)
  PHP: 5.4.38

Example:

$product = new Product();
$product->name = 'test';
$product->save();

Sometimes crashes with error in apache log file:

 [notice] child pid 21700 exit signal Segmentation fault (11)

Strace crash log of specific httpd pid:

open("/srv/domains/xxx/models/Product.php", O_RDONLY) = 11
fstat(11, {st_mode=S_IFREG|0644, st_size=509, ...}) = 0
fstat(11, {st_mode=S_IFREG|0644, st_size=509, ...}) = 0
fstat(11, {st_mode=S_IFREG|0644, st_size=509, ...}) = 0
mmap(NULL, 509, PROT_READ, MAP_SHARED, 11, 0) = 0x7f7983917000
munmap(0x7f7983917000, 509)             = 0
close(11)                               = 0
sendto(10, ":\0\0\0\10\267\336d\0\0\0\0\324\7\0\0\4\0\0\0admin.$cmd\0\0"..., 58, MSG_DONTWAIT, NULL, 0) = 58
poll([{fd=10, events=POLLIN|POLLERR|POLLHUP}], 1, 30000) = 1 ([{fd=10, revents=POLLIN}])
recvfrom(10, "5\0\0\0\257\3\0\0\10\267\336d\1\0\0\0\10\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 8192, MSG_DONTWAIT, NULL, NULL) = 53
sendto(10, ">\0\0\0\t\267\336d\0\0\0\0\324\7\0\0\4\0\0\0admin.$cmd\0\0"..., 62, MSG_DONTWAIT, NULL, 0) = 62
poll([{fd=10, events=POLLIN|POLLERR|POLLHUP}], 1, 30000) = 1 ([{fd=10, revents=POLLIN}])
recvfrom(10, "\302\0\0\0\260\3\0\0\t\267\336d\1\0\0\0\10\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 8192, MSG_DONTWAIT, NULL, NULL) = 194
sendto(10, "_\0\0\0\5\0\0\0\0\0\0\0\324\7\0\0\0\0\0\0phalcon.$cmd"..., 95, MSG_DONTWAIT, NULL, 0) = 95
poll([{fd=10, events=POLLIN|POLLERR|POLLHUP}], 1, 30000) = 1 ([{fd=10, revents=POLLIN}])
recvfrom(10, "@\0\0\0\261\3\0\0\5\0\0\0\1\0\0\0\10\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 8192, MSG_DONTWAIT, NULL, NULL) = 64
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
chdir("/etc/httpd")                     = 0
rt_sigaction(SIGSEGV, {SIG_DFL, [], SA_RESTORER|SA_INTERRUPT, 0x7f79821fa710}, {SIG_DFL, [], SA_RESTORER|SA_RESETHAND, 0x7f79821fa710}, 8) = 0
kill(21694, SIGSEGV)                    = 0
rt_sigreturn(0x54be)                    = 3200
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
@andresgutierrez
Copy link
Contributor

Could you please try again compiling from the 2.0.x branch?

@asd-lt
Copy link
Author

asd-lt commented May 5, 2015

I can't install yet, seems like issue #10140

@asd-lt
Copy link
Author

asd-lt commented May 5, 2015

Ok, installed 2.0.x branch, and no more error.

@asd-lt asd-lt closed this as completed May 5, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants