Process got stuck after receiving SIGUSR1

Hi,
I have a C++ program which get stuck after receiving SIGUSR1 signal. Its a daemon process which stop after receiving SIGUSR1 signal. but instead of stopping it stuck.
below is the pstack of the process when it was stuck.
----------------- lwp# 1 / thread# 1 --------------------
7fa1f48c lwp_sema_wait (7e340)
7fa996dc _park    (7e340, 7fabc000, 0, 7e278, 2316c, 0) + 114
7fa993a4 _swtch   (7e278, 7e278, 7fabc000, 5, 1000, 7fabc000) + 424
7fa9ada0 mutexadaptive_lock (7fac785c, 4c00, 1000, fffeffff, 1, 4d58) + 160
7fa9aab4 cmutexlock (7e188, 7fabc000, 0, 33d8c, 0, 0) + 84
00033d8c __1cDstdNbasic_ostream4Ccn0ALchar_traits4Cc___Gsentry2t5B6Mr1_v_ (ffbe9254, 7ce30, 7d278, 7c24c, 8, 7e180) + 50
00031768 __1cDstd2l6Frn0ANbasic_ostream4Ccn0ALchar_traits4Cc____pkc_2_ (7ce30, 66f4d, 7c24c, 0, 0, 0) + 20
00023844 __1cSReplicatorDriver64Jterminate6Fi_v_ (10, 0, 0, 0, 0, 0) + 1c
00023674 __1cSReplicatorDriver64ScatchSignalHandler6Fi_v_ (10, ffbe97f0, ffbe9538, 0, 0, 0) + 1c
7faab118 __sighndlr (10, ffbe97f0, ffbe9538, 23658, 7e320, 7e310) + c
7faa811c sigacthandler (10, 7e278, 0, 0, 0, 7fabc000) + 708
--- called from signal handler with signal 16 (SIGUSR1) ---
7fa1fa6c _write   (7e180, 7e940, ffffffff, 280, 2, 7e000) + c
0005a6a0 __1cDstdNbasic_filebuf4Ccn0ALchar_traits4Cc___Esync6M_i_ (7e180, 8, 7d278, 8, 218, 7ce30) + 30
00031d30 __1cDstd2l6Frn0ANbasic_ostream4Ccn0ALchar_traits4Cc____pkc_2_ (7ce30, 300, 7c24c, 2fd10, 0, 1) + 5e8
0002a548 __1cXTimesTenTableReplicatorEread6MrknXTimesTenLogConnection64_ripppnRttXlaUpdateDesc_t__b_ (803f0, 80430, ffbeaa30
, ffbeaa2c, 2fd10, 8) + 68
00029f98 __1cXTimesTenTableReplicatorJreplicate6Mrl_b_ (803f0, ffbeaaf0, 3e8, 5, 7fb4b4e8, 34) + 108
00028408 __1cYReplicatorThreadDriver64Drun6M_b_ (0, 3fc7c, 8, 7d278, 7ce38, 7e180) + c8
000232c4 __1cSReplicatorDriver64Drun6M_b_ (ffbeabd8, 23258, 7c24c, 2fd10, 0, 1) + 14
00023174 main (3, ffbeac44, ffbeac54, 7c800, 0, 0) + 124
00023028 _start   (0, 0, 0, 0, 0, 0) + 108
below is the code of signal handler.
void ReplicatorDriver64::catchSignalHandler(int i_signalNumber)
     if (i_signalNumber == SIGUSR1 )
     ReplicatorDriver64::terminate(i_signalNumber);
     cout<<"return from ReplicatorDriver64::terminate"<<endl;
     return;
void ReplicatorDriver64::terminate(int i_signalNumber)
     cout << "Received a User Signal 1( terminate ) "<<endl;
     struct sigaction act, oact;
     sigfillset(&act.sa_mask); // set all the signal flags in the sigmask argument
     act.sa_handler = SIG_DFL; // set defaul action flag to segnal
     act.sa_flags = 0;
     m_processStatus = false;
}

