[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference turris::digital_unix

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

9330.0. "signal error in c program!!" by HGOM19::CHARLESCHEN () Sat Mar 29 1997 01:58

    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.RTitleUserPersonal
Name
DateLines
9330.1NETRIX::"[email protected]"Sat Mar 29 1997 11:3312
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.2SMURF::DENHAMDigital UNIX KernelSat Mar 29 1997 20:074
    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.3CPEEDY::STUBBSTue Apr 01 1997 13:543
    Do you have a wait() routine ?   Is the process defunct ?
    
    Alan
9330.4signal error in c programHGOM19::CHARLESCHENWed Apr 02 1997 01:055
    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.5CPEEDY::STUBBSWed Apr 02 1997 09:528
    
    Could be that DEC UNIX is not cleaning house ???
    
    send a snippet of your source here or email me.
    
    email: [email protected]
    
    Alan