Title: | DIGITAL UNIX (FORMERLY KNOWN AS DEC OSF/1) |
Notice: | Welcome to the Digital UNIX Conference |
Moderator: | SMURF::DENHAM |
Created: | Thu Mar 16 1995 |
Last Modified: | Fri Jun 06 1997 |
Last Successful Update: | Fri Jun 06 1997 |
Number of topics: | 10068 |
Total number of notes: | 35879 |
Hi, I have just encounter a strange problem about our UNIX programming. When I use fork() to produce a son process and let the son process to do a function cminit()(cpi-c program), an error occurs: Sendsig: can't grow stack. sig 11,pc=0x34345355 When I let father process to do this function, there is no problem. Can someone give me some advice about that? I think it's strange. Because this same c program can run on HP-UX and IBM AIX with no problem. If you know, pls let me know as soon as possible. We are now competing with HP and IBM now. We do the customer application on our Alpha in order to compete with them. Thanks in advance.
T.R | Title | User | Personal Name | Date | Lines |
---|---|---|---|---|---|
9330.1 | NETRIX::"[email protected]" | Sat Mar 29 1997 11:33 | 12 | ||
Just that it runs on HP or AIX doesn't indicate that is doesn't have errors/features. What's the program, can you reduce the problem to a small sample, or provide a ptr to the source. The PC doesn't look to good, and it seems that the code trampolines until the stacklimit is reached where it than SegV's. If you can't provide a ptr to the source, run it with ladebug and take a look at the stack when it dumps core. under ladebug use set to enable catchforks, so that you can switch between the copies. Pit [Posted by WWW Notes gateway] | |||||
9330.2 | SMURF::DENHAM | Digital UNIX Kernel | Sat Mar 29 1997 20:07 | 4 | |
Actually, the signal it's trying to deliver is a SEGV. So you're getting a recursive SEGV that's eating up the stack. Something like that. The suggestion to run this under the debugger is good one. So good you must have tried it already.... | |||||
9330.3 | CPEEDY::STUBBS | Tue Apr 01 1997 13:54 | 3 | ||
Do you have a wait() routine ? Is the process defunct ? Alan | |||||
9330.4 | signal error in c program | HGOM19::CHARLESCHEN | Wed Apr 02 1997 01:05 | 5 | |
Hi, There is no wait() routine. Only have a call to wait a queue(msgrcv()) to get message. Yes the process can't go further after receiving the sig 11. | |||||
9330.5 | CPEEDY::STUBBS | Wed Apr 02 1997 09:52 | 8 | ||
Could be that DEC UNIX is not cleaning house ??? send a snippet of your source here or email me. email: [email protected] Alan |