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

Parse error at or near `JUMP_BACK' instruction #403

Open
dmmhk opened this issue Jun 16, 2022 · 3 comments
Open

Parse error at or near `JUMP_BACK' instruction #403

dmmhk opened this issue Jun 16, 2022 · 3 comments
Labels
parse Python 3.8 volunteer wanted Volunteer wanted to fix if a bug or to implement if a new feature. Works on decompyle3

Comments

@dmmhk
Copy link

dmmhk commented Jun 16, 2022

python version:3.8.6
file:baidu_click.zip
source: without

error info:
whilestmt38 ::= \e__come_froms testexpr . returns POP_BLOCK
whilestmt38 ::= \e__come_froms testexpr \e_l_stmts_opt . COME_FROM JUMP_BACK POP
_BLOCK
whilestmt38 ::= \e__come_froms testexpr \e_l_stmts_opt . JUMP_BACK POP_BLOCK
whilestmt38 ::= \e__come_froms testexpr \e_l_stmts_opt . JUMP_BACK come_froms
whilestmt38 ::= \e__come_froms testexpr l_stmts . JUMP_BACK
whilestmt38 ::= \e__come_froms testexpr l_stmts . come_froms
whilestmt38 ::= \e__come_froms testexpr l_stmts JUMP_BACK .
whilestmt38 ::= \e__come_froms testexpr l_stmts_opt . COME_FROM JUMP_BACK POP_BL
OCK
whilestmt38 ::= \e__come_froms testexpr l_stmts_opt . JUMP_BACK POP_BLOCK
whilestmt38 ::= \e__come_froms testexpr l_stmts_opt . JUMP_BACK come_froms
whilestmt38 ::= \e__come_froms testexpr l_stmts_opt JUMP_BACK . POP_BLOCK
whilestmt38 ::= \e__come_froms testexpr l_stmts_opt JUMP_BACK . come_froms
whilestmt38 ::= \e__come_froms testexpr l_stmts_opt JUMP_BACK come_froms .
whilestmt38 ::= _come_froms . testexpr \e_l_stmts_opt COME_FROM JUMP_BACK POP_BL
OCK
whilestmt38 ::= _come_froms . testexpr \e_l_stmts_opt JUMP_BACK POP_BLOCK
whilestmt38 ::= _come_froms . testexpr \e_l_stmts_opt JUMP_BACK come_froms
whilestmt38 ::= _come_froms . testexpr l_stmts JUMP_BACK
whilestmt38 ::= _come_froms . testexpr l_stmts come_froms
whilestmt38 ::= _come_froms . testexpr l_stmts_opt COME_FROM JUMP_BACK POP_BLOCK

whilestmt38 ::= _come_froms . testexpr l_stmts_opt JUMP_BACK POP_BLOCK
whilestmt38 ::= _come_froms . testexpr l_stmts_opt JUMP_BACK come_froms
whilestmt38 ::= _come_froms . testexpr returns POP_BLOCK
yield ::= expr . YIELD_VALUE
yield_from ::= expr . GET_YIELD_FROM_ITER LOAD_CONST YIELD_FROM
Instruction context:
->
L. 319 336_338 JUMP_BACK 336 'to 336'

file baidu_click.pyc

--- This code section failed: ---

L. 1 0 LOAD_CONST 0
2 LOAD_CONST ('webdriver',)
4 IMPORT_NAME selenium
6 IMPORT_FROM webdriver
8 STORE_NAME webdriver
10 POP_TOP

L. 2 12 LOAD_CONST 0
14 LOAD_CONST None
16 IMPORT_NAME time
18 STORE_NAME time

L. 3 20 LOAD_CONST 0
22 LOAD_CONST None
24 IMPORT_NAME re
26 STORE_NAME re

L. 4 28 LOAD_CONST 0
30 LOAD_CONST None
32 IMPORT_NAME html
34 STORE_NAME un_html

L. 5 36 LOAD_CONST 0
38 LOAD_CONST None
40 IMPORT_NAME random
42 STORE_NAME random

L. 6 44 LOAD_CONST 0
46 LOAD_CONST None
48 IMPORT_NAME requests
50 STORE_NAME requests

L. 7 52 LOAD_CONST 0
54 LOAD_CONST None
56 IMPORT_NAME os
58 STORE_NAME os

L. 8 60 LOAD_CONST 0
62 LOAD_CONST None
64 IMPORT_NAME configparser
66 STORE_NAME configparser

