mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-01-03 18:30:15 +01:00
dbus/dbus-server-debug-pipe.c, glib/dbus-binding-tool-glib.c glib/dbus-glib-tool.c, glib/dbus-gparser.c, glib/dbus-gproxy.c test/test-segfault.c, test/test-utils.c, test/glib/test-dbus-glib.c, tools/dbus-cleanup-sockets.c tools/dbus-launch.c, tools/dbus-tree-view.c, tools/dbus-viewer.c: Various cleanup of dead code and compiler warnings (patch from Kjartan Maraas <kmaraas at gnome.org>)
25 lines
360 B
C
25 lines
360 B
C
/* This is simply a process that segfaults */
|
|
#include <stdlib.h>
|
|
#include <signal.h>
|
|
|
|
#include <sys/time.h>
|
|
#include <sys/resource.h>
|
|
|
|
int
|
|
main (int argc, char **argv)
|
|
{
|
|
char *p;
|
|
|
|
struct rlimit r = { 0, };
|
|
|
|
getrlimit (RLIMIT_CORE, &r);
|
|
r.rlim_cur = 0;
|
|
setrlimit (RLIMIT_CORE, &r);
|
|
|
|
raise (SIGSEGV);
|
|
|
|
p = NULL;
|
|
*p = 'a';
|
|
|
|
return 0;
|
|
}
|