In issues 7238 , 16482 , 17697  and 17277 , the line number may be incorrect when the global trace function has been removed but not the frame f_trace function. A simple test (see below) in issue 17288  crashes the interpreter when setting f_lineno in a generator from a return trace function. All those issues are few months old. There is a patch at issue 17277  that fixes the first 4 issues. There is also a patch for issue 17288 .
###### Setting f_lineno in a generator ###### $ cat jump.py def gen(): for i in range(1): yield i lineno = 4
for i in gen(): pass
$ python -m pdb jump.py
-> def gen(): (Pdb) import sys; print(sys.version) 3.4.0a1+ (default:975d1e180689, Sep 6 2013, 09:26:12) [GCC 4.3.2] (Pdb) break 3 Breakpoint 1 at /tmp/jump.py:3 (Pdb) continue
-> yield i (Pdb) step --Return--
-> yield i (Pdb) jump 2
-> for i in range(1): (Pdb) continue Segmentation fault