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

Pointer handling error while unmounting volume #141

Closed
glessard opened this issue Apr 9, 2014 · 3 comments
Closed

Pointer handling error while unmounting volume #141

glessard opened this issue Apr 9, 2014 · 3 comments

Comments

@glessard
Copy link
Contributor

glessard commented Apr 9, 2014

$ sudo zfs unmount stuff/Backups/epsilon3
Running process: '/usr/sbin/diskutil' 'unmount' '/Volumes/Stuff/Backups/epsilon3'
Unmount successful for /Volumes/Stuff/Backups/epsilon3
zfs(3456) malloc: *** error for object 0x7f8629407900: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
$

zfs was built at 691a603 on OSX 12F45.
Here's the crashlog:

Process: zfs [3456]
Path: /usr/local/zfs/sbin/zfs
Identifier: zfs
Version: 0
Code Type: X86-64 (Native)
Parent Process: sudo [3455]
User ID: 0

Date/Time: 2014-04-08 18:08:38.247 -0600
OS Version: Mac OS X 10.8.5 (12F45)
Report Version: 10

Crashed Thread: 0 Dispatch queue: com.apple.main-thread

Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000

Application Specific Information:
*** error for object 0x7f8629407900: pointer being freed was not allocated

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x00007fff8f91ad46 __kill + 10
1 libsystem_c.dylib 0x00007fff89560f83 abort + 177
2 libsystem_c.dylib 0x00007fff89534989 free + 392
3 libzfs.2.dylib 0x00000001076715bd zfs_close + 109 (libzfs_dataset.c:607)
4 libzfs.2.dylib 0x000000010766e803 changelist_free + 83 (libzfs_changelist.c:391)
5 libzfs.2.dylib 0x0000000107685f0a zfs_unmountall + 90 (libzfs_mount.c:750)
6 zfs 0x000000010743e1a2 unshare_unmount + 3458 (zfs_main.c:6346)
7 zfs 0x00000001074381a2 zfs_do_unmount + 34 (zfs_main.c:6367)
8 zfs 0x000000010743332f main + 623 (zfs_main.c:6543)
9 libdyld.dylib 0x00007fff8646e7e1 start + 1

Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x0000000000000000 rbx: 0x00007fff587ce110 rcx: 0x00007fff587ce0f8 rdx: 0x0000000000000000
rdi: 0x0000000000000d80 rsi: 0x0000000000000006 rbp: 0x00007fff587ce120 rsp: 0x00007fff587ce0f8
r8: 0x0000000000000000 r9: 0x0000000000000000 r10: 0x00007fff8f91c342 r11: 0x0000000000000202
r12: 0x0000000107453000 r13: 0x0000000107455000 r14: 0x00007f8629407900 r15: 0x0000000000000001
rip: 0x00007fff8f91ad46 rfl: 0x0000000000000202 cr2: 0x00007fff73e2dff0
Logical CPU: 0

