Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 95228 invoked from network); 18 Jul 2008 20:41:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Jul 2008 20:41:22 -0000 Received: (qmail 7572 invoked by uid 500); 18 Jul 2008 20:41:22 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 7543 invoked by uid 500); 18 Jul 2008 20:41:21 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 7532 invoked by uid 99); 18 Jul 2008 20:41:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Jul 2008 13:41:21 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Jul 2008 20:40:36 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id AC1EB234C178 for ; Fri, 18 Jul 2008 13:40:31 -0700 (PDT) Message-ID: <1703544896.1216413631703.JavaMail.jira@brutus> Date: Fri, 18 Jul 2008 13:40:31 -0700 (PDT) From: "Kathey Marsden (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Commented: (DERBY-3618) Perform thread dump with ASSERTS with jdk 1.5 or higher In-Reply-To: <337116952.1208203748626.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DERBY-3618?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12614863#action_12614863 ] Kathey Marsden commented on DERBY-3618: --------------------------------------- Thanks Erlend for the new patch. I think we are getting very close. Per earlier comment need to ... - Fix it so ASSERT message prints even if you don't have permission to dump threads. - add permissions to derby_tests.policy to derby.jar and derbyclient.jar to have permissions to dump threads. I tried adding the permissions and with the permissions it worked fine with my assertion and printed the message properly. It is too bad that our exception stack trace has to print after the thread dump, but I guess there is no way around it now that the thread dump is part of the message? On the tests, I don't see actually where setIO permissions are needed. Is this perhaps residual from when the thread dump printed to System.out? You should be able to give the getStackTrace and modifyThreadGroup permissions to derby.jar and derbyclient.jar and avoid having to grant permissions to all. If you have to grant permissions to all there is some sort of problem with a privileged block missing somwhere or something like that. Take a look at derby_tests.policy for default derby.jar, derbyclient.jar permissions. Thanks again Erlend for all the great work. This is indeed tricky stuff. > Perform thread dump with ASSERTS with jdk 1.5 or higher > ------------------------------------------------------- > > Key: DERBY-3618 > URL: https://issues.apache.org/jira/browse/DERBY-3618 > Project: Derby > Issue Type: Improvement > Components: Services > Affects Versions: 10.5.0.0 > Reporter: Kathey Marsden > Assignee: Erlend Birkenes > Priority: Minor > Attachments: DERBY-3618_1.diff, DERBY-3618_2.diff, DERBY-3618_3.diff, DERBY-3618_4.diff, DERBY-3618_5.diff > > > It would be good to have a stack traces for all threads dump to the derby.log when an assertion occurs with JVM's that support it. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.