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

segfault using it with swoole #117

Open
apinstein opened this issue Mar 30, 2021 · 1 comment
Open

segfault using it with swoole #117

apinstein opened this issue Mar 30, 2021 · 1 comment

Comments

@apinstein
Copy link

apinstein commented Mar 30, 2021

I was excited to try this to debug a long-lived script I am running with swoole.

However, about 50%+ of the time I run meminfo_dump() it segfaults.

Anything I can do to help you debug this?

I'm not sure how to capture the crash log...

@apinstein
Copy link
Author

I tried a swoole mutex and that prevents the segfault but the dump is corrupted json about 50% of the time...

 57       $lock = new \Swoole\Lock(SWOOLE_MUTEX);
 58       $lock->lock();
 59       meminfo_dump(fopen("/tmp/book-memory-{$i}.json", 'w'));
 60       \Swoole\Coroutine\System::sleep(10);
 61       $lock->unlock();
 62       unset($lock);

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

1 participant