Weird SIGBUS errors
Weird SIGBUS errors
- Subject: Weird SIGBUS errors
- From: David McCabe <email@hidden>
- Date: Mon, 5 Nov 2001 14:37:00 -0800
Greetings,
A really weird error has been happening. I wrote a quick manual viewer
to test the CocoaShell thing at
<
http://www.cfcl.com/~incomingsw/products/cocoashell/index.shtml>.
Whenever the program is run, it works normally until the button is
pushed which brings up the manual. The man page flashes briefly on the
screen, and then the app dies. The following error is displayed in PB's
'Run' console:
ManViewer.app has exited due to signal 10 (SIGBUS).
I looked up the signal, and it is issued when the CPU's bus (the CPU has
a bus? Is that the same as the front-side bus?) has something queer on
it. I tried putting the following in main() :
sigblock(10);
This function is defined in <signal.h> and prevents a program from
getting some signal. After this, I started getting signal 11 (SIGSEGV).
I tried succeeding the sigblock() with another, this time blocking 11.
Then I got signal 10 again. Now, no matter what combination of the
blockings I use, I get seemingly random signals, either 10 or 11.
The full source code can be found at
<
http://65.12.248.233/manviewer.tar.gz>.
I'm using Mac OS 10.1. What could be going on?
--
David McCabe
http://homepage.mac.com/davidmccabe/
'finger email@hidden' for PGP key.
No PGP sig because it's broken. Will fix soon.
Wrfhf ybirf lbh!