Skip to content

[WRAPPER] Add gnutls_free wrapped function for libgnutls#3824

Merged
ptitSeb merged 1 commit intoptitSeb:mainfrom
zengdage:gnutls_free
May 6, 2026
Merged

[WRAPPER] Add gnutls_free wrapped function for libgnutls#3824
ptitSeb merged 1 commit intoptitSeb:mainfrom
zengdage:gnutls_free

Conversation

@zengdage
Copy link
Copy Markdown
Contributor

@zengdage zengdage commented May 6, 2026

gnutls_free is a function pointer. If it were defined as an ordinary function, it would trigger a signal 11 error in CheckExec.

In fact, `gnutls_free` is a function pointer. If it were defined as an ordinary
function, it would trigger a signal 11 error in `CheckExec`.
@zengdage zengdage changed the title Add gnutls_free wrapped function for libgnutls [WRAPPER] Add gnutls_free wrapped function for libgnutls May 6, 2026
@ptitSeb
Copy link
Copy Markdown
Owner

ptitSeb commented May 6, 2026

Looks correct to me.

Can I ask in what case you needed that change?

@zengdage
Copy link
Copy Markdown
Contributor Author

zengdage commented May 6, 2026

Looks correct to me.

Can I ask in what case you needed that change?

When running Feishu, a communication software developed by Alibaba, on the RISC-V platform using Box64, an error occurs:

Emit Signal 11 at IP=0x34b68c404353cc(??? / ?) / addr=0x34b68c404353cc, code=0xecec.

After analysis, the root cause is that gnutls_free, a global function pointer variable, is directly invoked as an ordinary function. This results in a failure in CheckExec.

@ptitSeb
Copy link
Copy Markdown
Owner

ptitSeb commented May 6, 2026

Looks correct to me.
Can I ask in what case you needed that change?

When running Feishu, a communication software developed by Alibaba, on the RISC-V platform using Box64, an error occurs:

Emit Signal 11 at IP=0x34b68c404353cc(??? / ?) / addr=0x34b68c404353cc, code=0xecec.

After analysis, the root cause is that gnutls_free, a global function pointer variable, is directly invoked as an ordinary function. This results in a failure in CheckExec.

I see. Thanks for answering, and nice debug!

@ptitSeb ptitSeb merged commit 05b8d97 into ptitSeb:main May 6, 2026
28 checks passed
@zengdage zengdage deleted the gnutls_free branch May 7, 2026 01:10
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

Successfully merging this pull request may close these issues.

2 participants