summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2001-12-03 00:21:51 +0000
committerAndrew Tridgell <tridge@samba.org>2001-12-03 00:21:51 +0000
commit61f68bde8242b454881cb73a7d52c2020e5dbaf2 (patch)
tree684a88bf79ef59bc0facb51769e93af0ee63df7f /source3
parente101224d831904f35303682c095e0c6aef8de5df (diff)
downloadsamba-61f68bde8242b454881cb73a7d52c2020e5dbaf2.tar.gz
samba-61f68bde8242b454881cb73a7d52c2020e5dbaf2.tar.bz2
samba-61f68bde8242b454881cb73a7d52c2020e5dbaf2.zip
re-enabled insure backtrace, calling /usr/bin/backtrace
(This used to be commit 21a366afbe9dc5f4878f97bb03525452bbbc4e41)
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/util.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source3/lib/util.c b/source3/lib/util.c
index ca99f985ed..a8e2bcb7f5 100644
--- a/source3/lib/util.c
+++ b/source3/lib/util.c
@@ -2101,7 +2101,7 @@ void data_blob_clear_free(DATA_BLOB *d)
data_blob_free(d);
}
-#ifdef __INSURE__XX_DISABLED_XX
+#ifdef __INSURE__
/*******************************************************************
This routine is a trick to immediately catch errors when debugging
@@ -2113,7 +2113,9 @@ int _Insure_trap_error(int a1, int a2, int a3, int a4, int a5, int a6)
static int (*fn)();
int ret;
char pidstr[10];
- pstring cmd = "/usr/X11R6/bin/xterm -display :0 -T Panic -n Panic -e /bin/sh -c 'cat /tmp/ierrs.*.%d ; gdb /proc/%d/exe %d'";
+ /* you can get /usr/bin/backtrace from
+ http://samba.org/ftp/unpacked/junkcode/backtrace */
+ pstring cmd = "/usr/bin/backtrace %d";
slprintf(pidstr, sizeof(pidstr)-1, "%d", sys_getpid());
pstring_sub(cmd, "%d", pidstr);