The C and C++ standards say that the only thing you can rely on doing in a signal handler is to read and write global volatile variables, abort the program, or call the signal function.
The Unix standard, which applies to Solaris, is more lenient. By default, a signal handler is run on the process stack, although it is possible to specify that a given signal runs on a different stack. If the stack actually used has enough space, you can call functions.
But the Unix standard limits the system functions that you can call. You can call only those system functions that the man page says they reentrant and safe to call from a signal handler. Any function that calls malloc or free is generally not safe, and I/O routines often involve calls to malloc or free.

Similar Messages

  • My iphone 3g got stuck after updating

    after updating my iphone got stucked in the "emergency call" and i dont know what to do!

    i was updating my iphone 3g to ios 4.2 and when the restoration was over on the iphone I get nothing but the option to make an emergency call and nothing more.(sory the language i am from argentina)

  • WebI Processing servers stuck after reach memory threshold

    Hello all,
    since few day, we encounter several issue with Web Intelligence Processing Server.
    In the CMC, the server is stuck in starting mode. It seems appear when the server reach maximum memory threshold (configured at 1.8GB)
    FP2.1 has been installed on the application server and the issue is still here. We have created 3 more WebI servers (4 in total : 1 by processor) always stuck...
    We actually used a script to automatically killed WebI processes when the memory threshold is reached but it's only a workaround...
    Has someone ever had this problem? How did you fix? Is there a problem in my configuration(see below)?
    Thanks in advance for your help.
    Vincent
    Architecture :
    Applications Server :
    Windows 2003 x64 SP2
    Database Server :
    HP-UX 11.23
    Oracle 10.2.0.2
    Web Intelligence Processing Service
    Document Cache Cleanup Interval (seconds): 120
    Binary Stream Maximum Size (MB): 50
    Cache Timeout (minutes): 4370  
    Memory Maximum Threshold (MB): 1800  
    Idle Document Timeout (seconds): 5400  
    Server Polling Interval (seconds): 120  
    Universe Cache Maximum Size (Universes): 20  
    Disable Cache Sharing  
    Images Directory:  
    Maximum Document Cache Size (KB): 1000000  
    Output Cache Directory:  
    Maximum Documents per User: 5  
    Allow Document Map Maximum Size Errors  
    Maximum Documents Before Recycling: 50  
    Maximum Connections: 200    
    Idle Connection Timeout (minutes): 60  
    Maximum List Of Values Size (entries): 50000 
    Enable List Of Values Cache : X
    Enable Real-time Cache : X  
    Maximum Document Cache Reduction Space (MB): 70 
    Maximum Documents in Cache: 0  
    Memory Upper Threshold (MB): 1000  
    Enable Memory Analysis : X  
    Enable Document Cache : X  
    List Of Values Batch Size (entries): 1000  
    Maximum Custom Sort Size (entries): 100  
    Memory Lower Threshold (MB): 1000  
    Timeout Before Recycling (seconds): 3600  
    Maximum Character Stream Size (MB): 5

    Hello Seb,
    unfortunately, the reports are launched by the customer and I don't have any control on it...
    The last solution provided by OSS SAP call was to install FP2.1 but it didn't solved the issue.
    Any other idea ?
    Vincent

  • SP10 got stuck after installing ERP2005

    Hi, all
    I just installed ERP2005 double stacks on windows 2003, when I am trying to apply support package 10 for basis module, it ran forever, after a couple of retries, I can't be able to import it anymore and generated short dumps when I ran any t-codes.
    I am wondering if anyone faced similar problems.
    any help would be appreciated !
    thanks
    Xiangli

    Hi,
    Please check the tablespace availability through DB02 once after refreshing the DB. If any of the tablespace is above 86%, please increase the tablespace and then try it out.
    Reward points if this gives the solution.
    Regards,
    Santhosh

  • HT3231 My migration process suddenly got stuck what should I do?

    I am changing my old MacBook air for a new Mac Pro 13" and after 10 hours the transferring process got stuck and it has not advanced for over 48 hours

    Whildkatz wrote:
    Were you able to find a solution to this?
    Well it was a year ago so I would guess that he did.
    If you have a problem though I suggest starting a new thread of your own.

  • User/customer exit after receiving e-mail

    Hi,
    I want to process the mail after receiving it. Is there any user/customer that can be used after receiving an e-mail? Is there any alternative way?
    thank,
    - ferudun

    Hi,
    I have examined PROCESS_INBOUND method of class CL_RMPS_INCOMING_MAIL. I found that there is RMPS_POST_DEFATTR badi call. I have implemented the badi and insert endless loop in methods SET_DEFAULTS_MAIL_SMTP and SET_DEFAULTS_MAIL_BOR. I sent an e-mail but the methods I have implemented were not reached.
    I have traced the incoming mail and there were the following lines:
    IBND_PROC_POST_DECR     G     Start of Exit Processing
    EXIT_PROCESSING     G     No Exits Found
    IBND_PROC_POST_DECR     G     End of Exit Processing
    IBND_PROC_POST_DECR     G     Try to Find Internal Recipients
    What is missing or wrong in my work?
    tahnks,
    - ferudun

  • EHP 7 upgrade - Got stuck at Pre-processing - urgent help required

    hi Everyone,
    I am upgrading my current ECC 6 EHP 6 system to EHP7. I got stuck in the Pre-processing phase "imports included Add-on and Support Packages into the shadow tables and the new tables". there is no error but it is runnign for more than 15 hours now. i dont even see a latest log showing its progress. The logs got updated 14 hours ago and there is no update after that.
    The shadow instance was down. Main instance is up and running and no Jobs running. I manually started the shadow instance and checked if that will help . but no use. so restarted the SUM tool. it gives a different problem now. I have listed out the current probelms below. please check and advise
    1. SUM tool shows, "ABAP- Starting handshake" - SAPUP.Out erro message (ERROR in GUI communication: Error in network interface: NIEINVAL (0/53 written))
    2.Shadow instance up and running but while trying to login from GUI,it says "rabax during SAPGUI logon". i can see all its WP in 'waiting' status at the OS level
    3.in DB02, "oldest Open Transaction" shows Aug 15 2014 10:30 PM, which means this transaction is there at the DB level for more than 16 hrs now.
    Please help trouleshoot and resolve this. useful inputs will be rewarded immediately
    thanks,
    Shiv

    I have resolved the 1st issue, after killing the SAPup process at os level.
    now, in the SUM tool, it gives the following info,
    Type                    |Name                          |ProcessID|Description
    =============================================================================
    Operating system process|E:\usr\sap\<SID>\SUM\abap\exe\tp|5144     |
                            |"pf=E:\usr\sap\<SID>\SUM\abap\va|         |
                            |\SHDALLIMP.TPP"               |         |
                            |put <SID> "-Dmainimp_proc=2"    |         |
                            |"-Dparallel=2"                |         |
    If additional processes are still running or background jobs are active, the
    program *must* wait for them before it is able to continue.
    Be careful with stopping any process. If a background job is scheduled but not
    running, delete this job using transaction SM37.
    01)  -  Exit program
    02)  *  Check status again
    03)  -  Processes do not exist, continue
    04)  -  Wait for processes to finish
    : Check status again
    TP program is running at OS level. but as already said, no background job runnig in Main instance and the shadow instance was already down. shal i kill this TP process and try with option 03) ?
    please advise
    thanks,
    Shiv

  • TS1702 Hello, it's been quite a while that I can't purchase any in-apps. After purchasing, games don't download and the process is stuck with comments like "purchase is being in processed right now" or other comments. My ipad is 3rd generation and is upto

    Hello, I used to purchase games of big fish games. Since February I can't purchase in apps. After purchasing I receive a mail that I've been charged, but the game is not downloaded. The process is stuck and  Each time I get another comment,  "authenticating", "purchase is being processed right now" etc. I tried to delete apps and download again, restart the ipad, enable and disable restrictions and nothing helps. I always get a refund but the problem remains the same. Did anyone meet the same problem?

    Look, I understand I still need a card attached to the account. The problem is, it won't accept my card because I only have 87 cents in my bank account right now.
    If I had known there would be so much trouble with the iTunes card, I would have just put the cash in my bank account in the morning instead of buying an iTunes card (I didn't expect the banks to be open on Thanksgiving of course).
    Apple will only accept cards that have a balance. The balance is so small in my account that it won't accept it as a valid card.
    I'm going to have to contact Apple anyway to reset the security questions. That's obvious. Your answers were not exactly helpful. You didn't tell me anything I don't already know, but thanks for trying to be helpful.

  • In mail, after importing mailboxes the process gets stuck on '1619 of 72826' and 'time remaining' climbs infinitely. Please suggest a solution.

    In 'mail', after importing mailboxes the process gets stuck on '1619 of 72826' and 'time remaining' climbs infinitely. Please suggest a solution.
    I converted my mail boxes from POP to imap for the purpose of syncing all my devices. I backed up my mail boxes and further more perfomed a timemachine backup.
    Upon restoring ther mailboxes, either by manually copying them to the mailboxes folder, and restoring a timemachine backup, both pocesses result in the above problem.
    Please recomend a solution.
    file://localhost/Users/redwood/Desktop/Screen%20Shot%202013-10-15%20at%201.48.10 %20PM.png
    file://localhost/Users/redwood/Desktop/Screen%20Shot%202013-10-15%20at%201.38.30 %20PM.png

    Can anyone out there please help!

  • HT1222 I got disconnected after the release of the last update! I'm disconnected only from the app store and itunes. Do i have to update to activate my account? What to do, i'm stuck.

    I got disconnected after the release of the last update! I'm disconnected only from the app store and itunes. Do i have to update to activate my account? What to do, i'm stuck.

    Have you restarted your phone?
    If so, try a reset. Press and hold the home & sleep/wake buttons until the screen goes blank, ignoring the power off slider if it comes up.
    Check for the app again after the phone starts back up.
    ~Lyssa

  • In the process of reseting phone and got stuck on black screen with spinning logo

    in the process of reseting phone and got stuck on black screen with spinning logo
    what do I do

    Hey amreed2012,
    Thanks for the question. The steps in the following resource may resolve your issue:
    If you can't update or restore your iPhone, iPad, or iPod touch
    http://support.apple.com/kb/HT1808
    Thanks,
    Matt M.

  • I bought CS6 and it got stuck in the downloading process, do I try download again? a different brows

    I bought CS6 and it got stuck in the downloading process, do I try download again? a different browser? Please help! I used DSL.

    Yes,  Please go ahead and try downlading again.

  • After updating from ios 7.1.2 to 8.1.2, iphone got stuck syncing with itunes!

    After updating from ios 7.1.2 to 8.1.2, iphone got stuck syncing with itunes!
    I searched for some solutions on the internet and applied following fixes:
    1- Disconnected iphone from PC and closed itunes.
    2- Reset the iphone by holding down the On/Off button.
    3- Connected iphone back to PC to sync with itunes.
    Apparently this fixed the problem, and iphone synced with itunes.

    same here, but now you can't downgrade to iOS 7.x, since apple has closed the verification server for that version.

  • My phone got stuck in recovery mode after update to IOS 5.0.1, how can I solve it ?

    my phone got stuck in recovery mode after update to IOS 5.0.1, how can I solve it ?

    Read this
    http://pathumf.blogspot.com/2011/11/how-to-reboot-stuck-iphone-iphone-4s.html

  • I have a Windows laptop running with Windows 7 (64 bits). i was using itunes normally. Few days ago I upgraded to 10.5.2. When I completed download and install process, itunes opened and got stuck.It says "Updating itunes library". What can I do?

    I have a Windows laptop running with Windows 7 (64 bits). i was using itunes normally. Few days ago I upgraded to 10.5.2. When I completed download and install process, itunes opened and got stuck.It says "Updating itunes library". What can I do?

    Hi Drgeert-
    The hub may not be broken per se, but Apple has made adjustments to the limits on current that can be drawn from ports.
    You probably need a new hub.
    These may be helpful and/or interesting:
    USB: High Bandwidth and Isochronous Devices Must Be Separated
    USB Product-Specific Details
    Luck-
    -DaddyPaycheck

Maybe you are looking for