L. 10 68 LOAD_CODE <code_object read_ini>
70 LOAD_STR 'read_ini'
72 MAKE_FUNCTION_0 'Neither defaults, keyword-only args
, annotations, nor closures'
74 STORE_NAME read_ini

L. 16 76 LOAD_CODE <code_object strat>
78 LOAD_STR 'strat'
80 MAKE_FUNCTION_0 'Neither defaults, keyword-only args
, annotations, nor closures'
82 STORE_NAME strat

L. 19 84 LOAD_CODE <code_object strat_baidu>
86 LOAD_STR 'strat_baidu'
88 MAKE_FUNCTION_0 'Neither defaults, keyword-only args
, annotations, nor closures'
90 STORE_NAME strat_baidu

L. 67 92 LOAD_CODE <code_object input_search>
94 LOAD_STR 'input_search'
96 MAKE_FUNCTION_0 'Neither defaults, keyword-only args
, annotations, nor closures'
98 STORE_NAME input_search

L. 99 100 LOAD_CODE <code_object Get_html>
102 LOAD_STR 'Get_html'
104 MAKE_FUNCTION_0 'Neither defaults, keyword-only args
, annotations, nor closures'
106 STORE_NAME Get_html

L. 120 108 LOAD_CODE <code_object next_page>
110 LOAD_STR 'next_page'
112 MAKE_FUNCTION_0 'Neither defaults, keyword-only args
, annotations, nor closures'
114 STORE_NAME next_page

L. 133 116 LOAD_CODE <code_object link_list>
118 LOAD_STR 'link_list'
120 MAKE_FUNCTION_0 'Neither defaults, keyword-only args
, annotations, nor closures'
122 STORE_NAME link_list

L. 138 124 LOAD_CODE <code_object zi_data>
126 LOAD_STR 'zi_data'
128 MAKE_FUNCTION_0 'Neither defaults, keyword-only args
, annotations, nor closures'
130 STORE_NAME zi_data

L. 145 132 LOAD_CODE <code_object click_link>
134 LOAD_STR 'click_link'
136 MAKE_FUNCTION_0 'Neither defaults, keyword-only args
, annotations, nor closures'
138 STORE_NAME click_link

L. 160 140 LOAD_CODE <code_object click_inSite>
142 LOAD_STR 'click_inSite'
144 MAKE_FUNCTION_0 'Neither defaults, keyword-only args
, annotations, nor closures'
146 STORE_NAME click_inSite

L. 201 148 LOAD_CODE <code_object get_porxy>
150 LOAD_STR 'get_porxy'
152 MAKE_FUNCTION_0 'Neither defaults, keyword-only args
, annotations, nor closures'
154 STORE_NAME get_porxy

L. 208 156 LOAD_CODE <code_object web_server>
158 LOAD_STR 'web_server'
160 MAKE_FUNCTION_0 'Neither defaults, keyword-only args
, annotations, nor closures'
162 STORE_NAME web_server

L. 270 164 LOAD_CODE <code_object api>
166 LOAD_STR 'api'
168 MAKE_FUNCTION_0 'Neither defaults, keyword-only args
, annotations, nor closures'
170 STORE_NAME api

L. 274 172 LOAD_CODE <code_object save_log>
174 LOAD_STR 'save_log'
176 MAKE_FUNCTION_0 'Neither defaults, keyword-only args
, annotations, nor closures'
178 STORE_NAME save_log

L. 279 180 LOAD_CODE <code_object connect_ADSL>
182 LOAD_STR 'connect_ADSL'
184 MAKE_FUNCTION_0 'Neither defaults, keyword-only args
, annotations, nor closures'
186 STORE_NAME connect_ADSL

L. 284 188 LOAD_CODE <code_object disconnect_ADSL>
190 LOAD_STR 'disconnect_ADSL'
192 MAKE_FUNCTION_0 'Neither defaults, keyword-only args
, annotations, nor closures'
194 STORE_NAME disconnect_ADSL

L. 289 196 LOAD_CODE <code_object reconnect_ADSL>
198 LOAD_STR 'reconnect_ADSL'
200 MAKE_FUNCTION_0 'Neither defaults, keyword-only args
, annotations, nor closures'
202 STORE_NAME reconnect_ADSL

L. 293 204 LOAD_NAME name
206 LOAD_STR 'main'
208 COMPARE_OP ==
210_212 POP_JUMP_IF_FALSE 340 'to 340'

L. 295 214 LOAD_NAME read_ini
216 LOAD_STR 'baseConfig'
218 LOAD_STR 'adsl_power'
220 CALL_FUNCTION_2 2 ''
222 STORE_NAME adsl_power

