Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

some decompyle runtime errors #37

Closed
w00127960 opened this issue Jul 6, 2016 · 8 comments
Closed

some decompyle runtime errors #37

w00127960 opened this issue Jul 6, 2016 · 8 comments

Comments

@w00127960
Copy link

decompyle.errors.gz

not much to say, this is the output of 5 errors during decompilation

@rocky
Copy link
Owner

rocky commented Jul 6, 2016

Please try with the current github sources, not the last release. There were a number of bugs fixed since the last release.

Also separate into one issue for each of the compilation problems so they can be tracked separately. Not one issue per library. Thanks.

@w00127960
Copy link
Author

only one left when using the github sources is:

# file stats.pyc
# --- This code section failed: ---

 249       0  SETUP_LOOP        '68'
           3  LOAD_FAST         '.0'
           6  FOR_ITER          '67'
           9  STORE_FAST        'point'
          12  LOAD_DEREF        'start'
          15  LOAD_FAST         'point'
          18  LOAD_ATTR         'dt'
          21  DUP_TOP           ''
          22  ROT_THREE         ''
          23  COMPARE_OP        '<='
          26  JUMP_IF_FALSE     '39'
          29  POP_TOP           ''
          30  LOAD_DEREF        'stop'
          33  COMPARE_OP        '<'
          36  JUMP_FORWARD      '41'
        39_0  COME_FROM         '26'
          39  ROT_TWO           ''
          40  POP_TOP           ''
        41_0  COME_FROM         '36'
          41  JUMP_IF_FALSE     '63'
          44  POP_TOP           ''
          45  LOAD_FAST         'point'
          48  LOAD_ATTR         'len'
          51  JUMP_IF_FALSE     '63'
          54  POP_TOP           ''
          55  LOAD_FAST         'point'
          58  YIELD_VALUE       ''
          59  POP_TOP           ''
          60  JUMP_BACK         '6'
        63_0  COME_FROM         '41'
        63_1  COME_FROM         '51'
          63  POP_TOP           ''
          64  JUMP_BACK         '6'
          67  POP_BLOCK         ''
        68_0  COME_FROM         '0'

Syntax error at or near `COME_FROM' token at offset 63_1

@rocky
Copy link
Owner

rocky commented Jul 7, 2016

  1. What version of python are you using? Use python -V and copy the output.
  2. Attach a copy of the byte compiled file that has a problem. This file is not part github sources or test files. It is is something you happen to have installed in your Python library setup.
  3. Attach the source code so I can ensure the bug fix is a proper bug fix.

@w00127960
Copy link
Author

$ python --version
Python 2.7.10

@w00127960
Copy link
Author

stats.pyc.txt

@rocky
Copy link
Owner

rocky commented Jul 7, 2016

stats .py doesn't have a magic number that matches what python --version gives.

So now attach the source code.

I note that pycdc and the older uncompyle programs barf on that bytecode.

@w00127960
Copy link
Author

can't, don't have the source :)

On Thu, Jul 7, 2016 at 5:38 PM, R. Bernstein notifications@github.com
wrote:

stats .py doesn't have a magic number that matches what python --version
gives.

So now attach the source code.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#37 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/ATS9nei7zlzP0_F8oeMaWaXadk8W6D7Vks5qTY4MgaJpZM4JFrG1
.

@rocky
Copy link
Owner

rocky commented Jul 8, 2016

Ok. Given that pycdc and older uncompyle barf on that bytecode too, there's nothing I can do to fix this.

We'll wait then for some other situation where someone has the source code.

Since bugs get fixed periodically, you can try refreshing from github sources periodically and possibly this will get fixed as happened with some of the other non-actionable bugs you encountered.

@rocky rocky closed this as completed Jul 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants