Re: gnugk segmentation faults

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Alexander,

the PTLib development version is undergoing major change right now. I
would suggest you use PTLib version 2.8.4 until things stabelize. Using
H323Plus from CVS is ok.

Regards,
Jan

-- 
Jan Willamowius, Founder of the GNU Gatekeeper Project
EMail  : jan@xxxxxxxxxxxxxx
Website: http://www.gnugk.org
Support: http://www.willamowius.com/gnugk-support.html


Alexander Kolesnik wrote:
> Hi,
> 
> OS: CentOS 5.6 x86
> Kernel:  2.6.18-238.19.1.el5
> 
> GnuGK was built from the sources using the following instruction:
> http://www.gnugk.org/gnugk-manual-14.html
> 
> 1. During comilation several errors like the following one came up:
> h323util.cxx: In function 'PString GetGUIDString(const H225_GloballyUniqueID&, bool)':
> h323util.cxx:286: error: call of overloaded 'PString(PString::ConversionType, long int, int)' is ambiguous
> /home/user/gnugk/build/ptlib/include/ptlib/pstring.h:323: note: candidates are: PString::PString(PString::ConversionType, double, unsigned int)
> /home/user/gnugk/build/ptlib/include/ptlib/pstring.h:318: note:                 PString::PString(PString::ConversionType, PInt64, unsigned int)
> /home/user/gnugk/build/ptlib/include/ptlib/pstring.h:310: note:                 PString::PString(PString::ConversionType, const char*, ...) <near match>
> 
> Changing (long) to (PInt64) in the line 286 of h323util.cxx (and in
> other errored files) allowed me to continue with the build.
> 
> 2. After the successful complilation:
> # ./gnugk -h
> Options:
>   -r  --routed       : Use gatekeeper routed call signaling
>   -rr --h245routed   : Use H.245 control channel routed
>   -d  --direct       : Use direct endpoint call signaling
>   -i  --interface IP : The IP that the gatekeeper listen to
>   -l  --timetolive n : Time to live for client registration
>   -b  --bandwidth n  : Specify the total bandwidth
>   -u  --user name    : Run as this user
>   -t  --trace        : Set trace verbosity
>   -o  --output file  : Write trace to this file
>   -c  --config file  : Specify which config file to use
>   -s  --section sec  : Specify which main section to use in the config file
>       --pid file     : Specify the pid file
>       --core n       : Enable core dumps (with max size of n bytes)
>   -h  --help         : Show this message
> 
> Segmentation fault
> 
> 3. After building with the debuginfo (make debugnoshared)
> 
> # ./gnugk
> WARNING: Config file /home/user/gnugk/build/openh323gk/obj_linux_x86_d_s/gatekeeper.ini doesn't exist! Use the -c switch to specify the config file.
> 
> 2011/07/20 20:02:22.203 0                 gk.cxx(570)   WARNING: This doesn't look like a GNU Gatekeeper configuration file!
> GNU Gatekeeper with ID 'OpenH323GK' started
> Gatekeeper(GNU) Version(2.3.5) Ext(pthreads=1,radius=1,mysql=1,pgsql=1,firebird=1,odbc=1,sqlite=1,large_fdset=0,crypto/ssl=1,h46018=1,h46023=1,ldap=0,ssh=0) H323Plus(1.22.2) PTLib(2.11.0) Build(Jul 20 2011, 19:39:55) Sys(Linux i686 2.6.18-238.19.1.el5)
> 
> Listen on xx.yy.112.68,127.0.0.1
> 
> This program is free software; you can redistribute it and/or
> modify it under the terms of the GNU General Public License version 2.
> We also explicitly grant the right to link this code
> with the OpenH323/H323Plus and OpenSSL library.
> 
> This program contains H.460.18 and H.460.19 technology patented by Tandberg
> and licensed to the GNU Gatekeeper Project.
> 
> This program contains H.460.23 and H.460.24 technology
> licensed to the GNU Gatekeeper Project.
> 
> 
> Shutting down gatekeeper . . . done
> 2011/07/20 20:02:32.305 0             assert.cxx(108)   PWLib   Assertion fail: Null pointer reference, file /home/user/gnugk/build/ptlib/include/ptlib/lists.h, line 360, Error=2
> Assertion fail: Null pointer reference, file /home/user/gnugk/build/ptlib/include/ptlib/lists.h, line 360, Error=2
> 
> <A>bort, <C>ore dump, <D>ebug? d
> GNU gdb (GDB) Red Hat Enterprise Linux (7.0.1-32.el5_6.2)
> Copyright (C) 2009 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
> This is free software: you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
> and "show warranty" for details.
> This GDB was configured as "i386-redhat-linux-gnu".
> For bug reporting instructions, please see:
> <http://www.gnu.org/software/gdb/bugs/>...
> Reading symbols from /home/user/gnugk/build/openh323gk/obj_linux_x86_d_s/gnugk...done.
> Attaching to program: /home/user/gnugk/build/openh323gk/obj_linux_x86_d_s/gnugk, process 2247
> 
> warning: .dynamic section for "/usr/lib/libodbc.so.1" is not at the expected address
> 
> warning: difference appears to be caused by prelink, adjusting expectations
> Reading symbols from /lib/libpthread.so.0...(no debugging symbols found)...done.
> [Thread debugging using libthread_db enabled]
> [New Thread 0xb7e70b90 (LWP 2256)]
> [New Thread 0xb7f74b90 (LWP 2248)]
> Loaded symbols for /lib/libpthread.so.0
> Reading symbols from /lib/librt.so.1...(no debugging symbols found)...done.
> Loaded symbols for /lib/librt.so.1
> Reading symbols from /usr/lib/libsasl2.so.2...(no debugging symbols found)...done.
> Loaded symbols for /usr/lib/libsasl2.so.2
> Reading symbols from /lib/libssl.so.6...(no debugging symbols found)...done.
> Loaded symbols for /lib/libssl.so.6
> Reading symbols from /lib/libcrypto.so.6...(no debugging symbols found)...done.
> Loaded symbols for /lib/libcrypto.so.6
> Reading symbols from /lib/libdl.so.2...(no debugging symbols found)...done.
> Loaded symbols for /lib/libdl.so.2
> Reading symbols from /usr/lib/libz.so.1...(no debugging symbols found)...done.
> Loaded symbols for /usr/lib/libz.so.1
> Reading symbols from /lib/libexpat.so.0...(no debugging symbols found)...done.
> Loaded symbols for /lib/libexpat.so.0
> Reading symbols from /usr/lib/libodbc.so.1...(no debugging symbols found)...done.
> Loaded symbols for /usr/lib/libodbc.so.1
> Reading symbols from /lib/libresolv.so.2...(no debugging symbols found)...done.
> Loaded symbols for /lib/libresolv.so.2
> Reading symbols from /usr/lib/libstdc++.so.6...(no debugging symbols found)...done.
> Loaded symbols for /usr/lib/libstdc++.so.6
> Reading symbols from /lib/libm.so.6...(no debugging symbols found)...done.
> Loaded symbols for /lib/libm.so.6
> Reading symbols from /lib/libgcc_s.so.1...(no debugging symbols found)...done.
> Loaded symbols for /lib/libgcc_s.so.1
> Reading symbols from /lib/libc.so.6...(no debugging symbols found)...done.
> Loaded symbols for /lib/libc.so.6
> Reading symbols from /lib/ld-linux.so.2...(no debugging symbols found)...done.
> Loaded symbols for /lib/ld-linux.so.2
> Reading symbols from /lib/libcrypt.so.1...(no debugging symbols found)...done.
> Loaded symbols for /lib/libcrypt.so.1
> Reading symbols from /usr/lib/libgssapi_krb5.so.2...(no debugging symbols found)...done.
> Loaded symbols for /usr/lib/libgssapi_krb5.so.2
> Reading symbols from /usr/lib/libkrb5.so.3...(no debugging symbols found)...done.
> Loaded symbols for /usr/lib/libkrb5.so.3
> Reading symbols from /lib/libcom_err.so.2...(no debugging symbols found)...done.
> Loaded symbols for /lib/libcom_err.so.2
> Reading symbols from /usr/lib/libk5crypto.so.3...(no debugging symbols found)...done.
> Loaded symbols for /usr/lib/libk5crypto.so.3
> Reading symbols from /usr/lib/libkrb5support.so.0...(no debugging symbols found)...done.
> Loaded symbols for /usr/lib/libkrb5support.so.0
> Reading symbols from /lib/libkeyutils.so.1...(no debugging symbols found)...done.
> Loaded symbols for /lib/libkeyutils.so.1
> Reading symbols from /lib/libselinux.so.1...(no debugging symbols found)...done.
> Loaded symbols for /lib/libselinux.so.1
> Reading symbols from /lib/libsepol.so.1...(no debugging symbols found)...done.
> Loaded symbols for /lib/libsepol.so.1
> Reading symbols from /lib/libnss_files.so.2...(no debugging symbols found)...done.
> Loaded symbols for /lib/libnss_files.so.2
> Reading symbols from /lib/libnss_dns.so.2...(no debugging symbols found)...done.
> Loaded symbols for /lib/libnss_dns.so.2
> 0x00a9d402 in __kernel_vsyscall ()
> (gdb) bt
> #0  0x00a9d402 in __kernel_vsyscall ()
> #1  0x006a885b in waitpid () from /lib/libc.so.6
> #2  0x0064d19b in do_system () from /lib/libc.so.6
> #3  0x0064d532 in system () from /lib/libc.so.6
> #4  0x007b1ead in system () from /lib/libpthread.so.0
> #5  0x08609817 in PAssertAction (c=100,
>     msg=0x95d3be4 "Assertion fail: Null pointer reference, file /home/user/gnugk/build/ptlib/include/ptlib/lists.h, line 360, Error=2") at ptlib/unix/assert.cxx:68
> #6  0x086099e5 in PAssertFunc (
>     msg=0x95d3be4 "Assertion fail: Null pointer reference, file /home/user/gnugk/build/ptlib/include/ptlib/lists.h, line 360, Error=2") at ptlib/unix/assert.cxx:150
> #7  0x085f4275 in PAssertFunc (file=0x86b50b4 "/home/user/gnugk/build/ptlib/include/ptlib/lists.h", line=360, className=0x0,
>     msg=0x86ba581 "Null pointer reference") at ptlib/common/object.cxx:147
> #8  0x085f4331 in PAssertFunc (file=0x86b50b4 "/home/user/gnugk/build/ptlib/include/ptlib/lists.h", line=360, className=0x0,
>     msg=PNullPointerReference) at ptlib/common/object.cxx:124
> #9  0x085c3fc3 in PList<PNotifierTemplate<int> >::iterator_base::Next (this=0xbf9515c8)
>     at /home/user/gnugk/build/ptlib/include/ptlib/lists.h:360
> #10 0x085c3ff4 in PList<PNotifierTemplate<int> >::iterator::operator++ (this=0xbf9515c8)
>     at /home/user/gnugk/build/ptlib/include/ptlib/lists.h:377
> #11 0x085bedf7 in PPluginManager::OnShutdown (this=0x86c6f20) at ptlib/common/pluginmgr.cxx:418
> #12 0x085c01d5 in PluginLoaderStartup::OnShutdown (this=0x95beb88) at ptlib/common/pluginmgr.cxx:517
> #13 0x085d34db in PProcess::PreShutdown () at ptlib/common/osutils.cxx:1631
> #14 0x085ae5b7 in PProcess::~PProcess (this=0x95c6528, __in_chrg=<value optimized out>) at ptlib/unix/tlibthrd.cxx:280
> #15 0x0817d251 in Gatekeeper::~Gatekeeper (this=0x95c6528, __in_chrg=<value optimized out>) at gk.h:42
> #16 0x0817ca5e in main (argc=1, argv=0xbf951764, envp=0xbf95176c) at gk.cxx:39
> (gdb)
> 
> Any help would be kindly appreciated!
> 
> Best regards,
> Alexander

------------------------------------------------------------------------------
10 Tips for Better Web Security
Learn 10 ways to better secure your business today. Topics covered include:
Web security, SSL, hacker attacks & Denial of Service (DoS), private keys,
security Microsoft Exchange, secure Instant Messaging, and much more.
http://www.accelacomm.com/jaw/sfnl/114/51426210/
_______________________________________________________

Posting: mailto:Openh323gk-users@xxxxxxxxxxxxxxxxxxxxx
Archive: http://sourceforge.net/mailarchive/forum.php?forum_name=openh323gk-users
Unsubscribe: http://lists.sourceforge.net/lists/listinfo/openh323gk-users
Homepage: http://www.gnugk.org/


[Index of Archives]     [SIP]     [Open H.323]     [Gnu Gatekeeper]     [Asterisk PBX]     [ISDN Cause Codes]     [Yosemite News]

  Powered by Linux