Print

Print



  Hi Wilko,

  Sorry for the problem.
  There was badly decremented counter in XrdClientUrlSet affecting
  cases with short file names. Also, some strlen calls in XrdClientString
  were unprotected. I've fixed this in CVS.
  I've tried your command on noric04 and other machines and it seems to
  work. 
  Let me know.

  Gerri


On Mon, 20 Jun 2005, Wilko Kroeger wrote:

> 
> Hello Fabrizio
> 
> I can't get the XrdClientAdmin to work. First I tried the perl interface
> but it crashed in the XrdClientAdmin::XrdInitialize (it never connected to
> xrootd). Because debugging wasn't easy for the perl bindings I build the
> TestXrdClient executable in XrdClient. It also fails and produces a core.
> The command is:
>   > ./bin/TestXrdClient  xrootd://datadevsol01:2094///
> 
> 050620 23:03:08 001 Xrd:  (C) 2004 SLAC XrdClientAdmin 0.3
> 050620 23:03:08 001 Xrd: TakeUrl parsing url:0
> 050620 23:03:08 001 Xrd: GetDomainToMatch GetHostName(noric04) returned name=noric04.slac.stanford.edu
> 050620 23:03:08 001 Xrd: GetDomainToMatch GetDomain(noric04) --> slac.stanford.edu
> 050620 23:03:08 001 Xrd: XrdClientUrlSet parsing: xrootd://datadevsol01:2094///
> 050620 23:03:08 001 Xrd: XrdClientUrlSet protocol: xrootd
> Segmentation fault (core dumped)
> 
> The core is in:
> /nfs/objyserv01/objy/databases/wilko/xrootd/test_20050620/clientAdmin/core.2954
> The binary is in
> ~wilko/bbtest/xrootd/t/xrootd/bin/i386_rhel30_dbg/TestXrdClient
> 
> The core file shows:
> 
> > gdb TestXrdClient core.2954
> 
> #0  0x00d1f503 in strlen () from /lib/tls/libc.so.6
> (gdb) where
> #0  0x00d1f503 in strlen () from /lib/tls/libc.so.6
> #1  0x08056bdc in XrdClientString::Assign(XrdClientString&) (this=0xbfff7770, str=@0xbfff79a0) at XrdClientString.hh:84
> #2  0x080568c5 in XrdClientString (this=0xbfff7770, str=@0xbfff79a0) at XrdClientString.hh:60
> #3  0x0805be89 in operator<<(std::ostream&, XrdClientString const&) (os=@0xbfff78c0, obj=@0xbfff79a0)
>     at XrdClientString.cc:119
> #4  0x080752b4 in XrdClientUrlSet (this=0xbfff7bf0, urls=
>       {data = 0x8276b50 "xrootd://datadevsol01:2094///", size = 29, capacity = 256}) at XrdClientUrlSet.cc:129
> #5  0x080585fd in XrdClientAdmin::Connect() (this=0x8276610) at XrdClientAdmin.cc:102
> #6  0x080556bd in XrdInitialize (url=0xbfffbf47 "xrootd://datadevsol01:2094///",
>     EnvValues=0x8080c88 "DebugLevel 3\nConnectTimeout 5") at XrdClientAdmin_c.cc:122
> #7  0x08054e1c in main (argc=2, argv=0xbfff7f44) at TestXrdClient.cc:22
> 
> It fails before any connection to a data server is made.
> 
> 
> Cheers,
>    Wilko
>