Binary Images:
0x107431000 - 0x107448fff +zfs (0) /usr/local/sbin/zfs
0x107456000 - 0x10746bfff +libnvpair.1.dylib (0) /usr/local/zfs/lib/libnvpair.1.dylib
0x10747a000 - 0x10749efff +libuutil.1.dylib (0) <59854F0F-C489-3E38-A22C-B0D32DFBA65E> /usr/local/zfs/lib/libuutil.1.dylib
0x1074af000 - 0x1075fcff7 +libzpool.1.dylib (0) <676414BC-D55D-33EC-BBED-C63E93BFB13F> /usr/local/zfs/lib/libzpool.1.dylib
0x10766d000 - 0x1076b6fff +libzfs.2.dylib (0) <3097CCCF-A590-356D-B030-0C9E2051C7CE> /usr/local/zfs/lib/libzfs.2.dylib
0x1076ce000 - 0x1076cfff7 +libzfs_core.1.dylib (0) /usr/local/zfs/lib/libzfs_core.1.dylib
0x7fff67031000 - 0x7fff6706594f dyld (210.2.3) <8958FE97-5830-3928-BC38-23136E7D3783> /usr/lib/dyld
0x7fff82fef000 - 0x7fff82ff1ff7 libunc.dylib (25) <92805328-CD36-34FF-9436-571AB0485072> /usr/lib/system/libunc.dylib
0x7fff83a9f000 - 0x7fff83bb792f libobjc.A.dylib (532.2) <90D31928-F48D-3E37-874F-220A51FD9E37> /usr/lib/libobjc.A.dylib
0x7fff85228000 - 0x7fff85256ff7 libsystem_m.dylib (3022.6) /usr/lib/system/libsystem_m.dylib
0x7fff85338000 - 0x7fff8533eff7 libunwind.dylib (35.1) <21703D36-2DAB-3D8B-8442-EAAB23C060D3> /usr/lib/system/libunwind.dylib
0x7fff855d9000 - 0x7fff855e1ff7 libsystem_dnssd.dylib (379.38.1) /usr/lib/system/libsystem_dnssd.dylib
0x7fff85889000 - 0x7fff85890fff libcopyfile.dylib (89) <876573D0-E907-3566-A108-577EAD1B6182> /usr/lib/system/libcopyfile.dylib
0x7fff858db000 - 0x7fff858dcfff libDiagnosticMessagesClient.dylib (8) <8548E0DC-0D2F-30B6-B045-FE8A038E76D8> /usr/lib/libDiagnosticMessagesClient.dylib
0x7fff8646c000 - 0x7fff8646fff7 libdyld.dylib (210.2.3) /usr/lib/system/libdyld.dylib
0x7fff88ec5000 - 0x7fff88f11ff7 libauto.dylib (185.4) /usr/lib/libauto.dylib
0x7fff88f12000 - 0x7fff88f14fff libquarantine.dylib (52.1) <143B726E-DF47-37A8-90AA-F059CFD1A2E4> /usr/lib/system/libquarantine.dylib
0x7fff8945e000 - 0x7fff8945efff libkeymgr.dylib (25) /usr/lib/system/libkeymgr.dylib
0x7fff89507000 - 0x7fff895d3ff7 libsystem_c.dylib (825.40.1) <543B05AE-CFA5-3EFE-8E58-77225411BA6B> /usr/lib/system/libsystem_c.dylib
0x7fff895ff000 - 0x7fff8960afff libsystem_notify.dylib (98.5) /usr/lib/system/libsystem_notify.dylib
0x7fff8960b000 - 0x7fff89613fff liblaunch.dylib (442.26.2) <2F71CAF8-6524-329E-AC56-C506658B4C0C> /usr/lib/system/liblaunch.dylib
0x7fff8984a000 - 0x7fff8984bff7 libSystem.B.dylib (169.3) /usr/lib/libSystem.B.dylib
0x7fff89c20000 - 0x7fff89c2eff7 libsystem_network.dylib (77.10) <0D99F24E-56FE-380F-B81B-4A4C630EE587> /usr/lib/system/libsystem_network.dylib
0x7fff8b15b000 - 0x7fff8b15cff7 libremovefile.dylib (23.2) <6763BC8E-18B8-3AD9-8FFA-B43713A7264F> /usr/lib/system/libremovefile.dylib
0x7fff8b229000 - 0x7fff8b24bff7 libxpc.dylib (140.43) <70BC645B-6952-3264-930C-C835010CCEF9> /usr/lib/system/libxpc.dylib
0x7fff8b2a8000 - 0x7fff8b2a9fff libsystem_blocks.dylib (59) /usr/lib/system/libsystem_blocks.dylib
0x7fff8b67b000 - 0x7fff8b689fff libcommonCrypto.dylib (60027) /usr/lib/system/libcommonCrypto.dylib
0x7fff8c9ff000 - 0x7fff8ca00ff7 libsystem_sandbox.dylib (220.3) /usr/lib/system/libsystem_sandbox.dylib
0x7fff8d6b3000 - 0x7fff8d702ff7 libcorecrypto.dylib (106.2) /usr/lib/system/libcorecrypto.dylib
0x7fff8e4ea000 - 0x7fff8e4fcff7 libz.1.dylib (43) <2A1551E8-A272-3DE5-B692-955974FE1416> /usr/lib/libz.1.dylib
0x7fff8e4fd000 - 0x7fff8e4feff7 libdnsinfo.dylib (453.19) <14202FFB-C3CA-3FCC-94B0-14611BF8692D> /usr/lib/system/libdnsinfo.dylib
0x7fff8e630000 - 0x7fff8e655ff7 libc++abi.dylib (26) /usr/lib/libc++abi.dylib
0x7fff8e880000 - 0x7fff8e895ff7 libdispatch.dylib (228.23) /usr/lib/system/libdispatch.dylib
0x7fff8eb74000 - 0x7fff8eb7afff libmacho.dylib (829) /usr/lib/system/libmacho.dylib
0x7fff8eb86000 - 0x7fff8eb8bfff libcache.dylib (57) <65187C6E-3FBF-3EB8-A1AA-389445E2984D> /usr/lib/system/libcache.dylib
0x7fff8f147000 - 0x7fff8f17dfff libsystem_info.dylib (406.17) <4FFCA242-7F04-365F-87A6-D4EFB89503C1> /usr/lib/system/libsystem_info.dylib
0x7fff8f909000 - 0x7fff8f924ff7 libsystem_kernel.dylib (2050.48.12) <4B7993C3-F62D-3AC1-AF92-414A0D6EED5E> /usr/lib/system/libsystem_kernel.dylib
0x7fff8f95e000 - 0x7fff8f963fff libcompiler_rt.dylib (30) <08F8731D-5961-39F1-AD00-4590321D24A9> /usr/lib/system/libcompiler_rt.dylib
0x7fff8f964000 - 0x7fff8f9ccff7 libc++.1.dylib (65.1) <20E31B90-19B9-3C2A-A9EB-474E08F9FE05> /usr/lib/libc++.1.dylib

External Modification Summary:
Calls made by other processes targeting this process:
task_for_pid: 0
thread_create: 0
thread_set_state: 0
Calls made by this process:
task_for_pid: 0
thread_create: 0
thread_set_state: 0
Calls made by all processes on this machine:
task_for_pid: 69141
thread_create: 1
thread_set_state: 0

VM Region Summary:
ReadOnly portion of Libraries: Total=59.2M resident=20.0M(34%) swapped_out_or_unallocated=39.2M(66%)
Writable regions: Total=17.5M written=388K(2%) resident=452K(3%) swapped_out=0K(0%) unallocated=17.1M(97%)

REGION TYPE VIRTUAL
=========== =======
MALLOC 9396K
MALLOC guard page 16K
STACK GUARD 56.0M
Stack 8192K
VM_ALLOCATE 4K
__DATA 756K
__LINKEDIT 52.7M
__TEXT 6620K
shared memory 12K
=========== =======
TOTAL 133.1M

@lundman
Copy link
Contributor

lundman commented Apr 9, 2014

This could be related to #123 and its fix. Are you running git's master, or from the installer?

@glessard
Copy link
Contributor Author

glessard commented Apr 9, 2014

This was a source build off the master branch.
I'll rebuild at the current rev and see whether it ever happens again. Thanks!

@glessard
Copy link
Contributor Author

glessard commented Apr 9, 2014

Probably same as issue #123; will reopen if it reoccurs.

@glessard glessard closed this as completed Apr 9, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants