Posts: 1,450
	Threads: 53
	Joined: Feb 2011
	
Thanks: 15
	Given 130 thank(s) in 99 post(s)
	 
	
	
		If you can't figure it out, upload the segfaulting chunk and I'll take a look
	
	
	
	
	
 
 
	
	
	
		
	Posts: 160
	Threads: 31
	Joined: Oct 2011
	
Thanks: 0
	Given 0 thank(s) in 0 post(s)
	 
	
		
		
		10-31-2011, 06:07 AM 
(This post was last modified: 10-31-2011, 06:08 AM by rs2k.)
		
	 
	
		I'm pretty sure the segfault happens when it tries to parse a tag and doesn't do it right. The seg fault happens when it tries to parse what it thinks is Tag: 63. (This was the same tag is segfaulted on when I first added the bytearray tag incorrectly)
The problem only seems to happen when the program loops through multiple chunks.
(Starts with chunk 0)
Chunk 3 and 4 both show unknown tag, and chunk 32 throws a segfault.
When I run those chunks separately it parses them without trouble. If I skip those chunks it will process the other chunks around them just fine.
I think there might be a problem with data carrying over between chunks in the parser (My guess is the compound tag since that's what the entity tag is). Am I supposed to clear the data with a function I'm not aware of? Is this just a bug with the parser?
	
	
	
	
	
 
 
	
	
	
		
	Posts: 1,450
	Threads: 53
	Joined: Feb 2011
	
Thanks: 15
	Given 130 thank(s) in 99 post(s)
	 
	
		
		
		10-31-2011, 09:30 AM 
(This post was last modified: 10-31-2011, 09:31 AM by FakeTruth.)
		
	 
	
		Remember that the error in parsing (which needs fixing) happens anywhere before (or during) the segfault, so it can happen a couple of tags before the crash