L. 296 224 LOAD_NAME read_ini
226 LOAD_STR 'baseConfig'
228 LOAD_STR 'adsl_name'
230 CALL_FUNCTION_2 2 ''
232 STORE_NAME adsl_name

L. 297 234 LOAD_NAME read_ini
236 LOAD_STR 'baseConfig'
238 LOAD_STR 'user_name'
240 CALL_FUNCTION_2 2 ''
242 STORE_NAME user_name

L. 298 244 LOAD_NAME read_ini
246 LOAD_STR 'baseConfig'
248 LOAD_STR 'pass_word'
250 CALL_FUNCTION_2 2 ''
252 STORE_NAME pass_word

L. 299 254 LOAD_NAME int
256 LOAD_NAME read_ini
258 LOAD_STR 'baseConfig'
260 LOAD_STR 'page'
262 CALL_FUNCTION_2 2 ''
264 CALL_FUNCTION_1 1 ''
266 STORE_NAME click_num

L. 300 268 LOAD_NAME int
270 LOAD_NAME read_ini
272 LOAD_STR 'baseConfig'
274 LOAD_STR 'page_least'
276 CALL_FUNCTION_2 2 ''
278 CALL_FUNCTION_1 1 ''
280 STORE_NAME link_min

L. 301 282 LOAD_NAME int
284 LOAD_NAME read_ini
286 LOAD_STR 'baseConfig'
288 LOAD_STR 'page_max'
290 CALL_FUNCTION_2 2 ''
292 CALL_FUNCTION_1 1 ''
294 STORE_NAME link_max

L. 302 296 LOAD_NAME read_ini
298 LOAD_STR 'baseConfig'
300 LOAD_STR 'porxy_api'
302 CALL_FUNCTION_2 2 ''
304 STORE_NAME porxy_api

L. 304 306 LOAD_CONST 0
308 STORE_GLOBAL click_off

L. 306 310 LOAD_CONST 0
312 STORE_GLOBAL run_lock

L. 308 314 LOAD_CONST 0
316 STORE_GLOBAL next_lock

L. 310 318 LOAD_CONST 0
320 STORE_GLOBAL next_continue

L. 312 322 LOAD_STR ''
324 STORE_GLOBAL index_handle

L. 314 326 LOAD_CONST 0
328 STORE_GLOBAL ids

L. 316 330 LOAD_NAME strat
332 CALL_FUNCTION_0 0 ''
334 POP_TOP

L. 319 336_338 JUMP_BACK 336 'to 336'
340_0 COME_FROM 210 '210'

Parse error at or near `JUMP_BACK' instruction at offset 336_338

baidu_click.pyc --

decompile failed

F:\python_exe_pojie\baidu_click.exe_extracted>

@rocky rocky added the invalid bytecode Bytecode is not the result of Python compilation. It may have been altered in some way label Jun 16, 2022
@rocky rocky closed this as completed Jun 16, 2022
@rocky rocky removed the invalid bytecode Bytecode is not the result of Python compilation. It may have been altered in some way label Jun 16, 2022
@rocky rocky reopened this Jun 16, 2022
@dmmhk
Copy link
Author

dmmhk commented Jun 20, 2022

still prompt error `JUMP_BACK'

error info:
whilestmt38 ::= _come_froms . testexpr \e_l_stmts_opt JUMP_BACK come_froms
whilestmt38 ::= _come_froms . testexpr l_stmts JUMP_BACK
whilestmt38 ::= _come_froms . testexpr l_stmts come_froms
whilestmt38 ::= _come_froms . testexpr l_stmts_opt COME_FROM JUMP_BACK POP_BLOCK

whilestmt38 ::= _come_froms . testexpr l_stmts_opt JUMP_BACK POP_BLOCK
whilestmt38 ::= _come_froms . testexpr l_stmts_opt JUMP_BACK come_froms
whilestmt38 ::= _come_froms . testexpr returns POP_BLOCK
yield ::= expr . YIELD_VALUE
yield_from ::= expr . GET_YIELD_FROM_ITER LOAD_CONST YIELD_FROM
Instruction context:
->
L. 319 336_338 JUMP_BACK 336 'to 336'

file baidu_click.pyc

--- This code section failed: ---

L. 1 0 LOAD_CONST 0
2 LOAD_CONST ('webdriver',)
4 IMPORT_NAME selenium
6 IMPORT_FROM webdriver
8 STORE_NAME webdriver
10 POP_TOP

L. 2 12 LOAD_CONST 0
14 LOAD_CONST None
16 IMPORT_NAME time
18 STORE_NAME time

