Bug 131170 - libnss_wins.so crashes elinks if used before DNS in host resolution
libnss_wins.so crashes elinks if used before DNS in host resolution
Status: CLOSED RAWHIDE
Product: Fedora
Classification: Fedora
Component: elinks (Show other bugs)
2
All Linux
medium Severity medium
: ---
: ---
Assigned To: Tim Waugh
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2004-08-28 01:11 EDT by Dan Egli
Modified: 2007-11-30 17:10 EST (History)
0 users

See Also:
Fixed In Version: 0.9.2-0.rc4.3
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2004-09-13 13:14:15 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Dan Egli 2004-08-28 01:11:37 EDT
Description of problem:
when using Samba dns module to resolve dns names via smb, elinks will
not locate any domain, and always dumps to screen. I cannot copy/paste
but an approximation is:

ap, Mimetypes files), Bookmarks, Cookies, Forms History, Global
History, URI rewrite


elinks[dump_backtrace+0x1d][0x80c748d]
elinks[0x8090674]
elinks[0x80909af]
/lib/tls/libc.so.6[0x791f38]
/lib/libnss_wins.so.2[0x3c31b0]
/lib/libnss_wins.so.2[init_                    4e]
/lib/libnss_wins.so.2[init_                   


and so on. I would prefer to not type the whole thing.


Version-Release number of selected component (if applicable):
elinks-0.9.1-1

How reproducible:
Always. Gaurenteed

Steps to Reproduce:
1. modify the hosts line of /etc/nsswitch.conf to have wins BEFORE dns
2. run Elinks
3. Watch the crash
  
Actual results:

Screen as shown above.

Expected results:

Should work.

Additional info:
Comment 1 Karel Zak 2004-09-13 10:56:49 EDT
This is already know "bug":
   http://bugzilla.elinks.or.cz/show_bug.cgi?id=453

elinks and samba define same function name "convert_string()", but
each does something other... and if elinks calls getaddrinfo() it
loads libnss_wins.so with this function into elinks and it crash.

Solutions: never use and export common names in samba, elinks and all
others projects!
Comment 2 Tim Waugh 2004-09-13 13:14:15 EDT
Thanks for the pointer.  Patch included in 0.9.2-0.rc4.3.

Note You need to log in before you can comment on or make changes to this bug.