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

Segment fault on Debian image #4

Open
garywill opened this issue Dec 12, 2023 · 2 comments
Open

Segment fault on Debian image #4

garywill opened this issue Dec 12, 2023 · 2 comments

Comments

@garywill
Copy link

Trying to run in docker.io/library/python:3.10.12 ( Debian 12 (bookworm) ) on huggingface

with https://github.com/eritpchy/videosubfinder-cli/releases/download/6.10.2-ci/videosubfinder-cli-cpu-static-linux-x64.tar.gz

strace /home/user/app/p/VideoSubFinderCli.run --verbose -c -r -i "/tmp/gradio/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/input.mp4" -o "/tmp/gradio/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/output/input" -ces "/tmp/gradio/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/output/input/subtitle/raw_vsf.srt" -te 0.9305555555555556 -be 0.7916666666666666 -le 0.0390625 -re 0.1171875 -nthr 10 -dsi


execve("/home/user/app/p/VideoSubFinderCli.run", ["/home/user/app/p/VideoSUbFin"..., "--verbose", "-c", "-r", "-i", "/tmp/gradio/xxxxxxxx"..., "-o", "/tmp/gradio/xxxxxxxx"..., "-ces", "/tmp/gradio/xxxxxxxx"..., "-te", "0.9305555555555556", "-be", "0.7916666666666666", "-le", "0.0390625", "-re", "0.1171875", "-nthr", "10", "-dsi"], 0x7ffee92dd140 /* 47 vars */) = 0
brk(NULL)                               = 0x55e215eb4000
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f534d2b4000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/user/.local/lib/python3.10/site-packages/cv2/../../lib64/glibc-hwcaps/x86-64-v4/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/home/user/.local/lib/python3.10/site-packages/cv2/../../lib64/glibc-hwcaps/x86-64-v4", 0x7ffd73971ae0, 0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/user/.local/lib/python3.10/site-packages/cv2/../../lib64/glibc-hwcaps/x86-64-v3/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/home/user/.local/lib/python3.10/site-packages/cv2/../../lib64/glibc-hwcaps/x86-64-v3", 0x7ffd73971ae0, 0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/user/.local/lib/python3.10/site-packages/cv2/../../lib64/glibc-hwcaps/x86-64-v2/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/home/user/.local/lib/python3.10/site-packages/cv2/../../lib64/glibc-hwcaps/x86-64-v2", 0x7ffd73971ae0, 0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/user/.local/lib/python3.10/site-packages/cv2/../../lib64/tls/haswell/avx512_1/x86_64/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/home/user/.local/lib/python3.10/site-packages/cv2/../../lib64/tls/haswell/avx512_1/x86_64", 0x7ffd73971ae0, 0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/user/.local/lib/python3.10/site-packages/cv2/../../lib64/tls/haswell/avx512_1/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/home/user/.local/lib/python3.10/site-packages/cv2/../../lib64/tls/haswell/avx512_1", 0x7ffd73971ae0, 0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/user/.local/lib/python3.10/site-packages/cv2/../../lib64/tls/haswell/x86_64/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/home/user/.local/lib/python3.10/site-packages/cv2/../../lib64/tls/haswell/x86_64", 0x7ffd73971ae0, 0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/user/.local/lib/python3.10/site-packages/cv2/../../lib64/tls/haswell/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/home/user/.local/lib/python3.10/site-packages/cv2/../../lib64/tls/haswell", 0x7ffd73971ae0, 0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/user/.local/lib/python3.10/site-packages/cv2/../../lib64/tls/avx512_1/x86_64/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/home/user/.local/lib/python3.10/site-packages/cv2/../../lib64/tls/avx512_1/x86_64", 0x7ffd73971ae0, 0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/user/.local/lib/python3.10/site-packages/cv2/../../lib64/tls/avx512_1/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/home/user/.local/lib/python3.10/site-packages/cv2/../../lib64/tls/avx512_1", 0x7ffd73971ae0, 0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/user/.local/lib/python3.10/site-packages/cv2/../../lib64/tls/x86_64/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/home/user/.local/lib/python3.10/site-packages/cv2/../../lib64/tls/x86_64", 0x7ffd73971ae0, 0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/user/.local/lib/python3.10/site-packages/cv2/../../lib64/tls/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/home/user/.local/lib/python3.10/site-packages/cv2/../../lib64/tls", 0x7ffd73971ae0, 0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/user/.local/lib/python3.10/site-packages/cv2/../../lib64/haswell/avx512_1/x86_64/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/home/user/.local/lib/python3.10/site-packages/cv2/../../lib64/haswell/avx512_1/x86_64", 0x7ffd73971ae0, 0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/user/.local/lib/python3.10/site-packages/cv2/../../lib64/haswell/avx512_1/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/home/user/.local/lib/python3.10/site-packages/cv2/../../lib64/haswell/avx512_1", 0x7ffd73971ae0, 0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/user/.local/lib/python3.10/site-packages/cv2/../../lib64/haswell/x86_64/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/home/user/.local/lib/python3.10/site-packages/cv2/../../lib64/haswell/x86_64", 0x7ffd73971ae0, 0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/user/.local/lib/python3.10/site-packages/cv2/../../lib64/haswell/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/home/user/.local/lib/python3.10/site-packages/cv2/../../lib64/haswell", 0x7ffd73971ae0, 0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/user/.local/lib/python3.10/site-packages/cv2/../../lib64/avx512_1/x86_64/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/home/user/.local/lib/python3.10/site-packages/cv2/../../lib64/avx512_1/x86_64", 0x7ffd73971ae0, 0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/user/.local/lib/python3.10/site-packages/cv2/../../lib64/avx512_1/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/home/user/.local/lib/python3.10/site-packages/cv2/../../lib64/avx512_1", 0x7ffd73971ae0, 0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/user/.local/lib/python3.10/site-packages/cv2/../../lib64/x86_64/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/home/user/.local/lib/python3.10/site-packages/cv2/../../lib64/x86_64", 0x7ffd73971ae0, 0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/user/.local/lib/python3.10/site-packages/cv2/../../lib64/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/home/user/.local/lib/python3.10/site-packages/cv2/../../lib64", 0x7ffd73971ae0, 0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "glibc-hwcaps/x86-64-v4/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "glibc-hwcaps/x86-64-v3/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "glibc-hwcaps/x86-64-v2/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "tls/haswell/avx512_1/x86_64/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "tls/haswell/avx512_1/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "tls/haswell/x86_64/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "tls/haswell/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "tls/avx512_1/x86_64/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "tls/avx512_1/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "tls/x86_64/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "tls/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "haswell/avx512_1/x86_64/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "haswell/avx512_1/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "haswell/x86_64/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "haswell/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "avx512_1/x86_64/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "avx512_1/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "x86_64/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=35006, ...}, AT_EMPTY_PATH) = 0
mmap(NULL, 35006, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f534d2ab000
close(3)                                = 0
openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\220s\2\0\0\0\0\0"..., 832) = 832
pread64(3, "\6\0\0\0\4\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0"..., 784, 64) = 784
newfstatat(3, "", {st_mode=S_IFREG|0755, st_size=1922136, ...}, AT_EMPTY_PATH) = 0
pread64(3, "\6\0\0\0\4\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0"..., 784, 64) = 784
mmap(NULL, 1970000, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f534d0ca000
mmap(0x7f534d0f0000, 1396736, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x26000) = 0x7f534d0f0000
mmap(0x7f534d245000, 339968, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x17b000) = 0x7f534d245000
mmap(0x7f534d298000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1ce000) = 0x7f534d298000
mmap(0x7f534d29e000, 53072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f534d29e000
close(3)                                = 0
mmap(NULL, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f534d0c7000
arch_prctl(ARCH_SET_FS, 0x7f534d0c7740) = 0
set_tid_address(0x7f534d0c7a10)         = 63
set_robust_list(0x7f534d0c7a20, 24)     = 0
rseq(0x7f534d0c8060, 0x20, 0, 0x53053053) = 0
mprotect(0x7f534d298000, 16384, PROT_READ) = 0
mprotect(0x55e214012000, 8192, PROT_READ) = 0
mprotect(0x7f534d2e6000, 8192, PROT_READ) = 0
prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=10240*1024, rlim_max=10240*1024}) = 0
munmap(0x7f534d2ab000, 35006)           = 0
getuid()                                = 1000
getgid()                                = 1000
getpid()                                = 63
rt_sigaction(SIGCHLD, {sa_handler=0x55e214007dc0, sa_mask=~[RTMIN RT_1], sa_flags=SA_RESTORER, sa_restorer=0x7f534d105fd0}, NULL, 8) = 0
geteuid()                               = 1000
getrandom("\x1f\x94\x3c\xc1\xc6\x4a\xaf\xd5", 8, GRND_NONBLOCK) = 8
brk(NULL)                               = 0x55e215eb4000
brk(0x55e215ed5000)                     = 0x55e215ed5000
getppid()                               = 60
newfstatat(AT_FDCWD, "/home/user/app", {st_mode=S_IFDIR|0755, st_size=38, ...}, 0) = 0
newfstatat(AT_FDCWD, ".", {st_mode=S_IFDIR|0755, st_size=38, ...}, 0) = 0
openat(AT_FDCWD, "/home/user/app/p/VideoSubFinderCli.run", O_RDONLY) = 3
fcntl(3, F_DUPFD, 10)                   = 10
close(3)                                = 0
fcntl(10, F_SETFD, FD_CLOEXEC)          = 0
geteuid()                               = 1000
getegid()                               = 1000
rt_sigaction(SIGINT, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGINT, {sa_handler=0x55e214007dc0, sa_mask=~[RTMIN RT_1], sa_flags=SA_RESTORER, sa_restorer=0x7f534d105fd0}, NULL, 8) = 0
rt_sigaction(SIGQUIT, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGQUIT, {sa_handler=SIG_DFL, sa_mask=~[RTMIN RT_1], sa_flags=SA_RESTORER, sa_restorer=0x7f534d105fd0}, NULL, 8) = 0
rt_sigaction(SIGTERM, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGTERM, {sa_handler=SIG_DFL, sa_mask=~[RTMIN RT_1], sa_flags=SA_RESTORER, sa_restorer=0x7f534d105fd0}, NULL, 8) = 0
read(10, "#!/bin/sh\ncd ${0%/*}\nexport LD_L"..., 8192) = 141
chdir("/home/user/app/p") = 0
newfstatat(AT_FDCWD, "/home/user/.local/bin/chmod", 0x7ffd73972620, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/usr/local/bin/chmod", 0x7ffd73972620, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/usr/local/sbin/chmod", 0x7ffd73972620, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/usr/local/bin/chmod", 0x7ffd73972620, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/usr/sbin/chmod", 0x7ffd73972620, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/usr/bin/chmod", {st_mode=S_IFREG|0755, st_size=64496, ...}, 0) = 0
rt_sigprocmask(SIG_SETMASK, ~[RTMIN RT_1], NULL, 8) = 0
vfork()                                 = 64
rt_sigprocmask(SIG_SETMASK, [], ~[KILL STOP RTMIN RT_1], 8) = 0
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 64
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=64, si_uid=1000, si_status=0, si_utime=0, si_stime=7 /* 0.07 s */} ---
rt_sigreturn({mask=[]})                 = 64
wait4(-1, 0x7ffd739725ac, WNOHANG, NULL) = -1 ECHILD (No child processes)
rt_sigprocmask(SIG_SETMASK, ~[RTMIN RT_1], NULL, 8) = 0
vfork()                                 = 65
rt_sigprocmask(SIG_SETMASK, [], ~[KILL STOP RTMIN RT_1], 8) = 0
wait4(-1, [{WIFSIGNALED(s) && WTERMSIG(s) == SIGSEGV && WCOREDUMP(s)}], 0, NULL) = 65
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_DUMPED, si_pid=65, si_uid=1000, si_status=SIGSEGV, si_utime=44 /* 0.44 s */, si_stime=11 /* 0.11 s */} ---
rt_sigreturn({mask=[]})                 = 65
write(2, "Segmentation fault (core dumped)"..., 33Segmentation fault (core dumped)
) = 33
wait4(-1, 0x7ffd739725ac, WNOHANG, NULL) = -1 ECHILD (No child processes)
read(10, "", 8192)                      = 0
exit_group(139)                         = ?
+++ exited with 139 +++
@eritpchy
Copy link
Owner

eritpchy commented Dec 12, 2023

Comfirm, its bug on debian, maybe you could try alpine or ubuntu base image?
Comfirm, its bug on docker.io/library/python:3.10.12 image

@eritpchy
Copy link
Owner

sudo docker run -it --rm --name test debian bash
image

Latest Debian works, don't know why

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