c   53167

« earlier    

How to handle SIGSEGV, but also generate a core dump - Alex on Linux
clude <signal.h>
05
 
06
void sighandler(int signum)
07
{
08
    printf("Process %d got signal %d\n", getpid(), signum);
09
    signal(signum, SIG_DFL);
10
    kill(getpid(), signum);
11
}
12
 
13
int main()
14
{
15
    signal(SIGSEGV, sighandler);
16
    printf("Process %d waits for someone to send it SIGSEGV\n",
17
        getpid());
18
    sleep(1000);
19
 
20
    return 0;
21
}
c  c++  hacks  programming  how  howto  segfault  crash  Linux  unix 
yesterday by catichenor
The Stack Clash | Hacker News
HN discussion of the Stack Clash vulnerability reported by Qualsys.
security  c  c++  unix  openbsd  freebsd  linux 
2 days ago by jefframnani
vendu/wizardcode
Wizard Code is my take on machine programming. The book discusses the C language in depth from a low-level programmer's perspective. You will get familiar with how Unix-like systems execute code, how C code is translated to assembly (and later, trivially, to machine language), and such advanced topics.
c 
4 days ago by myfreeweb

« earlier    

related tags

3d-graphics  3d  4*  5*  algorithm  algorithms  analyzer  api  arcade  array  asm  assembly  audio  aws  bash  binary  binutils  bit-tricks  bit  bitwise  blog  book  books  bsd  c++  cloud  cmake  code  compability  compiler  compilers  computerarchitecture  concurrency  containers  contest  cpp  crash  cryptography  cs  csound  d.programming.language  dash  data  database  dataformat  debug  design  development  devops  docker  dsp  electronics  elf  elisp  embedded  engineering  finance  fix  fortran  framework  freebsd  fun  game  games  gcc  gdb  github  grundlagen  guide  hacks  hdf5  how  howto  html  html5  html5lib  http  httpd  ide  india  init  interesting  international  iot  ja  jason  javascript  learn  learning  left  libraries  library  link-stash  linker  linking  linux  lisp  literateprogramming  llvm  lowlevel  m2m  mac  macro  magic  make  map  memory  microsoft  mingw  minimalism  mono  music  my-work  mysql  obfuscated  of  online  openbsd  opensource  optim  optimization  os  paper  parser  performance  perl  php  pointer  portable  profdev  programming  puzzle  python  reference  repository  resource  retro  reverseengineering  right  ruby  rule  rust  scripting  security  segfault  serverless  shell  signal  simplicity  software  sound  spacemacs  speech-synthesis  sqlite  sqlite3  standards  static  string  structure  systemd  systems  systemsprogramming  tcc  tcl  tdd  technologie_erklärt  test-driven-development  testing  threads  tool  toolkit  towatch  trading  tricks  tutorial  unit-testing  unix  value  verification  visualization  vocal  voice  wayland  web  win32  windows  yagni  yelp  zsh  連載 

Copy this bookmark:



description:


tags: