Debugging an app bundle on MacOSX
Dirk Hohndel
dirk at hohndel.org
Sat Feb 9 10:34:01 PST 2013
Henrik Brautaset Aronsen <subsurface at henrik.synth.no> writes:
> Dirk Hohndel wrote:
>> Henrik Brautaset Aronsen<subsurface at henrik.synth.no> writes:
>>
>>> I had no problems when running as 1) or 2). /tmp/file.txt was written
>>> to, and so was /var/log/system.log.
>>>
>>> However, when run as 3) or 4), neither works. Both operations fails
>>> silently.
>>>
>>> Does anyone know what's going on here? Mandatory sandboxing? It's
>>> driving me quite mad.
>>
>> Wow, that does sound extremely annoying. It will make it very hard to
>> get debug output from people on Macs. And it makes no sense whatsoever
>> not to allow syslog from an app.
>>
>> Do an exit(0) if file == NULL to see if the open fails already...
>
> Yeah, I tried that as well. file is non-null. I have no idea what's
> going on here.
So you are getting a valid file descriptor, you are writing to that file
yet nothing gets written? That's nuts.
/D
More information about the subsurface
mailing list