L. 3 20 LOAD_CONST 0
22 LOAD_CONST None
24 IMPORT_NAME re
26 STORE_NAME re

L. 4 28 LOAD_CONST 0
30 LOAD_CONST None
32 IMPORT_NAME html
34 STORE_NAME un_html

L. 5 36 LOAD_CONST 0
38 LOAD_CONST None
40 IMPORT_NAME random
42 STORE_NAME random

L. 6 44 LOAD_CONST 0
46 LOAD_CONST None
48 IMPORT_NAME requests
50 STORE_NAME requests

L. 7 52 LOAD_CONST 0
54 LOAD_CONST None
56 IMPORT_NAME os
58 STORE_NAME os

L. 8 60 LOAD_CONST 0
62 LOAD_CONST None
64 IMPORT_NAME configparser
66 STORE_NAME configparser

L. 10 68 LOAD_CODE <code_object read_ini>
70 LOAD_STR 'read_ini'
72 MAKE_FUNCTION_0 'Neither defaults, keyword-only args
, annotations, nor closures'
74 STORE_NAME read_ini

L. 16 76 LOAD_CODE <code_object strat>
78 LOAD_STR 'strat'
80 MAKE_FUNCTION_0 'Neither defaults, keyword-only args
, annotations, nor closures'
82 STORE_NAME strat

L. 19 84 LOAD_CODE <code_object strat_baidu>
86 LOAD_STR 'strat_baidu'
88 MAKE_FUNCTION_0 'Neither defaults, keyword-only args
, annotations, nor closures'
90 STORE_NAME strat_baidu

L. 67 92 LOAD_CODE <code_object input_search>
94 LOAD_STR 'input_search'
96 MAKE_FUNCTION_0 'Neither defaults, keyword-only args
, annotations, nor closures'
98 STORE_NAME input_search

L. 99 100 LOAD_CODE <code_object Get_html>
102 LOAD_STR 'Get_html'
104 MAKE_FUNCTION_0 'Neither defaults, keyword-only args
, annotations, nor closures'
106 STORE_NAME Get_html

L. 120 108 LOAD_CODE <code_object next_page>
110 LOAD_STR 'next_page'
112 MAKE_FUNCTION_0 'Neither defaults, keyword-only args
, annotations, nor closures'
114 STORE_NAME next_page

L. 133 116 LOAD_CODE <code_object link_list>
118 LOAD_STR 'link_list'
120 MAKE_FUNCTION_0 'Neither defaults, keyword-only args
, annotations, nor closures'
122 STORE_NAME link_list

L. 138 124 LOAD_CODE <code_object zi_data>
126 LOAD_STR 'zi_data'
128 MAKE_FUNCTION_0 'Neither defaults, keyword-only args
, annotations, nor closures'
130 STORE_NAME zi_data

L. 145 132 LOAD_CODE <code_object click_link>
134 LOAD_STR 'click_link'
136 MAKE_FUNCTION_0 'Neither defaults, keyword-only args
, annotations, nor closures'
138 STORE_NAME click_link

L. 160 140 LOAD_CODE <code_object click_inSite>
142 LOAD_STR 'click_inSite'
144 MAKE_FUNCTION_0 'Neither defaults, keyword-only args
, annotations, nor closures'
146 STORE_NAME click_inSite

L. 201 148 LOAD_CODE <code_object get_porxy>
150 LOAD_STR 'get_porxy'
152 MAKE_FUNCTION_0 'Neither defaults, keyword-only args
, annotations, nor closures'
154 STORE_NAME get_porxy

L. 208 156 LOAD_CODE <code_object web_server>
158 LOAD_STR 'web_server'
160 MAKE_FUNCTION_0 'Neither defaults, keyword-only args
, annotations, nor closures'
162 STORE_NAME web_server

L. 270 164 LOAD_CODE <code_object api>
166 LOAD_STR 'api'
168 MAKE_FUNCTION_0 'Neither defaults, keyword-only args
, annotations, nor closures'
170 STORE_NAME api

L. 274 172 LOAD_CODE <code_object save_log>
174 LOAD_STR 'save_log'
176 MAKE_FUNCTION_0 'Neither defaults, keyword-only args
, annotations, nor closures'
178 STORE_NAME save_log

L. 279 180 LOAD_CODE <code_object connect_ADSL>
182 LOAD_STR 'connect_ADSL'
184 MAKE_FUNCTION_0 'Neither defaults, keyword-only args
, annotations, nor closures'
186 STORE_NAME connect_ADSL

L. 284 188 LOAD_CODE <code_object disconnect_ADSL>
190 LOAD_STR 'disconnect_ADSL'
192 MAKE_FUNCTION_0 'Neither defaults, keyword-only args
, annotations, nor closures'
194 STORE_NAME disconnect_ADSL

L. 289 196 LOAD_CODE <code_object reconnect_ADSL>
198 LOAD_STR 'reconnect_ADSL'
200 MAKE_FUNCTION_0 'Neither defaults, keyword-only args
, annotations, nor closures'
202 STORE_NAME reconnect_ADSL

L. 293 204 LOAD_NAME name
206 LOAD_STR 'main'
208 COMPARE_OP ==
210_212 POP_JUMP_IF_FALSE 340 'to 340'

L. 295 214 LOAD_NAME read_ini
216 LOAD_STR 'baseConfig'
218 LOAD_STR 'adsl_power'
220 CALL_FUNCTION_2 2 ''
222 STORE_NAME adsl_power

L. 296 224 LOAD_NAME read_ini
226 LOAD_STR 'baseConfig'
228 LOAD_STR 'adsl_name'
230 CALL_FUNCTION_2 2 ''
232 STORE_NAME adsl_name

L. 297 234 LOAD_NAME read_ini
236 LOAD_STR 'baseConfig'
238 LOAD_STR 'user_name'
240 CALL_FUNCTION_2 2 ''
242 STORE_NAME user_name

L. 298 244 LOAD_NAME read_ini
246 LOAD_STR 'baseConfig'
248 LOAD_STR 'pass_word'
250 CALL_FUNCTION_2 2 ''
252 STORE_NAME pass_word

L. 299 254 LOAD_NAME int
256 LOAD_NAME read_ini
258 LOAD_STR 'baseConfig'
260 LOAD_STR 'page'
262 CALL_FUNCTION_2 2 ''
264 CALL_FUNCTION_1 1 ''
266 STORE_NAME click_num

L. 300 268 LOAD_NAME int
270 LOAD_NAME read_ini
272 LOAD_STR 'baseConfig'
274 LOAD_STR 'page_least'
276 CALL_FUNCTION_2 2 ''
278 CALL_FUNCTION_1 1 ''
280 STORE_NAME link_min

L. 301 282 LOAD_NAME int
284 LOAD_NAME read_ini
286 LOAD_STR 'baseConfig'
288 LOAD_STR 'page_max'
290 CALL_FUNCTION_2 2 ''
292 CALL_FUNCTION_1 1 ''
294 STORE_NAME link_max

L. 302 296 LOAD_NAME read_ini
298 LOAD_STR 'baseConfig'
300 LOAD_STR 'porxy_api'
302 CALL_FUNCTION_2 2 ''
304 STORE_NAME porxy_api

L. 304 306 LOAD_CONST 0
308 STORE_GLOBAL click_off

L. 306 310 LOAD_CONST 0
312 STORE_GLOBAL run_lock

L. 308 314 LOAD_CONST 0
316 STORE_GLOBAL next_lock

L. 310 318 LOAD_CONST 0
320 STORE_GLOBAL next_continue

L. 312 322 LOAD_STR ''
324 STORE_GLOBAL index_handle

L. 314 326 LOAD_CONST 0
328 STORE_GLOBAL ids

L. 316 330 LOAD_NAME strat
332 CALL_FUNCTION_0 0 ''
334 POP_TOP

L. 319 336_338 JUMP_BACK 336 'to 336'
340_0 COME_FROM 210 '210'

Parse error at or near `JUMP_BACK' instruction at offset 336_338

baidu_click.pyc --

decompile failed

@rocky
Copy link
Owner

rocky commented Jun 20, 2022

Just to set expectations, unless others get involved -- and historically this is unlikely -- stuff like this eventually gets fixed but it may take a very long while. Personally, I have no intrinsic interest here. There are tons of other things and even decompilation bugs that are more engaging that I could fix should I want to work on decompilation.

@rocky
Copy link
Owner

rocky commented Jul 4, 2022

Fixed in decompyle3.

@rocky rocky closed this as completed Jul 4, 2022
@rocky rocky reopened this Jul 4, 2022
@rocky rocky added volunteer wanted Volunteer wanted to fix if a bug or to implement if a new feature. Works on decompyle3 labels Jul 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
parse Python 3.8 volunteer wanted Volunteer wanted to fix if a bug or to implement if a new feature. Works on decompyle3
Projects
None yet
Development

No branches or pull requests

2 participants