OK, I’ve got the time to set up a testing environment on 10.6 today, and I’ve come up with some new data.
Vine Server shoots itself with a “Bus Error”:
2009-11-17 14:51:20.111 vncd[909:4207] Pixel format for client 127.0.0.1:
2009-11-17 14:51:20.112 vncd[909:4207] 32 bpp, depth 24, little endian
2009-11-17 14:51:20.112 vncd[909:4207] true colour: max r 255 g 255 b 255, shift r 16 g 8 b 0
2009-11-17 14:51:20.113 vncd[909:4207] Client Connected - Registering Screen Update Notification
vncd(909,0xb032b000) malloc: *** error for object 0x70659f: pointer being reallocated was not allocated
*** set a breakpoint in malloc_error_break to debug
2009-11-17 14:51:22.787 vncd[909:4207] Client 127.0.0.1 disconnected
2009-11-17 14:51:22.789 vncd[909:4207] Statistics:
2009-11-17 14:51:22.790 vncd[909:4207] framebuffer updates 6, rectangles 127, bytes 113554
2009-11-17 14:51:22.791 vncd[909:4207] LastRect markers 5, bytes 60
2009-11-17 14:51:22.791 vncd[909:4207] Tight rectangles 120, bytes 111094
2009-11-17 14:51:22.792 vncd[909:4207] Cursor Shape Updates rectangles 1, bytes 2388
2009-11-17 14:51:22.793 vncd[909:4207] Cursor Position Updates rectangles 1, bytes 12
2009-11-17 14:51:22.793 vncd[909:4207] raw bytes equivalent 6569496, compression ratio 57.884082
2009-11-17 14:51:22.797 vncd[909:903] UnRegistering Screen Update Notification - waiting for clients
2009-11-17 14:51:27.020 vncd[909:420b] rfbProcessClientProtocolVersion: client gone
2009-11-17 14:51:27.021 vncd[909:420b] Client 127.0.0.1 disconnected
2009-11-17 14:51:27.022 vncd[909:420b] Statistics:
2009-11-17 14:51:27.023 vncd[909:420b] framebuffer updates 0, rectangles 0, bytes 0
vncd(909,0xb0103000) malloc: *** error for object 0xc1c1c1c1: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
2009-11-17 14:51:27.040 vncd[909:903] Waiting for clients
2009-11-17 14:51:29.742 vncd[909:400b] Protocol version 3.3
2009-11-17 14:51:29.743 vncd[909:400b] Ignoring minor version mismatch
2009-11-17 14:51:30.012 vncd[909:400b] ENCODING: Tight for client 127.0.0.1
2009-11-17 14:51:30.013 vncd[909:400b] Enabling LastRect protocol extension for client 127.0.0.1
2009-11-17 14:51:30.014 vncd[909:400b] Using compression level 9 for client 127.0.0.1
2009-11-17 14:51:30.015 vncd[909:400b] Using jpeg image quality level 5 for client 127.0.0.1
2009-11-17 14:51:30.016 vncd[909:400b] Enabling Cursor Shape protocol extension for client 127.0.0.1
2009-11-17 14:51:30.016 vncd[909:400b] Enabling Cursor Position protocol extension for client 127.0.0.1
Bus error
Command line used:
./vncd -rfbport 25901 -alwaysshared -rfbauth vncpasswd -dontdisconnect -disableRemoteEvents -localhost -maxauthattempts 0 -useOpenGL
That looks like some memory housekeeping is going awry, doesn’t it?
I’ll keep experimenting with Vine’s invocation, maybe there’s some command line argument that triggers that specific problem/bug.
I don’t really know how to debug applications on OS X, but there’s a chance I’ll have a look into DTrace somewhat later this week.