schwer-q / xar

Automatically exported from code.google.com/p/xar
0 stars 0 forks source link

Crash on xar_close #84

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

When invoking xar_close in one case, it results in a crash in libz:

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000104a00000
Crashed Thread:  0  Dispatch queue: com.apple.main-thread

Thread 0 Crashed:  Dispatch queue: com.apple.main-thread
0   libz.1.dylib                    0x00007fff80003e3a adler32 + 274
1   libz.1.dylib                    0x00007fff800053ab deflateInit_ + 366
2   libz.1.dylib                    0x00007fff80005682 deflateSetDictionary + 532
3   libz.1.dylib                    0x00007fff80006915 deflate + 2205
4   libxar.1.dylib                  0x00007fff83e9dd82 xar_close + 1146

Thread 0 crashed with X86 Thread State (64-bit):
  rax: 0x00000000023c9fc9  rbx: 0x00000000000076b2  rcx: 0x0000000104a00000  rdx: 0x00000000000076b2
  rdi: 0x00000000000076b2  rsi: 0x00000000000076b2  rbp: 0x00007fff5fbff300  rsp: 0x00007fff5fbff2d8
   r8: 0x00000000000076b2   r9: 0x00000000000076b2  r10: 0x00000000000076b2  r11: 0x00000000000076b2
  r12: 0x00000000000076b2  r13: 0x00000000000076b2  r14: 0x00000000000076b2  r15: 0x00000000000076b2
  rip: 0x00007fff80003e3a  rfl: 0x0000000000010206  cr2: 0x0000000104a00000

I still need to investigate this further as this is the first time I see this 
in 3 years.

What is the expected output?

A xar file

 What do you see instead?

A crash

What version of the product are you using? On what operating system?

1.5.2 Mac OS X 10.6.8

Original issue reported on code.google.com by dev.iceb...@gmail.com on 22 Jun 2012 at 2:20

GoogleCodeExporter commented 9 years ago
As far as I can tell, this is related to not having enough free space on the 
disk.

IMHO, xar_close should not crash but returns an error.

Original comment by dev.iceb...@gmail.com on 22 Jun 2012 at 2:28