opam-repository
opam-repository copied to clipboard
Package typeid.1.0.1-alpha.14
typeid.1.0.1-alpha.14
Typeid and UUIDv7 implementation in OCaml TypeId and UUIDv7 implementation in OCaml
- Homepage: https://github.com/titouancreach/typeid-ocaml
- Source repo: git+https://github.com/titouancreach/typeid-ocaml.git
- Bug tracker: https://github.com/titouancreach/typeid-ocaml/issues
:camel: Pull-request generated by opam-publish v2.3.0
Ok, I need help here, I made 14 alpha release to try to find out the problem, and it segfault on 32 bit arch even when I don't call my code:
Calling this func cause the tests to segfault on 32 bit, just returning a record composed of 3 empty function (unit -> unit) https://github.com/titouancreach/typeid-ocaml/blob/61c45a39ee057db49886fb77075c76fc0168021d/test/valid_test.ml#L19
Even if I don't call them. If I dont call the function make_valid_test_case
at all, no segfault
Hiya,
Idk why it segfaults. Maybe some issue on the Stdint side?
In the meantime, you can do a 64-bit only release by adding available: arch != "arm32" & arch != "x86_32"
Merci @raphael-proust (j'ai vu que tu étais français 😄), pour être honnête j'ai désactivé tous les appels à mon code, donc tous les appels à Stdint (c'était aussi mon intuition) donc là vraiment je sèche. J'ai voulu installer un docker ou autre 32b x86 pour reproduire mais vu que je suis sous mac arm 64 c'est pas facile du tout, donc je me servais du CI pour essayer de voir, donc c'est super difficile a deboguer (et super long). j'imagine que si Ocaml compile en binaire, ça doit être possible d'utiliser des outils comme valgrind ou essayer de voir ou ça segfault.
Mais en effet, je vais faire un reset --hard
de quand ça marchait et désactiver les architectures concernées.
Merci de ta réponse 👍