[torqueusers] [torquedev] Torque on Mac OS X 10.6

Glen Beane glen.beane at gmail.com
Wed Dec 2 19:21:19 MST 2009


On Wed, Dec 2, 2009 at 8:26 PM, Chris Samuel <csamuel at vpac.org> wrote:
>
> ----- "Zygmunt Flisak" <zgf at uni.opole.pl> wrote:
>
>> Done.
>
> Thanks! It looks like MacOSX is doing some extra checking
> which is great and that extra debug info helps a lot - for
> instance this is where it is crashing:
>
>> #4  0x0000000100b219c2 in init_network (port=0, readfunc=0x10001a0e0
>>
>> <process_request>) at ../Libnet/net_server.c:354
>
> That line is this strncpy() in the library:
>
>    strncpy(unsocname.sun_path, TSOCK_PATH, 107);  /* sun_path is defined to be 108 bytes */
>
> Sadly the assumption that that it is 108 is true for
> Linux, but not on MacOSX as it's just 104 there. It's
> not uncommon, see this for instance:
>
> http://bugs.xmms2.xmms.se/view.php?id=2263
>
> The fix was this patch:
>
> http://git.xmms.se/?p=xmms2-anthonyg.git;a=commitdiff;h=076b74e75b6efeca4128d224e3e835f3d9ef2d61
>
> I've CC'd this to the Torque developers list so that
> the same fix can be applied. Nice catch!


I'm going to apply this fix to torque right now.


More information about the torqueusers mailing list