java-native-access / java-native-access/jna

coffeecatch support (turning C crashes into Java exceptions)

Open
#470 10 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature request
Dominant language
Java
Stars
8.9k
Forks
1.7k
PR merge metrics
No merged PRs in 30d

Description

It would be super handy to have coffeecatch support in JNA. ( http://blog.httrack.com/blog/2013/08/23/catching-posix-signals-on-android/ )

This would aid in debugging when a C function crashes, as it would give the Java stack which lead up to it.

No, there is no expectation that the exception can be caught and ignored. Knowing where it crashed, however, would be very valuable.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing JNA's native crash and signal-handling entry points, then read the linked coffeecatch article to understand the proposed approach. Done means C crashes expose the Java stack that led to them, without implying that the resulting exception can be safely caught or ignored.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, java
Domain
operating-systems
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.