Received: from eggs.gnu.org ([2001:4830:134:3::10]:51179) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aVKtO-0002br-6T for qemu-devel@nongnu.org; Mon, 15 Feb 2016 10:16:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aVKtI-0001sv-Ca for qemu-devel@nongnu.org; Mon, 15 Feb 2016 10:16:50 -0500 Received: from mbob.nabble.com ([162.253.133.15]:57637) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aVKtI-0001sZ-6K for qemu-devel@nongnu.org; Mon, 15 Feb 2016 10:16:44 -0500 Received: from mtom.nabble.com (unknown [162.253.133.81]) by mbob.nabble.com (Postfix) with ESMTP id 9D37B20C5992 for ; Mon, 15 Feb 2016 07:10:13 -0800 (PST) Date: Mon, 15 Feb 2016 07:23:32 -0700 (MST) From: junaidaslam1 Message-ID: <1455546212904-387673.post@n7.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] QEMU: Illegal instruction (core dumped) when using Pthread example code List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Hi, I am using a very simple Pthread code to be emulated through QEMU which is cross compiled using ARM-GCC Compiler. When i run the program through QEMU it gives illegal instruction (core dump) error. Can anyone help me or enlighten me what is the reason of this message. My simple code is shown below: // Simple Multi-Threaded Application #include #include void* test_threads(void* args); int main(int argc, char *argv[]) { pthread_t mythreads[9]; int i=0; //...................................................... for(i=0;i<9;i++) { if(pthread_create(&mythreads[i],NULL,(void*)&test_threads,(void*)NULL)) { printf("Error Creating thread no %d",i); } } for(i=0;i<9;i++) { pthread_join(mythreads[i],NULL); } //.......................................................*/ return 0; } void* test_threads(void* args) // Write some Complex Functionality { int value = (int)((float)(13) / 0.33f); return (void*) value; } I hope to have help soon. Regards: Junaid -- View this message in context: http://qemu.11.n7.nabble.com/QEMU-Illegal-instruction-core-dumped-when-using-Pthread-example-code-tp387673.html Sent from the Developer mailing list archive at Nabble.com.