[issue14665] faulthandler prints tracebacks in reverse order

2014-02-01 Thread Nick Coghlan
Nick Coghlan added the comment: For additional context, Guido's patch in issue 19306 changed Traceback to Stack and added the (most recent call first) to some places where it was missing. Given the technical arguments in favour of keeping this code as simple as possible, agreed this is a

[issue14665] faulthandler prints tracebacks in reverse order

2014-01-31 Thread Yury Selivanov
Changes by Yury Selivanov yselivanov...@gmail.com: -- versions: +Python 3.5 -Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14665 ___

[issue14665] faulthandler prints tracebacks in reverse order

2014-01-31 Thread STINNER Victor
STINNER Victor added the comment: The issue #19306 changed faulthandler output to mention explicitly the frame order. I'm still opposed to reverse_frames.patch for the reason I gave above. Can I close this issue as wont fix? -- ___ Python tracker

[issue14665] faulthandler prints tracebacks in reverse order

2012-04-25 Thread STINNER Victor
STINNER Victor victor.stin...@gmail.com added the comment: Victor's argument makes sense to me. What I'd be inclined to do is shout at the reader a bit in the traceback header by making it:    Traceback (most recent call FIRST): The output is something like: Thread 0xf758d8d0: File

[issue14665] faulthandler prints tracebacks in reverse order

2012-04-24 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: Python usually prints traceback from the outer to the inner function: the inner frame is printed last. But faulthandler prints the inner frame first and the outer frame last. -- components: Extension Modules messages: 159223 nosy:

[issue14665] faulthandler prints tracebacks in reverse order

2012-04-24 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Here is a patch. -- keywords: +patch nosy: +ncoghlan Added file: http://bugs.python.org/file25355/reverse_frames.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14665

[issue14665] faulthandler prints tracebacks in reverse order

2012-04-24 Thread STINNER Victor
STINNER Victor victor.stin...@gmail.com added the comment: faulthandler has to be as simple as possible because Python internal state may be completly corrupted. faulthandler was written to display the traceback on bugs like invalid memory read or write. I chose to print the traceback as it is

[issue14665] faulthandler prints tracebacks in reverse order

2012-04-24 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Victor's argument makes sense to me. What I'd be inclined to do is shout at the reader a bit in the traceback header by making it: Traceback (most recent call FIRST): And put a comment in the source code with the gist of what Victor wrote