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

when the data directory is empty, pg_rman init will segfault #138

Open
zhangdl688 opened this issue Apr 28, 2020 · 3 comments
Open

when the data directory is empty, pg_rman init will segfault #138

zhangdl688 opened this issue Apr 28, 2020 · 3 comments
Assignees
Labels

Comments

@zhangdl688
Copy link

I execute "pg_rman -B backup_path -D data_path init", but data_path is an empty directory.
Then I have a segfault

@MoonInsung
Copy link
Contributor

Dear @zhangdl688

Thank you for reporting.
Yes. I agree with this issue.

When init.c calls the get_controlfile function of the PostgreSQL core(src/common/controldata_utils.c),
if the database cluster is empty, aborted by signal6 occurs.
We need to check if there is a way to solve this problem.

Best regards.

@HIghGo-coder
Copy link

Dear @MoonInsung

Hello, the above problem still exists today, coredump error will be thrown for PostgresSQL in DEBUG mode. The reason is that the PostgresSQL has changed, and the function get_controlfile parameter has changed. I'm wondering why this isn't fixed, is there some other reason? I hope I can help you fix this.Looking forward to your reply.

Best regards.

@HIghGo-coder
Copy link

Dear@zacharyxz
You do solve the problem at init, but for other commands, similar to the backup command, the above wen'ti will still be triggered.

Best regards.
#231 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants