From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1216 invoked by alias); 12 Nov 2011 20:38:46 -0000 Received: (qmail 1208 invoked by uid 22791); 12 Nov 2011 20:38:45 -0000 X-SWARE-Spam-Status: Yes, hits=5.0 required=5.0 tests=BAYES_40,BOTNET,T_MIME_NO_TEXT,T_TVD_MIME_NO_HEADERS X-Spam-Check-By: sourceware.org Received: from outmail149058.authsmtp.co.uk (HELO outmail149058.authsmtp.co.uk) (62.13.149.58) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 12 Nov 2011 20:38:32 +0000 Received: from mail-c187.authsmtp.com (mail-c187.authsmtp.com [62.13.128.33]) by punt12.authsmtp.com (8.14.2/8.14.2/Kp) with ESMTP id pACKcUw2096918 for ; Sat, 12 Nov 2011 20:38:30 GMT Received: from asuka.2ndquadrant.com (157-157-43-108.dsl.dynamic.simnet.is [157.157.43.108]) (authenticated bits=0) by mail.authsmtp.com (8.14.2/8.14.2) with ESMTP id pACKcSmE015444 for ; Sat, 12 Nov 2011 20:38:29 GMT To: GCC Java Subject: Garbage collection segfault in OpenIndiana From: "Johann 'Myrkraverk' Oskarsson" Date: Sat, 12 Nov 2011 20:38:00 -0000 Message-ID: User-Agent: Gnus/5.1008 (Gnus v5.10.8) XEmacs/21.4.22 (usg-unix-v) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Server-Quench: 47c83fb2-0d6e-11e1-ab46-001185d377ca X-AuthReport-Spam: If SPAM / abuse - report it at: http://www.authsmtp.com/abuse X-AuthRoute: OCdxZQATClZXSwQT DCUsVilMUBgsKgdF BwNFJgxfNlgASw15 PU1RaFVVLRsbX15P AmQUJQsST19xWGJl aQpbbg1XYEMAXgBt TklMRUxWFxtpARQe BBscVwZyOUU3CwUj BhsXXnFeWEB+O0R9 QU0aEWpVbWQ2OmIC UBReIh5VcVZLY04X blZiVHMMYG0CMnln QAQ6KR84Jz9WJykd SQYJKV8ZXUcMGHYn Sh8MFCgrAQUEQW0U NxEgC1gQHU8XOy23 X-Authentic-SMTP: 61633235383639.1000:706 X-AuthFastPath: 0 (Was 255) X-AuthVirus-Status: No virus detected - but ensure you scan with your own anti-virus system. X-IsSubscribed: yes Mailing-List: contact java-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-owner@gcc.gnu.org X-SW-Source: 2011-11/txt/msg00000.txt.bz2 --=-=-= Content-length: 749 Hi all, With GCC 4.6.2 on OpenIndiana 151a (Solaris) the boehm gc segfaults in os_dep.c:810 when JNI_CreateJavaVM() is called. The attached invocation example (as small as I think I can make it) is a complete example. Is this the right place to discuss this issue? I thought of merging boehm gc 7.1 into the gcc source tree, but this seems non-trivial. In particular it's not possible just to make it a drop-in replacement. Is there a way to have GCJ use a system supplied boehm gc? -- Johann Oskarsson http://www.2ndquadrant.com/ |[] PostgreSQL Development, 24x7 Support, Training and Services --+-- | Blog: http://my.opera.com/myrkraverk/blog/ --=-=-= Content-Disposition: attachment; filename=inv.c Content-Description: Invocation example Content-length: 804 // File: invoke.c // Compile with: // gcc -g -m64 -o inv inv.c -L/lib/amd64/gcj-4.6.2-12 -ljvm \ // -R/lib/amd64/gcj-4.6.2-12 \ // -R/lib/gcc/i386-pc-solaris2.11/4.6.2/amd64 // The -g -m64 is optional, of course. The last -R should not be // neccesary but is on my install. #include int main( int argc, char *argv[] ) { JNIEnv *env; JavaVM *jvm; jint res; JavaVMInitArgs vm_args; JavaVMOption options[1]; options[0].optionString = "-Djava.class.path=."; vm_args.version = 0x00010002; vm_args.options = options; vm_args.nOptions = 1; vm_args.ignoreUnrecognized = JNI_TRUE; // This segfaults in the Boehm GC, in // boehm-gc/os_dep.c:810 res = JNI_CreateJavaVM(&jvm, (void**)&env, &vm_args); return 0; } /* End of file: invoke.c */ --=-=-=--