[ldapvi] cb_set_readline_default on Solaris 10
Ryan Lovett
ryan at stat.berkeley.edu
Thu Feb 12 22:17:20 CET 2009
With ldapvi 1.7 on Solaris 10 linking to libcurses or the SFW libncurses,
ldapvi segfaults in cb_set_readline_default in misc.c. With:
--- misc.c.orig 2007-05-05 03:17:26.000000000 -0700
+++ misc.c 2009-02-12 12:08:30.173952000 -0800
@@ -337,7 +337,9 @@
static int
cb_set_readline_default()
{
+ printf("cb_set_readline_default()\n");
rl_insert_text(readline_default);
+ printf("cb_set_readline_default(): done\n");
return 0;
}
and then:
--- Login
Type M-h for help on key bindings.
cb_set_readline_default()
cb_set_readline_default(): done
Filter or DN: [snip]
cb_set_readline_default()
Segmentation Fault (core dumped)
I changed the function to just return 0 immediately without invoking
rl_insert_text and ldapvi behaved normally.
Ryan
More information about the ldapvi
mailing list