OSX 10.8.5 : 2.1.1 agent crashes if HTTPS inventory

Bug #1426410 reported by Yvan Masson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OCS Inventory: Unified Unix Agent
New
Medium
mortheres

Bug Description

Hi,

First, thanks for ths usefull tool !
I am using OCSNG agent 2.1.1 on OSX 10.8.5. If I configure it to use HTTPS and then run it from command line, the agent crashes :

$ sudo /Applications/OCSNG.app/Contents/MacOS/OCSNG

2015-02-27 15:48:33.667 ocscontact[449:1207] Running ocscontact
could not find ParserDetails.ini in /Applications/OCSNG.app/Contents/Resources//lib//XML/SAX
dyld: lazy symbol binding failed: Symbol not found: _Perl_Tstack_sp_ptr
  Referenced from: /Applications/OCSNG.app/Contents/Resources//lib//auto/Net/SSLeay/SSLeay.bundle
  Expected in: dynamic lookup

dyld: Symbol not found: _Perl_Tstack_sp_ptr
  Referenced from: /Applications/OCSNG.app/Contents/Resources//lib//auto/Net/SSLeay/SSLeay.bundle
  Expected in: dynamic lookup

Here is what I get in the logs :

[Fri Feb 27 15:53:10 2015][debug] Ocsinventory unified agent for UNIX, Linux and MacOSX 2.1.1
[Fri Feb 27 15:53:10 2015][debug] Log system initialised (File)
[Fri Feb 27 15:53:10 2015][debug] --scan-homedirs missing. Don't scan user directories
[Fri Feb 27 15:53:10 2015][debug] accountconfig file: `/var/lib/ocsinventory-agent/http:__xxxxxxxx_ocsinventory/ocsinv.conf doesn't exist. I create an empty one
[Fri Feb 27 15:53:10 2015][debug] ocsinv.conf updated successfully
[Fri Feb 27 15:53:10 2015][debug] ocsinv.conf updated successfully
[Fri Feb 27 15:53:10 2015][debug] Accountinfo file: /var/lib/ocsinventory-agent/http:__xxxxxxxxx_ocsinventory/ocsinv.adm
[Fri Feb 27 15:53:10 2015][info] Accountinfo file doesn't exist. I create an empty one.
[Fri Feb 27 15:53:10 2015][debug] Invalid parameter while writing accountinfo file
[Fri Feb 27 15:53:10 2015][debug] Account info updated successfully
[Fri Feb 27 15:53:10 2015][debug] OCS Agent initialised
[Fri Feb 27 15:53:10 2015][debug] Turns hooks on for /etc/ocsinventory-agent/modules.conf
[Fri Feb 27 15:53:10 2015][debug] Calling handlers : `start_handler'
[Fri Feb 27 15:53:10 2015][debug] Compress::Zlib is available.
[Fri Feb 27 15:53:10 2015][debug] Calling handlers : `prolog_writer'
[Fri Feb 27 15:53:10 2015][debug] sending XML
[Fri Feb 27 15:53:10 2015][debug] sending: <?xml version="1.0" encoding="UTF-8"?>
<REQUEST>
  <DEVICEID>Mac-Pro-de-Celine-2015-02-27-15-53-10</DEVICEID>
  <QUERY>PROLOG</QUERY>
</REQUEST>

If I use HTTP with the same settings, the agent can send the inventory.

Regards,
YvanM

Frank (frank-bourdeau)
Changed in ocsinventory-unix-agent:
assignee: nobody → mortheres (mortheres)
importance: Undecided → Medium
milestone: none → 2.2rc1
Revision history for this message
Frank (frank-bourdeau) wrote :

Hi,

If you update Net::SSLeay perl package to latest version, have you this error?

Regards

Frank

Revision history for this message
Yvan Masson (yvan-masson) wrote :
Download full text (3.6 KiB)

Hi,

I am absolutely not used to Perl, and not much to OSX to, but I think I managed to upgrade Net::SSLeay package. Here is what I currently have on this computer:

$ perl -V
Summary of my perl5 (revision 5 version 12 subversion 4) configuration:

  Platform:
    osname=darwin, osvers=12.0, archname=darwin-thread-multi-2level
    uname='darwin b1026.apple.com 12.0 darwin kernel version 12.0.0: tue may 15 23:31:29 pdt 2012; root:xnu-2050.6.70~1release_x86_64 x86_64 '
    config_args='-ds -e -Dprefix=/usr -Dccflags=-g -pipe -Dldflags= -Dman3ext=3pm -Duseithreads -Duseshrplib -Dinc_version_list=none -Dcc=clang'
    hint=recommended, useposix=true, d_sigaction=define
    useithreads=define, usemultiplicity=define
    useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
    use64bitint=define, use64bitall=define, uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='clang', ccflags ='-arch i386 -arch x86_64 -g -pipe -fno-common -DPERL_DARWIN -fno-strict-aliasing -fstack-protector -I/usr/local/include',
    optimize='-Os',
    cppflags='-g -pipe -fno-common -DPERL_DARWIN -fno-strict-aliasing -fstack-protector -I/usr/local/include'
    ccversion='', gccversion='4.2.1 Compatible Apple Clang 4.0 (tags/Apple/clang-418.0.60)', gccosandvers=''
    intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
    ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
    alignbytes=8, prototype=define
  Linker and Libraries:
    ld='clang -mmacosx-version-min=10.8', ldflags ='-arch i386 -arch x86_64 -fstack-protector -L/usr/local/lib'
    libpth=/usr/local/lib /usr/lib
    libs=-ldbm -ldl -lm -lutil -lc
    perllibs=-ldl -lm -lutil -lc
    libc=, so=dylib, useshrplib=true, libperl=libperl.dylib
    gnulibc_version=''
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' '
    cccdlflags=' ', lddlflags='-arch i386 -arch x86_64 -bundle -undefined dynamic_lookup -L/usr/local/lib -fstack-protector'

Characteristics of this binary (from libperl):
  Compile-time options: MULTIPLICITY PERL_DONT_CREATE_GVSV
                        PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP USE_64_BIT_ALL
                        USE_64_BIT_INT USE_ITHREADS USE_LARGE_FILES
                        USE_PERLIO USE_PERL_ATOF USE_REENTRANT_API
  Locally applied patches:
 /Library/Perl/Updates/<version> comes before system perl directories
 installprivlib and installarchlib points to the Updates directory
  Built under darwin
  Compiled at Jun 20 2012 13:55:28
  @INC:
    /Library/Perl/5.12/darwin-thread-multi-2level
    /Library/Perl/5.12
    /Network/Library/Perl/5.12/darwin-thread-multi-2level
    /Network/Library/Perl/5.12
    /Library/Perl/Updates/5.12.4/darwin-thread-multi-2level
    /Library/Perl/Updates/5.12.4
    /System/Library/Perl/5.12/darwin-thread-multi-2level
    /System/Library/Perl/5.12
    /System/Library/Perl/Extras/5.12/darwin-thread-multi-2level
    /System/Library/Perl/Extras/5.12
    .

$ cpan
cpan[1]> i Net::SSLeay
Module id = Net::SSLeay
    CPAN_USERID MIKEM (Mike McCauley <mikem@airs...

Read more...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.