mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	[3.14] gh-138661: fix data race in PyCode_Addr2Line (GH-138664) (#138834)
				
					
				
			gh-138661: fix data race in `PyCode_Addr2Line` (GH-138664)
(cherry picked from commit ea26f6da39)
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
			
			
This commit is contained in:
		
							parent
							
								
									98d33bf19c
								
							
						
					
					
						commit
						bfcd5f25a5
					
				
					 3 changed files with 15 additions and 3 deletions
				
			
		|  | @ -994,8 +994,8 @@ dump_frame(int fd, _PyInterpreterFrame *frame) | |||
|     } else { | ||||
|         PUTS(fd, "???"); | ||||
|     } | ||||
| 
 | ||||
|     int lineno = PyUnstable_InterpreterFrame_GetLine(frame); | ||||
|     int lasti = PyUnstable_InterpreterFrame_GetLasti(frame); | ||||
|     int lineno = _PyCode_Addr2LineNoTstate(code, lasti); | ||||
|     PUTS(fd, ", line "); | ||||
|     if (lineno >= 0) { | ||||
|         _Py_DumpDecimal(fd, (size_t)lineno); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Miss Islington (bot)
						Miss Islington (bot)