+ I have a problem, I have a client and server talk program written in C,
+ and now I modify it to do the other thing (test the network speed).
+ In the connection statement in these program haven't change, but I
+ don't know why that when the client program call connect() function the
+ program terminate and print "Bus Error" on the screen, do you know what
+ is the cause? Please help!
You're probably doing some kind of unaligned access to data; check your
typecasts. Below is Dan Sheppard's explanation of signals from four
+ Besides, what is the shell command that can tell me the IP address
+ using host name?
There are several. You're probably thinking of nslookup.
Subject: [ucam.chat] SIGBUS
Date: 21 May 1996 20:40:03 -0700
Subject: Re: SIGBUS
>I've just been handed two of these by trn. What is it? Is it the sort of
>thing trn can do itself, like a SIGSEGV, or a hardware fault?
A SIGSEGV is an attempt to do an _illegal_ thing,
A SIGBUS is an attempt to do an _immoral_ thing.
For example *NULL is illegal, it's breaking and entering, trying to
smash up something which you have no right to,
whereas *(char *)0x00000002 on many larger machines is immoral, you're trying
to get your memory to do a misaligned access, half from one side of
a wall and half from another, which would, no doubt, get it thrown out
of the army.
For all those wondering I present the dps guide to SIGs.
SIGHUP a. You're dumped, see if you can live alone, cackle, cackle.
b. I think you need to reconsider your position in life.
SIGINT Oy, you.
SIGQUIT Bog off.
SIGILL What, me do that, with my war-wounded ALU?
SIGBUS Eugh, you're disgusting, I couldn't do that.
SIGFPE Look I never was any good at maths, I was more of an arts
SIGKILL You are dead.
SIGUSR1 Prod (Left hand side)
SIGSEGV You're nicked, sonny.
SIGUSR2 Prod (Right hand side)
SIGPIPE Lecturer, the students are asleep, nobody's listening to you.
SIGALRM Student, you're asleep.
SIGTERM You are being asked to resign.....
SIGCHLD Mr. Process, it's bad news I'm afraid, perhaps you better
sit down, it's your child....
SIGCONT Sorry about that, right, yes, anyway, I'm all ears again
now, fire away.
SIGSTOP Hang on a moment, I think I'm going to sneeze.
SIGTSTP Could you stop in a sec, I think I'm going to sneeze.
SIGTTIN Hang on, you mean there's a real world out there??? And I
need to ask them a question?
SIGTTOU Hang on, you mean there's a real world out there??? And I
need to tell them something?
SIGURG I am an orange, you are a camel, la de da, brwrwrwrwrwrwrw.
SIGWINCH Wow, I can see for miles now. The worlds really big, hang on
it's shrinking. Where's that chocolate?
SIGPWR The auxillary power is failing Cap'n. We've got 20 minutes
of air left, Jim.