Looking in siginfo to find who sent this signal

Hello,
I am trying to trace the source of all signals received by a process.
As I read the documentation, the proc:::signal-handle probe will fire when a thread is about to receive a signal and will have args[1] either NULL or containing a siginfo_t structure.
I can print out the signal code using
dtrace -n "proc:::signal-handle
/pid==$MYPID && args[1]!=NULL/
printf(\"Thread %d about to handle signal %d code %d\n\",
tid,arg0,args[1]->si_code);
But when I try to print the pid of the sender from args[1]->si_pid, (which should be available when si_code<=0)
using
dtrace -n "proc:::signal-handle
/pid==$MYPID && args[1]!=NULL && args[1]->si_code<=0/
printf(\"Thread %d about to handle signal %d pid %d\n\",
tid,arg0,args[1]->si_pid);
I get
dtrace: invalid probe specifier proc:::signal-handle
/pid==18568 && args[1]!=NULL && args[1]->si_code<=0/
printf("Thread %d about to handle signal %d pid %d\n",
tid,arg0,args[1]->si_pid);
}: in action list: si_pid is not a member of struct siginfo
Is Dtraces' struct siginfo differant from the siginfo_t on Solaris 10?
Can anybody tell me the right way to find who sent a signal?
Thanks
-- Steve

Got it.
The siginfo structure does not really have a si_pid member.
It is defined in /usr/include/sys/siginfo.h as
#define si_pid __data.__proc.__pid
which Dtrace doesn't know about. So I just need to say
dtrace -n "proc:::signal-handle
/pid==$MYPID && args[1]!=NULL && args[1]->si_code<=0/
printf(\"Thread %d about to handle signal %d pid %d\n\",
tid,arg0,args[1]->__data.__proc.__pid);
and all is well.
-- Steve

Similar Messages

  • How do I find who owns this iPad

    How do I find out who owns this iPad S/N DL*******19K
    <Edited by Host>

    Why do you need to know has ipad got Apple ID lock on
    if so it maybe lost/stolen?
    bsydd uk

  • Who sent this iMessage?

    Your advice please.
    A friend of mine, who i'll refer to a the 3rd party, has send me a screenshot of an iMessage supposedly from my Girlfriend warning her off. It would appear that after discussing this with my Girlfriend that the screenshot of an iMessage with my Girlfriend's number at the top in a +44 format (number publicly avaliable on her company website) did not originate from my Girfriend's phone.  Whilst I have never doubted my Girlfriend and trust her implicity she accepts accepts this but for peace of mind wants me to be able to prove that the 3rd party is guilty in plotting to come between the two of us and to take this matter up with her.
    I believe this is how it has happened. The 3rd party has changed the contact name of one of her friends to my Girlfriend's mobile number, asked them to iMessage her back with content which I'm being led to believe is from my Girlfriend's iPhone.  A .png screenshot has been taken by the 3rd party and this was subsequently emailed to me.
    Having disussed this my Girlfriend she has called her service provider with me in an attempt to get a itemise log of text messages for the time the iMessage was received, however, this does not include iMessages.  After doing some research myself i've stumbled across spotlight, so in the presence of my Girlfriend, with her concent and at her request I have spotlighted the 3rd party's mobile number and it does not produce any result or indeed any association with this number.  As I'm sure you can imagine she has never been a conact in my girlfriends phone either.  My girlfriend has not performed a factory reset, nor does she have a computer to sync with iTunes to remove message history.
    Are there any posts online to be able to be to demonstarte to this 3rd party that unless she is able to explain otherwise I have no choice my to assume she has been involved in the setup of this very nasty malicious message?
    I look forward to hearing from you
    Many thanks

    Hi KiltedTim
    Not threatening just inappropriate.  My Girlfriend wants to prove her innocence to the 3rd party and I'd personally like to be able to point out that the 3rd party that what she has done has cause serious offent to us both and give good reason to no longer keep in touch, which is obviously a forgone conclusion anyway.
    Thanks

  • The redemption code they sent me in an email does not work...it says it is not active and to contact the store i purchased it from? Adobe is the one who sent this to me and i cannot get in touch with anyone. Very frustrated

    Does anyone have any suggestions?

    Photomum2014 did you purchase a redemption code though http://www.adobe.com/?
    I would recommend reviewing Redemption Code Help.  If you continue to experience difficulties then please contact our support team at http://adobe.ly/1aYjbSC.

  • How do I find who imported a transport request

    Hello
    How do I find who imported a transport request

    Hello,
    1) Go to transport history or SE09 --> F5 in target system and find out what time your change imported to target system.
    2) now you need to find who did this and you can go to STMS_IMPORT on target system and look for transport monitor SLOG and match with timings. (you will find slog info at the same place at import monitor)
    There was one time I have experienced mass import was done by a learner and I could able to go back and find the info by matching with SLOG, STMS_HISTORY, STAD.
    Thanks,
    Vasanth

  • I can't be the only person who has this problem - when a month ends on a Saturday I can't drag events into the next month and instead have to cut and paste - a real pain in the butt. I thought there was something called "scroll" but I can't find that

    I can't be the only person who has this problem with iCal- when a month ends on a Saturday I can't drag events into the next month and instead have to cut and paste - a real pain in the butt. I thought there was something called "scroll" but I can't find that.

    Yeah that works, but, it involves a click on the event, a click on edit, a click on the date, keystrokes, plus, since you can't see the next month you have to have a calendar in front of you so as to put it to the right date. It's easier just to cut it and advance the month and paste it, once you are in the right month you can move it around helter skelter willy nilly no problems. Although now that you mention it I will try it, maybe it is easier than cut and paste as I don't really care about the date, as long as it gets moved into the right month I can drag it around all I want.

  • Where can I find the plugin to open camera raw files for Nikon D810 for Photoshop CS5.1? I've looked around the site but cannot get this to work.. Thank you.

    Where can I find the plugin to open camera raw files for Nikon D810 for Photoshop CS5.1? I've looked around the site but cannot get this to work.. Thank you.

    See for yourself which version of ACR is needed for that camera’s RAW files
    http://helpx.adobe.com/creative-suite/kb/camera-raw-plug-supported-cameras.html
    then check your version (Photoshop > About Plug-In > Camera Raw).
    Your version of Photoshop does not support that version of ACR.
    You could use the free DNG Converter.

  • HT204088 I've noticed a charge on my credit card for $8.49 each month.  I looked at my Apple iTunes purchases and don't see it in my purchase history.  How do I find out what this charge is for?

    I've noticed a charge on my credit card for $8.49 each month.  I looked at my Apple iTunes purchases and don't see it in my purchase history.  How do I find out what this charge is for?

    If it's happening every month then it's likely to be an auto-renewing subscription - there are instructions on this page for managing and stopping them : http://support.apple.com/kb/HT4098

  • HT201441 i have iphone that he has a apple acount but i don't now her acount and password because he come's from england and i don't now a person who was this iphone before me.can you help me to find this person

    i have iphone thet he has an apple acount but i don't now her acount and i need help to find a person who was this iphone before me to ask her for a apple acount and password.please help me acount start k,,,,,@k,,,,,.uk if anyone now this person tell me please

    Welcome to the Apple community.
    Unfortunately, you cannot do very much with your phone unless you get assistance from the previous owner, they should either provide you with the password to unlock it or remove their account from the phone entirely remotely through iCloud.com > Find My Phone.
    If you have this persons email address, try sending them an email and asking them to remove their ID as described above.

  • I want to start using the creative cloud programs but it has forced me to "start a trial" and looks like I need a redemption code to "license" the products on my computer for the next year. Where do I find or get this redemption code?

    I want to start using the creative cloud programs but it has forced me to "start a trial" and looks like I need a redemption code to "license" the products on my computer for the next year. Where do I find or get this redemption code?

    If you bought your subscription direct from Adobe, you should not need any codes, only your Adobe ID and password
    -Cloud programs do not use serial numbers... you log in to your paid Cloud account to download & install & activate... you MAY need to log out of the Cloud and restart your computer and log back in to the Cloud for things to work
    -Sign in help http://helpx.adobe.com/x-productkb/policy-pricing/account-password-sign-faq.html
    -http://helpx.adobe.com/creative-cloud/kb/sign-in-out-creative-cloud-desktop-app.html
    -http://helpx.adobe.com/x-productkb/policy-pricing/activation-network-issues.html
    -http://helpx.adobe.com/creative-suite/kb/trial--1-launch.html
    -Cloud Getting Started https://helpx.adobe.com/creative-cloud.html
    -Install, update or UNinstall, and launch after installing
    If you bought your subscription from some other vendor, ask that vendor for help
    -Redemption Code http://helpx.adobe.com/x-productkb/global/redemption-code-help.html

  • How could I find the SQL statement who get this message ?

    ORA-01555 caused by SQL statement below (Query Duration=11191 sec, SCN: 0x0854.723b9c32)
    ... How could I find the SQL statement who got this message ?
    Thanks, Paul

    ORA-01555 means that the UNDO/ROLLBACK space is not large enough.
    This occurs because the SELECT statement is attempting to read the UNDO, but the UNDO has been released (transactions have committed or rolled back) and reused.
    The following are SOME of the reasons I have seen this to occur:
    1) Updates in a loop, with commits happening in the same loop
    - this will mark the UNDO available quickly and quickly reuse it. Then when the SELECT wants to rebuild a block, the UNDO used to rebuild the block has been reused (solution, make the UNDO bigger)
    2) A SELECT cursor used to control a loop in which updates are performed, and a 'done' flag is marked against the current cursor record, and commits are performed at the end of each loop, prior to fetching the next record
    - same problem as above, but it hits the current process. Same solution
    3) A 'month end' activity spike occurs, and all sorts of transactions create updates. There is a report that reports the activity - amusingly it needs to start at the beginning of all the work and updates periodically by doing a huge SELECT up front. This is then used to drive a loop which attempts to get information from the various transactions that have been updated and committed. After a while, the SELECT gets an ORA-01555
    - same problem as above and same solution. Get a bigger UNDO segment.
    You say this only happens once a month. That should give a hint.
    I wouldn't bother with which SELECT statement, as much as which APPLICATIONs are being run when it happens.
    One way around this - use 10g and set the guaranteed retention period. All sorts of other things will break, by no more 1555. <g>

  • I have iphone 5, after upgrading it to iOS7, front is working find unfortunately rear camera became blurred, what is the best way to fix this? Looking forward to the best solution of this problem.

    I have iphone 5, after upgrading it to iOS7, front is working find unfortunately rear camera became blurred, what is the best way to fix this? Looking forward to the best solution of this problem.

    WORKAROUND FOUND ! Download and install "Awesome Camera" app and take a picture with that app. After 1-2 seconds of standby, it will work. Then you can go back to default Camera app which would work again.Please let me know

  • Finding out the sender who sent a skype text alert

    How do i find out who was the sender who sent me a message by skype text alert?

    I have the same question.  The SMS sender is only identified by a code.  i do not know who the sender is and cannot respond to the email.  Is it possible to identify the sender?

  • TS3276 My mail will not let me send mail and I seem to have lost my "Send" button  I have to look under messages to find Send. I spent two hours with my service provider last evening trying to fix this issue and now today it does not work again, what did

    I suddenly cannot send mail, I get the message I am not connected to my provider  I seem to remember I had a send button of a paper airplane on my mail page and now I have to look under messages to find the send

    Please describe in detail what happened when you took all the applicable steps in the support article that led you here. That's the starting point for any further efforts to solve the problem.

  • Urgent help of the person who coded this...

    could the person who posted this code pls get back to me..cuz i can't seem to find u
    cuz i would like to use this code of urs but i'm not sure exactly how it works out.
    import java.awt.*;
    public class DrawArrows
         public void drawArrow(Graphics g,int x1,int y1,int x2,int y2,int headLength,int headwidth)
         double theta;     
         double theta2;     
         int deltaX;     
         int deltaY;     
         int lengthdeltaX;     
         int lengthdeltaY;     
         int widthdeltaX;     
         int widthdeltaY;     
              deltaX=(x2-x1);     
              deltaY=(y2-y1);     
              theta=Math.atan((double)(deltaY)/(double)(deltaX));     
         if(deltaX<0.0)theta2=theta+Math.PI;     
         else theta2=theta;     
         lengthdeltaX=-(int)(Math.cos(theta2)*headLength);     
         lengthdeltaY=-(int)(Math.sin(theta2)*headLength);     
         widthdeltaX=(int)(Math.sin(theta2)*headwidth);     
         widthdeltaY=(int)(Math.cos(theta2)*headwidth);     
         g.drawLine(x1,y1,x2,y2);          
         g.drawLine(x2,y2,x2+lengthdeltaX+widthdeltaX,y2+lengthdeltaY-widthdeltaY);     
         g.drawLine(x2,y2,x2+lengthdeltaX-widthdeltaX,y2+lengthdeltaY+widthdeltaY);   
    }i could only work out till the line
                                               deltaX=(x2-x1);     
              deltaY=(y2-y1);     
              theta=Math.atan((double)(deltaY)/(double)(deltaX));    pls let me know if u are still reading this or anyone else who can figure out the later part of the code.
    thnx n cheerz

    i could only work out till the line
    deltaX=(x2-x1);
    deltaY=(y2-y1);
    theta=Math.atan((double)(deltaY)/(double)(deltaX));
    I'm not the poster but these lines seem to compute the
    angle of the arrow line.
    BTW (to the posters): wouldn't the use of a
    Polygon be better suited for this purpose ?Looks indeed like it is calculating the angle to the origin of a line segment.

