You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm seeing a binary built inside a docker alpine container seg-fault at the method #close of a Lwt_process.process.
(It just works everywhere else I've tried).
#0 0x00007f41503d2ed5 in strerror_l () from /lib/ld-musl-x86_64.so.1
#1 0x00007f415040035d in perror () from /lib/ld-musl-x86_64.so.1
#2 0x0000558f4c1fcf80 in ?? ()
#3 0x0000558f4c1fcf80 in ?? ()
#4 0x0000000000000002 in ?? ()
#5 0x00007f414ff33ce8 in ?? ()
#6 0x0000558f4c1f2020 in ?? ()
#7 0x00007f415033a7ba in ?? () from /usr/lib/libev.so.4
#8 0x00007f415033dcf1 in ev_run () from /usr/lib/libev.so.4
#9 0x0000558f4abbb108 in ev_loop (flags=2, loop=0x558f4c1fcf80) at /usr/include/ev.h:841
#10 lwt_libev_loop (val_loop=<optimized out>, val_block=<optimized out>) at lwt_libev_stubs.c:102
#11 0x0000558f4a743016 in camlLwt_engine__fun_2085 () at src/unix/lwt_engine.ml:182
#12 0x0000558f4a7460ca in camlLwt_main__run_loop_135 () at src/unix/lwt_main.ml:41
#13 0x0000558f4a74630a in camlLwt_main__run_176 () at src/unix/lwt_main.ml:118
#14 0x0000558f4a0ce579 in camlFlextesa__Internal_pervasives__run_application_5220 () at src/lib/internal_pervasives.ml:353
#15 0x0000558f4a652dd8 in camlCmdliner_term__fun_182 () at cmdliner_term.ml:25
#16 0x0000558f4a655d37 in camlCmdliner__run_414 () at cmdliner.ml:117
#17 0x0000558f4a656048 in camlCmdliner__term_eval_440 () at cmdliner.ml:147
#18 0x0000558f4a656c3b in camlCmdliner__eval_choice_inner_1638 () at cmdliner.ml:265
#19 0x0000558f49d33ffc in camlMain__entry () at src/app/main.ml:151
#20 0x0000558f49d274b9 in caml_program ()
#21 0x0000558f4abf0f80 in caml_start_program ()
#22 0x0000558f4abce27c in caml_startup_common (argv=0x7fff79148368, pooling=<optimized out>, pooling@entry=0) at startup_nat.c:158
#23 0x0000558f4abce2fb in caml_startup_exn (argv=<optimized out>) at startup_nat.c:163
#24 caml_startup (argv=<optimized out>) at startup_nat.c:168
#25 caml_main (argv=<optimized out>) at startup_nat.c:175
#26 0x0000558f49d2208c in main (argc=<optimized out>, argv=<optimized out>) at main.c:41
(gdb)
The text was updated successfully, but these errors were encountered:
Alpine only? Segfault? This reads like stack overflow to me ;)
Alpine (musl really iirc) has a default stack size of 8mb which is way inferior to other distros/libc.
note that the topic is in vogue!
I'm seeing a binary built inside a docker alpine container seg-fault at the method
#close
of aLwt_process.process
.(It just works everywhere else I've tried).
With
strace
:a
gdb
backtrace:The text was updated successfully, but these errors were encountered: