Luc Sarzyniec
Luc Sarzyniec
Hello @EmotionalSnow, sorry for the late answer and thank you very much for your investigation and the detailed bug report. It's more likely to be a _crystal_lib_ bug, I'm going...
I don't know about the first issue (I tried to generate an h2o binding I didn't get this problem) but the second is definitely a bug. I've opened a bug...
Hello @watzon, I think @maxfierke found the code that is throwing this exception (the broken stack trace issue might be related to https://github.com/crystal-lang/crystal/issues/8075 or https://github.com/crystal-lang/crystal/issues/8387). The error is from [crystal_lib](https://github.com/crystal-lang/crystal_lib)...
I tried to reproduce using this header file: ```c #include #include typedef struct pkcs7_signed_st { ASN1_INTEGER *version; /* version 1 */ STACK_OF(X509_ALGOR) *md_algs; /* md used */ STACK_OF(X509) *cert; /*...
Ok, it looks like it's related to something in the _pkcs7.h_ header because I can reproduce with this _lib.yml_: ```yaml --- name: Test ldflags: "-lssl -lcrypto" packages: openssl destdir: src/test/lib...
Just found found where the bug is coming from, I opened an issue in the _crystal_lib_ project.
Here is the code that's generated with the patch: ``` lib LibTest fun = test : St* struct St a : LibC::Int b : StB end enum StB X =...
Hey 👋 Can we consider to merge this fix now it's approved?
It looks like the issue is coming from the parser. I implemented a fix, please let me know if there is anything wrong with it.
Looks like it's fixed by https://github.com/crystal-lang/crystal_lib/pull/65 .