This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 256571 - GDB has unexpectedly stopped with return 1
Summary: GDB has unexpectedly stopped with return 1
Status: RESOLVED WONTFIX
Alias: None
Product: cnd
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 8.1
Hardware: PC Linux
: P3 normal (vote)
Assignee: henk89
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-13 01:58 UTC by soundlord
Modified: 2016-01-29 14:54 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (35.76 KB, text/plain)
2015-11-13 01:58 UTC, soundlord
Details

Note You need to log in before you can comment on or make changes to this bug.
Description soundlord 2015-11-13 01:58:33 UTC
Product Version = NetBeans IDE 8.1 (Build 201510222201)
Operating System = Linux version 3.16.7-29-desktop running on amd64
Java; VM; Vendor = 1.8.0_60
Runtime = Java HotSpot(TM) 64-Bit Server VM 25.60-b23

Reproducibility: Happens every time

STEPS:
  Run the program with breakpoint enabled
ACTUAL:
  Warning message displayed and then gdb exits

EXPECTED:
  Step out to the next instruction in the thread... (was working in 2014)...
Comment 1 soundlord 2015-11-13 01:58:37 UTC
Created attachment 157316 [details]
IDE log
Comment 2 soundlord 2015-11-16 07:53:22 UTC
I tested in depth the issue with different code I had I know they are ANSI compliant and respected the good way of programming multithreaded application.

I compared on two computers: one that debug threads without any problem and this one that can't go further than two or three steps without displaying a warning message and stopping the debugger (gdb).

The only difference between the two environments was the kernel I/O scheduler parameter set to "deadline" (opensuse 12.2 on kernel 3.4.63)... I then set the kernel I/O scheduler to deadline on the other computer (opensuse 13.2 on kernel 3.16.7) and... it worked !! 

Now, I can step on a thread without having the issue...
Comment 3 soundlord 2015-11-16 08:21:40 UTC
I shout it worked too early, sorry !
It improved the number of steps before the issue came again :{

I stepped in console mode and I got more informations:

internal-error: switch_back_to_stepped_thread: Assertion `!schedlock_applies (1)' failed.

That may mean that I would set the gdb's parameter scheduler-locking to another value ?

YES !!

I put those lines in the /etc/gdbinit file

set libthread-db-search-path /usr/lib64
set debug libthread-db 1
set scheduler-locking off

And now I can REALLY say it works !!
Comment 4 soundlord 2015-11-16 08:26:22 UTC
I have more additional informations to give to avoid being very frustrated:

In your project properties, you have to point /etc/gdbinit instead of /root/.gdbinit.

Or create a symbolic link from /root/.gdbinit to /etc/gdbinit to make it work, otherwise you should have same behaviour ^^
Comment 6 soundlord 2015-11-16 21:37:13 UTC
Yes, I use gdb 7.8.