search for: gethostbyname_r

Displaying 20 results from an estimated 36 matches for "gethostbyname_r".

2008 Jul 07
2
copyin having secondary effects.
...ying to read the h_alias array and all the entries it points to however every time I copyin an entry pointed to by the first entry in teh h_alias array the other entries in the array get corrupted. So I have ended up with this script: #!/usr/bin/dtrace -CZs #include <netdb.h> pid$target::gethostbyname_r:return { self->r = (struct hostent *)copyin(arg1, sizeof (struct hostent)); printf("%d Host: %s", pid, copyinstr((uintptr_t)self->r->h_name)); printf(" h_aliases %p ", self->r->h_aliases); self->a = (char **)copyin((uintptr_t)self->r->h_aliases, 4*s...
2006 Oct 30
3
Why does gethostbyname_r appear to leak?
I am running a very simple multithreaded program (TestThread.C) which calls gethostbyname_r in several threads. My analysis of this program with both truss and DTrace suggest that is has a small leak. However, if I alter the program to have many more threads and run for a lot longer it never runs out of memory and does not carry on growing. Can anybody explain what I am missing in my anal...
2015 Jan 25
0
SmartOS: nss_wrapper: conflicting types
...figure output attached). [2006/3812] Compiling lib/nss_wrapper/nss_wrapper.c ../lib/nss_wrapper/nss_wrapper.c:2405:5: error: conflicting types for 'gethostby name_r' In file included from ../lib/nss_wrapper/nss_wrapper.c:65:0: /usr/include/netdb.h:238:17: note: previous declaration of 'gethostbyname_r' was here The prototype in Samba source is: int gethostbyname_r(const char *name, struct hostent *ret, char *buf, size_t buflen, struct hostent **result, int *h_errnop) Whereas the prototype in the system header is: struct hostent...
2004 Aug 06
1
IceCast 1.3.11: Segmentation Violation in Linux
...ent work around is to "strace -o /dev/null ./icecast" Linux poseidon 2.2.15 #1 SMP Wed Mar 21 16:48:40 CST 2001 i686 unknown libc version is 5.4.46 Also, in order for icecast to even compile on my system, I had to modify ice_resolv.c. Apparently, youre expecting an extra parameter in gethostbyname_r and gethostbyaddr_r. Diffs follow: 170c170 < if (gethostbyname_r (hostname, res, buffer, buflen, error) >= 0) --- > if (gethostbyname_r (hostname, res, buffer, buflen, &res, error) >= 0) 181c181 < if ((out = gethostbyaddr_r (host, hostlen, AF_INET, he, buffer...
2004 Feb 23
1
ssh + ldap issues
...et the following output in the logfile: ------ Feb 23 18:32:36 tsthvy1-did1 modprobe: modprobe: Can't locate module net-pf-10 Feb 23 18:32:40 tsthvy1-did1 sshd: PAM unable to dlopen(/lib/security/pam_ldap.so) Feb 23 18:32:40 tsthvy1-did1 sshd: PAM [dlerror: /lib/security/pam_ldap.so: symbol gethostbyname_r, version GLIBC_2.1.2 not defined in file libc.so.6 with link time reference] Feb 23 18:32:40 tsthvy1-did1 sshd: PAM adding faulty module: /lib/security/pam_ldap.so Feb 23 18:32:42 tsthvy1-did1 sshd(pam_unix)[17825]: check pass; user unknown Feb 23 18:32:42 tsthvy1-did1 sshd(pam_unix)[17825]: aut...
2017 Mar 02
12
[4.0.0 Release] Release Candidate 3 has been tagged
Hello testers, 4.0.0-rc3 was just tagged from the branch at r296762. This is a release candidate in the real sense: if no major issues show up with this one, it is the version that will be released. Please let me know if you find any issues, including in release notes or documentation, which will be on the pre-release web site later today. Please build, test, and upload binaries to the sftp
2009 Feb 17
0
Bits from the Samba packaging team in Debian
...ntu). As some of you might know, Debian 5.0 "lenny" was released on February 14th. Samba provided in lenny in the 3.2.5 version plus two fixes from 3.2.6: * Fix segfault whan accessign some NAS devices running old versions of Samba Closes: #500129 * Fix process crush when using gethostbyname_r in several threads Closes: #509101, #510450 As usual with the policy in Debian wrt stable releases, we will stick to that version and only security fixes should go in Lenny. However, we are considering to fix a few issues that could be considered close to "release critical", some of...
2004 May 17
0
openbsd compilation fails for recent checkout of v1-0_stable
...oll.o dlfcn.o ASTLINK=-Wl,-dynamic SOLINK=-dynamic -bundle -undefined suppress -force_flat_namespace +else +ifeq (${OSARCH},OpenBSD) +ASTLINK=-Wl +SOLINK=-shared -Xlinker -x else ASTLINK=-Wl,-E SOLINK=-shared -Xlinker -x endif +endif Also, for OpenBSD, asterisk's use of gethostbyname_r doesn't work out of the box, so needs to follow FreeBSD's fixi, by changing the #if defined(__FreeBSD__) to #if defined(__FreeBSD__) || defined (__OpenBSD__) Also, it is likely that PROC needs to be set manually for your architecture in the top level Makefile. Thanks, Tor
2004 May 25
0
Compiling on OSX 10.3.3
...it so that the 7.2.0 was replaced by a 7.3.0 - for the latest Darwin kernel) I still had issues with my system requiring endian.h and byteswap.h . Being ignorant of most things, after much trouble, I commented out these lines and lo-and-behold, it compiled (mostly fine). I got errors with the gethostbyname_r function during linking - but I found the definition of this in the source for FreeBSD and commented out the lines that prevented it from compiling. It compiled fine, and works relatively well too. I find the audio a bit choppy, but I think that has a lot to do with my system (I was running on...
2012 Aug 16
0
libfget ported to CentOS 6.2?
...ems. The original maintainer of that package is not currently available and I tried to post to that list but no one answered. I wonder if anyone here has needed to use this and had success in building and running it. There are bugs in the socket programming (getsock* calls and select()). I replaced gethostbyname_r with getaddrinfo, but I can't figure out why a select() call is failing. I am using the lastest version: fget-1.3.3.tar.gz (libfget.so). Thanks, Dirce
2007 May 15
1
smbd hangs on solaris
...ally, pstack <pidofsmbd>, gives: febbc4a0 lwp_park (0, 0, 0) febb676c cond_wait_queue (fe811018, fee267b8, 0, 0, 0, 0) + 28 feb58ad4 nss_get_backend_u (ffbc3cdc, fe810a08, 0, 0, fe810a10, fe811018) + 124 feb59484 nss_search (4, febe77dc, febec8ac, ffbc3cf8, 1, febe4278) + e8 feda76dc _switch_gethostbyname_r (ffbc5f9c, 3943bc, 3943d0, 2120, fee31990, feda2bfc) + 50 feda300c _door_gethostbyname_r (ffbc5f9c, 3943bc, 3943d0, 2120, fee31990, ffbc5f9c) + 108 feda63cc _get_hostserv_inetnetdir_byname (0, ffbc5e9c, ffbc5e94, fedc7a70, ffbc5e2c, 0) + 844 feda2488 gethostbyname_r (ffbc5f9c, 3943bc, 3943d0, 2120,...
2004 Aug 06
1
I declare ices stable
...changed it to every iteration of 24k all the way up to 128k again. (ie. 24k, 48k, 96k...) If there is more information needed please ask and I will provide. Server_info: Runtime Configuration: Using nanosleep() as sleep method Using 64 chunks of 8192 bytes for client backlog Using linux own gethostbyname_r() and getaddrbyname_r(), which is good. Using posix signal interface to block all sign Thanks, Natr Thomas Kirk wrote: > On Fri, Jul 20, 2001 at 11:13:18AM -0400, AJones! wrote: > >> Where can you get libshout? Ours chokes at roughly 40 users and then >> can't gain access t...
2004 Aug 06
4
Icecast & Liveice b.s.
...untime Configuration: [03/Apr/2001:17:59:20] Using nanosleep() as sleep method [03/Apr/2001:17:59:20] Using posix signal interface to block all signals in threads that don't want them [03/Apr/2001:17:59:20] Using 64 chunks of 8192 bytes for client backlog [03/Apr/2001:17:59:20] Using linux own gethostbyname_r() and getaddrbyname_r(), which is good. [03/Apr/2001:17:59:20] System can create max 1024 threads [03/Apr/2001:17:59:20] Starting Admin Console Thread... -> [03/Apr/2001:17:59:20] Starting main connection handler... -> [03/Apr/2001:17:59:20] Listening on host 192.168.1.3... -> [03/Apr/200...
2004 May 28
0
Signal 11 on winbindd start: memory leak in malloc
...+0x101) [0x80c2491] #1 /usr/sbin/winbindd [0x80b06a8] #2 /lib/libc.so.6 [0x4018c658] #3 /lib/libc.so.6(malloc+0x93) [0x401d3ed3] #4 /lib/libc.so.6 [0x401c2e8f] #5 /lib/libc.so.6(fopen+0x2f) [0x401c2f4f] #6 /lib/libnss_files.so.2 [0x4039e275] #7 /lib/libnss_files.so.2(_nss_files_gethostbyname_r+0x37) [0x4039e747] #8 /lib/libc.so.6(gethostbyname_r+0x10b) [0x4024d96b] #9 /lib/libc.so.6(gethostbyname+0xf6) [0x4024d2e6] #10 /usr/sbin/winbindd(interpret_addr+0x88) [0x80c1bf8] #11 /usr/sbin/winbindd(interpret_addr2+0x11) [0x80c1cb1] #12 /usr/sbin/winbindd [0x8107075] #13 /usr/...
2008 Jan 08
2
[LLVMdev] Adding ClamAV to the llvm testsuite (long)
...ime_r takes 3 arguments */ > /* #undef HAVE_CTIME_R_3 */ > > /* Define to 1 if you have the <dlfcn.h> header file. */ > /* #define HAVE_DLFCN_H 1 */ > > /* Define to 1 if fseeko (and presumably ftello) exists and is > declared. */ > #define HAVE_FSEEKO 1 > > /* gethostbyname_r takes 3 arguments */ > /* #undef HAVE_GETHOSTBYNAME_R_3 */ > > /* gethostbyname_r takes 5 arguments */ > /* #undef HAVE_GETHOSTBYNAME_R_5 */ > > /* gethostbyname_r takes 6 arguments */ > /* #undef HAVE_GETHOSTBYNAME_R_6 */ > > /* Define to 1 if you have the `getpagesize...
2007 Dec 18
0
[LLVMdev] Adding ClamAV to the llvm testsuite (long)
Chris Lattner wrote: > One way to do this is to add a "cut down" version of the app to the > test suite. I disabled optional features in clamav-config.h > >> 2. GPL license. Chris? > > Any open source license that allows unrestricted redistribution is > fine in llvm-test Ok, I have created a script that automatically checks out ClamAV 0.92-stable source code
2004 Aug 06
2
I declare ices stable
7/20/01 8:49 AM thomas@arkena.com >> What's the trick. My server will hardly serve 4 people without > >Hmm no trick? We dont use ices though we use libshout which is the >liberay that ices use to serv mp3s to icecast. Where can you get libshout? Ours chokes at roughly 40 users and then can't gain access to the admin sections. >> skipping and eventually dropping
2004 Aug 06
0
Icecast & Liveice b.s.
...; [03/Apr/2001:17:59:20] Using nanosleep() as sleep method > [03/Apr/2001:17:59:20] Using posix signal interface to block all signals in > threads that don't want them > [03/Apr/2001:17:59:20] Using 64 chunks of 8192 bytes for client backlog > [03/Apr/2001:17:59:20] Using linux own gethostbyname_r() and > getaddrbyname_r(), which is good. > [03/Apr/2001:17:59:20] System can create max 1024 threads > [03/Apr/2001:17:59:20] Starting Admin Console Thread... > -> [03/Apr/2001:17:59:20] Starting main connection handler... > -> [03/Apr/2001:17:59:20] Listening on host 192.168...
2009 Apr 26
4
1.6.1: menuselect has problems with x86_64 ??
1.6.1 svn 190575: CC="cc" CXX="g++" LD="" AR="" RANLIB="" CFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" menuselect make[1]: Entering directory `/home/asterisk/rpmbuild/BUILD/asterisk-1.6.1/menuselect' gcc -m64 -march=native -mtune=native -floop-interchange -floop-strip-mine -floop-block -c -o
2023 Jul 20
0
Asterisk Release 18.19.0
....github: Change title of AsteriskReleaser job - asterisk.c: Fix option warning for remote console. - .github: Don't add cherry-pick reminder if it's already present - .github: Fix quoting in PROpenedOrUpdated - .github: Add cherry-pick reminder to new PRs - configure: fix test code to match gethostbyname_r prototype. - res_pjsip_pubsub.c: Use pjsip version for pending NOTIFY check. (#76) - res_sorcery_memory_cache.c: Fix memory leak - xml.c: Process XML Inclusions recursively. - .github: Tweak improvement issue type language. - .github: Tweak new feature language, and move feature requests elsewhere....