On 06/07/07, ArtemGr <[EMAIL PROTECTED]> wrote:
> NP, here is the modified test case:
> http://hashbin.com/826.html
> SIGSEGVs on native, works OK on nested.

As you seem to get a far more reliable SIGSEGV than I do, could you
test this please:

---------------------
Function func = new Function() {
    int sum = 0;
    protected void xFunc() throws SQLException { sum++; result(1); }
    public String toString() { return String.valueOf(sum); }
};
Function.create(conn, "func", func);
Thread t = new Thread("func thread") {
    public void run() { try {
        conn.createStatement().executeQuery("select func();").close();
    } catch (SQLException e) { e.printStackTrace(); } }
};
t.start();
t.join();

assert(Integer.parseInt(func.toString()) == 1);
---------------------

As I understand it, this should be enough to make it fail.

d.

--~--~---------~--~----~------------~-------~--~----~
Mailing List: http://groups.google.com/group/sqlitejdbc?hl=en
To unsubscribe, send email to [EMAIL PROTECTED]
-~----------~----~----~----~------~----~------~--~---

Reply via email to