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

Segmentation Fault for large images #59

Open
Bovornpratch opened this issue Nov 27, 2023 · 2 comments
Open

Segmentation Fault for large images #59

Bovornpratch opened this issue Nov 27, 2023 · 2 comments

Comments

@Bovornpratch
Copy link

Hi,

I am using sextractor for some large mosaic images (a few MegaPx^2 size) and sometimes during the analysis phase (before writing that catalog), sextractor crashes with a segmentation fault.

I found that increasing the MEMORY BUFSIZE, MEMORY OBJSTACK, and MEMORY PIXSTACK seems to resolve the issue in some cases. However, I am curious what is the actual reason in which causes this crash and how to avoid it.

@mingyangzhuang
Copy link

Hi @Bovornpratch

I also ran into this issue with a large mosaic (~100k x 100k pix^2). Could you share with me your MEMORY BUFSIZE, MEMORY OBJSTACK, and MEMORY PIXSTACK?

Many thanks!

Hi,

I am using sextractor for some large mosaic images (a few MegaPx^2 size) and sometimes during the analysis phase (before writing that catalog), sextractor crashes with a segmentation fault.

I found that increasing the MEMORY BUFSIZE, MEMORY OBJSTACK, and MEMORY PIXSTACK seems to resolve the issue in some cases. However, I am curious what is the actual reason in which causes this crash and how to avoid it.

@rmathar
Copy link
Contributor

rmathar commented Jan 21, 2025

To help debugging, you could set AM_CFLAGS in Makefile.am to -g -O0 -fsanitize=address -fsanitize=null -fsanitize=bounds-strict -fsanitize=alignment -fsanitize=return -fsanitize=object-size -fsanitize=vptr -fsanitize=integer-divide-by-zero -fstack-protector-all -fno-omit-frame-pointer -fsanitize=undefined -fsanitize-address-use-after-scope, recompile, run, and tell us what the pointer checkers tell.

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

3 participants