[augeas-devel] [PATCH 1/2] Reproduce segfault with bug_on
Francis Giraldeau
francis.giraldeau at gmail.com
Thu Dec 29 20:51:00 UTC 2011
---
src/get.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/src/get.c b/src/get.c
index 3aeb277..9b1a6c2 100644
--- a/src/get.c
+++ b/src/get.c
@@ -1203,6 +1203,14 @@ static struct skel *parse_rec(struct lens *lens, struct state *state,
static struct tree *get_lens(struct lens *lens, struct state *state) {
struct tree *tree = NULL;
+#ifdef ENABLE_DEBUG
+ /* simulate bug_on */
+ if (debugging("bug_on")) {
+ printf("bug_on\n");
+ ensure0(0, state->info);
+ }
+#endif
+
switch(lens->tag) {
case L_DEL:
tree = get_del(lens, state);
--
1.7.5.4
More information about the augeas-devel
mailing list