[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Segmentation fault when loading a schema...



Quoting Johann Botha <joe@frogfoot.net>:

> Hi Turbo!
> 
> > This is a modified Debian GNU/Linux package, v2.0.14-1...
> > 
> > 
> > So, what might be wrong with the objectclass?
> 
> i had the same problem loading a class with a very long string like MAY in
> this class.
> 
> my slurpd segfaulted:
> http://www.openldap.org/its/index.cgi/Software%20Bugs?id=1343;expression=slurpd;page=2;user=guest;statetype=0

Oki, found the fix...

----- s n i p -----
diff -urN openldap-2.0.10/servers/slurpd/slurp.h openldap-2.0.10.new/servers/slurpd/slurp.h
--- openldap-2.0.10/servers/slurpd/config.c     Mon Sep 18 18:08:08 2000
+++ openldap-2.0.10.new/servers/slurpd/config.c Thu May 24 15:29:17 2001
@@ -34,7 +34,7 @@
 #include "slurp.h"
 #include "globals.h"

-#define MAXARGS        100
+#define MAXARGS        500

 /* Forward declarations */
 static void    add_replica LDAP_P(( char **, int ));
----- s n i p -----

-- 
 Turbo     __ _     Debian GNU     Unix _IS_ user friendly - it's just 
 ^^^^^    / /(_)_ __  _   ___  __  selective about who its friends are 
         / / | | '_ \| | | \ \/ /    Debian Certified Linux Developer  
  _ /// / /__| | | | | |_| |>  <  Turbo Fredriksson   turbo@bayour.com
  \\\/  \____/_|_| |_|\__,_/_/\_\         Gothenburg/Sweden