VirtualBox

Opened 10 years ago

Closed 8 years ago

#13121 closed defect (obsolete)

Writing via IGuestFile causes crash on Mavericks

Reported by: bryank Owned by:
Component: guest additions Version: VirtualBox 4.3.12
Keywords: Cc:
Guest type: Linux Host type: Mac OS X

Description

On Mavericks, but not on older versions of Mac OS X, or other OS's, this will fail after transferring several blocks:

    file = gs.fileOpen(destPath, "w", "ca", Long.valueOf(0644));     
    byte[] buf = new byte[1024 * 100];
    Long transferred = (long) 0;

    while (len == wrote) {
        len = fis.read(buf, 0, buf.length);
        if (len <= 0) {
            break;
        }
        if (len < buf.length) {
            wrote = file.write(Arrays.copyOfRange(buf, 0, len), (long) 60000);
        } else {
            wrote = file.write(buf, (long) 60000);
        }
        System.err.println("wrote this many bytes so far: " + transferred);
        transferred += len;
    }

The process VirtualBoxVM crashes with SIGABRT:

Crashed Thread:  13  GuestControlSvc

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

The stack is:

Thread 13 Crashed:: GuestControlSvc
0   libsystem_kernel.dylib              0x00007fff8b18c866 __pthread_kill + 10
1   libsystem_pthread.dylib             0x00007fff9198d35c pthread_kill + 92
2   libsystem_c.dylib                   0x00007fff8c618b1a abort + 125
3   libsystem_malloc.dylib              0x00007fff8f55107f free + 411
4   VBoxC.dylib                         0x0000000106904c52 VBoxDriversRegister + 282130
5   VBoxC.dylib                         0x0000000106888355 0x1067dc000 + 705365
6   VBoxC.dylib                         0x0000000106896291 0x1067dc000 + 762513
7   VBoxC.dylib                         0x00000001068a993d 0x1067dc000 + 842045
8   VBoxC.dylib                         0x00000001068a9aac 0x1067dc000 + 842412
9   VBoxGuestControlSvc.dylib           0x00000001073f9e8f 0x1073f7000 + 11919
10  VBoxGuestControlSvc.dylib           0x00000001073fb1d8 VBoxHGCMSvcLoad + 4280
11  VBoxC.dylib                         0x0000000106914912 NSGetModule + 29442
12  VBoxC.dylib                         0x0000000106911be2 NSGetModule + 17874
13  VBoxRT.dylib                        0x0000000100246b8f RTThreadCreateF + 271
14  VBoxRT.dylib                        0x00000001002abce5 RTThreadPoke + 581
15  libsystem_pthread.dylib             0x00007fff9198c899 _pthread_body + 138
16  libsystem_pthread.dylib             0x00007fff9198c72a _pthread_start + 137
17  libsystem_pthread.dylib             0x00007fff91990fc9 thread_start + 13

Attachments (2)

VBox.log (85.3 KB ) - added by bryank 10 years ago.
VM log file
VirtualBoxVM_2014-06-13-102921_Macintosh.crash (63.1 KB ) - added by bryank 10 years ago.
OS X crash report

Download all attachments as: .zip

Change History (4)

by bryank, 10 years ago

Attachment: VBox.log added

VM log file

by bryank, 10 years ago

OS X crash report

comment:1 by bryank, 10 years ago

The buffer size should actually be just 1024, or up to 1024*64. 1024*100 will cause vboxwebsrv to hang. I believe that's the case on all platforms.

comment:2 by aeichner, 8 years ago

Resolution: obsolete
Status: newclosed

Please reopen if still relevant with a recent VirtualBox release.

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use