Happy child (w/10.2), gets SIGABRT (w/10.1)
Happy child (w/10.2), gets SIGABRT (w/10.1)
- Subject: Happy child (w/10.2), gets SIGABRT (w/10.1)
- From: Lance Drake <email@hidden>
- Date: Sun, 9 Mar 2003 22:50:53 -0700
It is only after having spent my entire weekend poking and prodding and
testing and reading and looking and loading and thinking and trying...
that this letter has been posted to this list. So please, don't think
I'm being flip and just tossing my trivial problems into your
collective laps.
Manager's Nutshell Explanation:
-------------------------------
The (simple) tool that builds with PB 2.0.1 on MacOSX 10.2.4 (and works
perfectly) does not work when built with PB 2.0 on MacOSX 10.1. After
a call to wait4(ch_pid...), the parent, examining WIFEXITED, reports
the child process has been quit via SIGABRT. (100% repeatable)
Discussion:
-----------
In my tool, main() performs a fork(), the parent is supposed to quit
and leave the child remaining and running. This is exactly what
happens with the 10.2.4 implementation. When my manager asked for 10.1
support, it seemed like a simple enough thing - but noooooo... I have
loaded a separate disk with OS 10.1 and installed the 2.0 PB tools,
re-built the project and the formerly, completely reliable code
sputters to a total standstill.
If I skip the fork and simply execute, all of my code runs with no
problems or exceptions - it works fine! But, as soon as the fork takes
place, the child process dies a horrible death... and I have reached
the point of admitting I am clueless.
For sure, processes and fork() are nothing new - certainly they work
with 10.1 but scrounging the Q&A, TechNotes, Docs, Mach literature,
UNIX books, Google and the archives of this newsgroup give no clue as
to what is happening in my case. I am not even sure where the SIGABRT
is coming from - and certainly not WHY is is coming.
Wanna make somebody deliriously happy? Share some of your
secret-inside-coolguy-incantations and help put this forkin' brickwall
behind me.
Thanks!
Lance Drake
_______________________________________________
darwin-kernel mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/darwin-kernel
Do not post admin requests to the list. They will be ignored.