2003-04-05 00:37:17 +00:00
|
|
|
/* This is simply a process that segfaults */
|
2007-03-07 18:34:01 +00:00
|
|
|
#include <config.h>
|
* dbus/dbus-auth.c, dbus/dbus-connection.c, dbus/dbus-keyring.c,
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>)
2005-11-30 19:32:27 +00:00
|
|
|
#include <stdlib.h>
|
2003-04-05 00:37:17 +00:00
|
|
|
#include <signal.h>
|
|
|
|
|
|
2007-03-08 08:17:25 +00:00
|
|
|
#ifdef HAVE_SETRLIMIT
|
2007-03-07 19:09:57 +00:00
|
|
|
#include <sys/resource.h>
|
|
|
|
|
#endif
|
|
|
|
|
|
2003-04-05 00:37:17 +00:00
|
|
|
int
|
|
|
|
|
main (int argc, char **argv)
|
|
|
|
|
{
|
2003-04-11 03:45:40 +00:00
|
|
|
char *p;
|
|
|
|
|
|
2007-03-08 08:17:25 +00:00
|
|
|
#if HAVE_SETRLIMIT
|
2003-04-11 03:45:40 +00:00
|
|
|
struct rlimit r = { 0, };
|
|
|
|
|
|
|
|
|
|
getrlimit (RLIMIT_CORE, &r);
|
|
|
|
|
r.rlim_cur = 0;
|
|
|
|
|
setrlimit (RLIMIT_CORE, &r);
|
2003-04-05 00:37:17 +00:00
|
|
|
|
|
|
|
|
raise (SIGSEGV);
|
2007-03-07 18:34:01 +00:00
|
|
|
#endif
|
* dbus/dbus-auth.c, dbus/dbus-connection.c, dbus/dbus-keyring.c,
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>)
2005-11-30 19:32:27 +00:00
|
|
|
p = NULL;
|
2003-04-05 00:37:17 +00:00
|
|
|
*p = 'a';
|
|
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
|
}
|