CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6
  1. #1
    Join Date
    Jul 2014
    Posts
    2

    Smile Send signal SEGV to crash a running process in Windows .

    Hi ,

    I need to do an equivalent of kill -11 <pid> in windows.

    I need to crash a process with SEGV . Is there any tool by which we can do this .
    Also is there any sample code through which we can achieve this .

    Please do let know .

    Regards
    Sangram

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,396

    Re: Send signal SEGV to crash a running process in Windows .

    Victor Nijegorodov

  3. #3
    Join Date
    Jul 2014
    Posts
    2

    Re: Send signal SEGV to crash a running process in Windows .

    Hi ,

    Yes i mean to send a signal (segmentation fault )to terminate a process and also to dump core for SEGV (segmentation fault) , not not just terminate the process. taskkill in windows just terminates the process , but the terminating process does not dumps core.

    Regards
    Sangram

  4. #4
    Join Date
    Apr 2000
    Location
    Belgium (Europe)
    Posts
    4,626

    Re: Send signal SEGV to crash a running process in Windows .

    inject a bit of code that'll cause a segfault. THere's plenty of topics about possible ways to inject code into another process.

  5. #5
    Join Date
    Nov 2000
    Location
    Voronezh, Russia
    Posts
    6,620

    Re: Send signal SEGV to crash a running process in Windows .

    Quote Originally Posted by sangbk View Post

    Yes i mean to send a signal (segmentation fault )to terminate a process and also to dump core for SEGV (segmentation fault) , not not just terminate the process. taskkill in windows just terminates the process , but the terminating process does not dumps core.
    Surely Windows is not Linux. And something tells me your ultimate goal goes beyond just taking core dumps. So, it would be much more productive for you to explain your real needs here.
    Best regards,
    Igor

  6. #6
    Join Date
    Apr 2000
    Location
    Belgium (Europe)
    Posts
    4,626

    Re: Send signal SEGV to crash a running process in Windows .

    I was sort of assuming he wanted to get aa SEH to result in a minidump to see what the exe is doing.

    Then again, there's easier ways to do THAT. just attach your debugger to the process and break all.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured