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 156502 - step into a multithread debugging class ends the session
Summary: step into a multithread debugging class ends the session
Status: RESOLVED INCOMPLETE
Alias: None
Product: python
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 8.1
Hardware: All All
: P2 blocker (vote)
Assignee: Peter Lam
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-09 01:42 UTC by Peter Lam
Modified: 2015-05-19 05:12 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
show fix in progress on threading case (180.43 KB, text/plain)
2009-01-18 20:26 UTC, jymen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Lam 2009-01-09 01:42:48 UTC
Build 550 
Product Version: NetBeans IDE Dev (Build 20090108201903)
Java: 1.6.0_07; Java HotSpot(TM) Client VM 10.0-b23
System: Linux version 2.6.24-19-generic running on i386; UTF-8; en_US (nb)
Userdir: /home/tester/.netbeans/dev-b550

- create the "Multi-threading in Python" sample project
- open the PyThreads.py source
- put a break point on line 82 (for statement)
- step over to line 87 'parent = Parent(numbers[startpos:startpos + 4])'
- step into line 87 and see result below. step over line 87 will continue to the next number in the for loop.
Result: the debugging session ends. The debugging window shows the following lines.

>>>[LOG]PythonDebugger : overall Starting
[LOG]PythonDebugger.taskStarted : I am Starting a new Debugging Session ...
[LOG]This window is an interactive debugging context aware Python Shell 
[LOG]where you can enter python console commands while debugging 
>>>/home/tester/.netbeans/dev-b550/config/nbPython/debug/nbpythondebug/jpydaemon.py
args =  ['/home/tester/.netbeans/dev-b550/config/nbPython/debug/nbpythondebug/jpydaemon.py', 'localhost', '29100']
localDebuggee= None
JPyDbg connecting  localhost  on port  29100
JPyDbgI0001 : connected to  localhost
[stdout:]<MainThread(MainThread, runnable)>
[stdout:]Starting the threads
>>>'Parent' object has no attribute '_thread'['Traceback (most recent call last):
deamon ended
', '  File "/home/tester/NetBeansProjects/PyThreads/src/PyThreads.py", line 87, in <module>

    parent = Parent(numbers[startpos:startpos + 4])
Debug session normal end
', '  File "/home/tester/NetBeansProjects/PyThreads/src/PyThreads.py", line 87, in <module>
    parent = Parent(numbers[startpos:startpos + 4])
', '  File "/home/tester/NetBeansProjects/PyThreads/src/PyThreads.py", line 54, in __init__
    """Documentation"""
', '  File "/home/tester/.netbeans/dev-b550/config/nbPython/debug/nbpythondebug/jpydaemon.py", line 626, in trace_dispatch
    self.dispatchLineAndBreak(mainDebugger, frame , lthread )
', '  File "/home/tester/.netbeans/dev-b550/config/nbPython/debug/nbpythondebug/jpydaemon.py", line 506, in
dispatchLineAndBreak
    while ( debugger.parseSubCommand( debugger.receiveCommand() , frame , lthread ) == FREEZE ):
', '  File "/home/tester/.netbeans/dev-b550/config/nbPython/debug/nbpythondebug/jpydaemon.py", line 506, in
dispatchLineAndBreak
    while ( debugger.parseSubCommand( debugger.receiveCommand() , frame , lthread ) == FREEZE ):
', '  File "/home/tester/.netbeans/dev-b550/config/nbPython/debug/nbpythondebug/jpydaemon.py", line 1297, in parseSubCommand
    self.variablesSubCommand( frame , verb , arg , LOCALS )
', '  File "/home/tester/.netbeans/dev-b550/config/nbPython/debug/nbpythondebug/jpydaemon.py", line 1210, in
variablesSubCommand
    self.dealWithVariables( frame , verb , arg )
', '  File "/home/tester/.netbeans/dev-b550/config/nbPython/debug/nbpythondebug/jpydaemon.py", line 1080, in
dealWithVariables
    xmlVariables.append(\'content="\'+ _utils.removeForXml(__builtin__.str(mapElement[1]))+\'" \')
', '  File "/home/tester/nbPython/netbeans-hudson-python-550/python1/jython-2.5/Lib/threading.py", line 170, in __repr__
    _thread = self._thread
', "AttributeError: 'Parent' object has no attribute '_thread'
"]
>>>
Comment 1 jymen 2009-01-18 20:26:04 UTC
Created attachment 75953 [details]
show fix in progress on threading case
Comment 2 jymen 2009-01-18 21:39:42 UTC
fix starting at build #663
Comment 3 Peter Lam 2009-01-20 22:36:35 UTC
Product Version: NetBeans IDE Dev (Build 20090120172641)
Java: 1.6.0_11; Java HotSpot(TM) Server VM 11.0-b16
System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb)
Userdir: C:\Users\peter\.netbeans\dev20090120-b684

Verified in build #684 and the same problem still exists on the above Windows platform.
Comment 4 jymen 2009-01-21 07:59:22 UTC
I am not able to reproduce on Linux(see the attached screenshot) so I switched the platform to windows
Comment 5 jymen 2009-01-21 08:49:08 UTC
Peter , 

can you check that the python stacktrace you got with the new build is the same as the previous one ? if not can you
attach the new stacktrace to the issue

Thanks