{"id":5405,"date":"2014-03-30T21:39:12","date_gmt":"2014-03-30T21:39:12","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/eclipse-constantly-segfaults-in-gdb-collection-of-common-programming-errors\/"},"modified":"2014-03-30T21:39:12","modified_gmt":"2014-03-30T21:39:12","slug":"eclipse-constantly-segfaults-in-gdb-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/eclipse-constantly-segfaults-in-gdb-collection-of-common-programming-errors\/","title":{"rendered":"Eclipse constantly segfaults in GDB-Collection of common programming errors"},"content":{"rendered":"<p>While figuring out why Eclipse has been crashing on me, I tried to start eclipse and attach GDB to the eclipse java process. However, almost as soon as I attached GDB and told it to continue, there has been a constant stream of segfaults, almost immediately after I continue. This is part of it:<\/p>\n<pre><code>Program received signal SIGSEGV, Segmentation fault.\n[Switching to Thread 0x7f445879d700 (LWP 22968)]\n0x00007f445739b3f4 in JVM_NewInstanceFromConstructor () from \/usr\/java\/jdk1.7.0_45\/jre\/lib\/amd64\/server\/libjvm.so\n(gdb) bt\n#0  0x00007f445739b3f4 in JVM_NewInstanceFromConstructor () from \/usr\/java\/jdk1.7.0_45\/jre\/lib\/amd64\/server\/libjvm.so\n#1  0x00007f444d012698 in ?? ()\n#2  0x00000000f6031d10 in ?? ()\n#3  0x00000000f6031cf8 in ?? ()\n#4  0x00007f44587999b0 in ?? ()\n#5  0x0000000000000000 in ?? ()\n(gdb) c\nContinuing.\n[Thread 0x7f43d2a0f700 (LWP 23085) exited]\n\nProgram received signal SIGSEGV, Segmentation fault.\n[Switching to Thread 0x7f43d211c700 (LWP 23111)]\n0x00007f44570c86a4 in ThreadInVMfromJava::~ThreadInVMfromJava() () from \/usr\/java\/jdk1.7.0_45\/jre\/lib\/amd64\/server\/libjvm.so\n(gdb) \nContinuing.\n\nProgram received signal SIGSEGV, Segmentation fault.\n0x00007f445736e6fc in jni_ReleasePrimitiveArrayCritical () from \/usr\/java\/jdk1.7.0_45\/jre\/lib\/amd64\/server\/libjvm.so\n(gdb) \nContinuing.\n[Thread 0x7f43d211c700 (LWP 23111) exited]\n\nProgram received signal SIGSEGV, Segmentation fault.\n[Switching to Thread 0x7f43d280d700 (LWP 23087)]\n0x00007f44570c86a4 in ThreadInVMfromJava::~ThreadInVMfromJava() () from \/usr\/java\/jdk1.7.0_45\/jre\/lib\/amd64\/server\/libjvm.so\n(gdb) \nContinuing.\n[New Thread 0x7f43d211c700 (LWP 23174)]\n<\/code><\/pre>\n<p>The strange thing is that Eclipse seems to continue running perfectly fine while all these segfaults are occurring. I do not see any segfaults in Eclipse&#8217;s error log nor in dmesg. Does anybody know why this is happening, why Eclipse continues running despite the segfaults, and if it is something that needs to be fixed? I am also curious how a program can continue to run despite receiving a segfault, though I assume a signal handler is probably consuming the signal and preventing the program from exiting.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>While figuring out why Eclipse has been crashing on me, I tried to start eclipse and attach GDB to the eclipse java process. However, almost as soon as I attached GDB and told it to continue, there has been a constant stream of segfaults, almost immediately after I continue. This is part of it: Program [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-5405","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5405","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=5405"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5405\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=5405"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=5405"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=5405"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}