[Bug 288879] New: getaddrinfo returns duplicate results
https://bugzilla.novell.com/show_bug.cgi?id=288879 Summary: getaddrinfo returns duplicate results Product: openSUSE 10.3 Version: Alpha 5 Platform: Other OS/Version: Other Status: NEW Severity: Major Priority: P5 - None Component: Basesystem AssignedTo: pbaudis@novell.com ReportedBy: rhafer@novell.com QAContact: qa@suse.de Found By: --- I have a strange issue here that keeps the OpenLDAP testsuite from finishing successfully (and causing the build to fail). Hence severity == Major. OpenLDAP uses the getaddrinfo() to find out all the interfaces it should bind/listen() on. Under certain cirumstances the currently used glibc in STABLE returns duplicate entries and slapd fails to start getting EADDRINUSE upon the bind() call. I was able to create a small testcase that to reproduce the problem. I'll attach it to this bug. Note that the problem only seems to exist if I call gethostbyname_r before the call to getaddrinfo. Without it getaddrinfo seems to work as expected. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=288879#c1
--- Comment #1 from Ralf Haferkamp
https://bugzilla.novell.com/show_bug.cgi?id=288879#c4
Petr Baudis
https://bugzilla.novell.com/show_bug.cgi?id=288879#c5
--- Comment #5 from Ralf Haferkamp
https://bugzilla.novell.com/show_bug.cgi?id=288879#c6
Petr Baudis
https://bugzilla.novell.com/show_bug.cgi?id=288879#c7
--- Comment #7 from Ralf Haferkamp
Curious, what's the contents on /etc/hosts on the plain Beta2 installation? Look like the same as it was on 10.2. I'll attach the file.
NEEDINFO on pgajdos for his opinion about the /etc/hosts change.
Of course Urlich didn't reply to my mail. Well, who might have guessed that. :)
-- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=288879#c8
--- Comment #8 from Ralf Haferkamp
https://bugzilla.novell.com/show_bug.cgi?id=288879#c9
--- Comment #9 from Petr Gajdos
https://bugzilla.novell.com/show_bug.cgi?id=288879#c10
Petr Baudis
https://bugzilla.novell.com/show_bug.cgi?id=288879#c11
--- Comment #11 from Petr Baudis
https://bugzilla.novell.com/show_bug.cgi?id=288879#c12
--- Comment #12 from Ralf Haferkamp
Ralf, can I get access to that Beta2 installation where it works, please? It's a machine in my home office. But if you send me your public ssh key I can setup an account for you. Do you need root access?
-- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=288879#c13
--- Comment #13 from Petr Baudis
https://bugzilla.novell.com/show_bug.cgi?id=288879#c14
--- Comment #14 from Ralf Haferkamp
If you install the debuginfo packages I shouldn't need root access. I installed glibc-debuginfo, just tell me if you need more.
My public ssh key is
ssh-dss AAAAB3NzaC1kc3MAAACBAIjEU1pp/Vh1U0ksLoFjIAG99bMH/4xn7gDvWyZEhSzKhROJ0dJHdFCHq0uhHAEwDnDcrAu5gltnpQLnNI3WyTN8YxvBHXjSqkMqe8giDlANo8RYVPyrDP9MG6Ucdjmo+CsVjN6PlLnXdjgjEJmVdi7GuspcxT/yyV30n9KDt0SZAAAAFQCn8ixqql6/RjFwLuHCfnPPRkI1VQAAAIEAiCXlZo4AXxjZQsu5ucnz6Swosh8bNTs2fyifbVPnV4DQ3z91WA4mrzF9LHi5cbl265eTCrJr3Lef0H2KWGnPtrnkzFyDXoFfaW1o/qCMnb72Xun8ohFzewUILOPIzQ9OTcVT0e4vJj45a4c+bX6XwpdJoBjmqo1GZvH70TzX1S4AAACAFyCapNJC1c76Klb8RJdfog0uyt9XwLbz1xKHp4E58CTM3O3vr1olz8u64zITKzfoJ+ZcTgQM3U5p+PHRh2YkF6xZ9sagS9k9M6WsBDAKQ0LsxkAYH0l8i0LlAStWHy7f7zvbZ5PN72HRoH671nG3qof6Q3S/+4s41+k32Rm7H/M= pasky@machine
Ok, I'll send you the details by PM. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=288879#c15
Petr Baudis
https://bugzilla.novell.com/show_bug.cgi?id=288879
Petr Baudis
https://bugzilla.novell.com/show_bug.cgi?id=288879#c16
Andreas Jaeger
https://bugzilla.novell.com/show_bug.cgi?id=288879#c17
Thorsten Kukuk
https://bugzilla.novell.com/show_bug.cgi?id=288879#c18
--- Comment #18 from Petr Baudis
https://bugzilla.novell.com/show_bug.cgi?id=288879#c19
--- Comment #19 from Ralf Haferkamp
Ulrich doesn't want to tell anyone why he made it, apprently. :( I think (i) is unsustainable in longer term, But for 10.3 it should be doable.
and I guess (iv) is just the way to go long term - I haven't found in any RFCs or specs a requirement for unique results from getaddrinfo(). I'm just not completely comfortable with going (iv) for 10.3 already, on the other hand we've apparently seen no further breakages except of openldap testsuite and it's not probable that we would see more if we'd postpone this as post-10.3. As the problem only appears when explictly listening to the "localhost" interface it might also be that no one else tested this for other application on 10.3 yet.
So in the end I think openldap testsuite should just get fixed. It's not the testsuite that has this problem the testsuite just triggers it. If it needs to be fixed anywhere then that must be inside the server code. But I am very uncomfortable of changing the respective OpenLDAP code this late in the 10.3 timeframe.
-- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=288879#c20
--- Comment #20 from Petr Baudis
https://bugzilla.novell.com/show_bug.cgi?id=288879#c21
Stephan Kulow
https://bugzilla.novell.com/show_bug.cgi?id=288879#c22
--- Comment #22 from Petr Baudis
https://bugzilla.novell.com/show_bug.cgi?id=288879#c23
Petr Baudis
https://bugzilla.novell.com/show_bug.cgi?id=288879#c24
--- Comment #24 from Ralf Haferkamp
https://bugzilla.novell.com/show_bug.cgi?id=288879#c25
Ralf Haferkamp
https://bugzilla.novell.com/show_bug.cgi?id=288879#c26
--- Comment #26 from Ralf Haferkamp
https://bugzilla.novell.com/show_bug.cgi?id=288879#c27
--- Comment #27 from Ralf Haferkamp
https://bugzilla.novell.com/show_bug.cgi?id=288879#c28
Ralf Haferkamp
https://bugzilla.novell.com/show_bug.cgi?id=288879#c29
Ralf Haferkamp
https://bugzilla.novell.com/show_bug.cgi?id=288879
User rhafer@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=288879#c30
Ralf Haferkamp
participants (1)
-
bugzilla_noreply@novell.com