Maybe you are looking for

  • Ichat av 3.1.8 (v445) error-8

    Hi, another case of a non working ichat av connection. I have looked up different forums and suggestions, but so far no answer I have fould could solve the problem. external isight camera firewire connected. Speedtest.net Geneva-Austin,TX was: downlo

  • Selecting OS language for multi-lingual systems

    Hi, I just got a T400 yesterday, which was supposed to include a multi-lingual version of XP (English/Swedish/Finnish). However, I never got the choice at startup to choose language, and it defaulted to swedish. I have already tried to restore the sy

  • IPod refuses to play a certain song which plays fine in iTunes

    20gb iPod colour refuses to play a song I downloaded from the iTunes store, "Through the Fire and Flames" by Dragonforce. It plays perfectly in iTunes, but whenever I want to play it on my iPod, it automatically skips to the next song, despite not ha

  • SQL quick challenge

    Hello All, I have two tables: Positions_tbl (Start_Position, End_Position) X_Positions (X_Name, X_Position) I need to find how many X_Position lies between each (Start_Position, End_Position) Thank you! Edited by: OMD on Feb 21, 2013 9:24 AM

  • Where is the best place to buy the new ipad? Please help

    I am ready to buy a new ipad.  There is no apple store in my town but I will be close to one in a couple of days.  My town has Best Buy, Target, and Walmart.  Assuming I can find what I want... in case I have issues with it, where is the best place t