http://bugs.winehq.com/show_bug.cgi?id=1423
Summary: Crash when multiple threads call gethostbyname_r
Product: Wine
Version: CVS
Platform: PC
URL: http://www.proxomitron.org/
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: wine-loader
AssignedTo: wine-bugs(a)winehq.com
ReportedBy: prupe(a)myrealbox.com
I'm having trouble with this patch and Red Hat 9: <http://www.
winehq.com/hypermail/wine-cvs/2003/04/0224.html>. Multithreaded
apps started crashing deep down in the guts of gethostbyname_r
whenever it's called from multiple threads at once. The crash
typically looks like this:
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1118186784 (LWP 27326)]
0x4206c909 in fgets_unlocked () from /lib/tls/libc.so.6
(gdb) bt
#0 0x4206c909 in fgets_unlocked () from /lib/tls/libc.so.6
#1 0x4023e1e4 in _nss_files_gethostbyname_r () from
/lib/libnss_files.so.2
#2 0x420f2b3c in gethostbyname_r@@GLIBC_2.1.2 () from
/lib/tls/libc.so.6
#3 0x40cf77c7 in __ws_gethostbyname (name=0x402900cf "media.
monster.com",
dup_flag=1) at socket.c:3044
#4 0x40cf78f4 in WS_gethostbyname (name=0x402900cf "media.
monster.com")
at socket.c:3085
(gdb) info thr
* 8 Thread 1118186784 (LWP 27326) 0x4206c909 in fgets_unlocked
()
from /lib/tls/libc.so.6
7 Thread 1115761952 (LWP 27325) 0xffffe002 in ?? ()
6 Thread 1113337120 (LWP 27324) 0xffffe002 in ?? ()
5 Thread 1110912288 (LWP 27323) 0x004168ff in ?? ()
2 Thread 1100885280 (LWP 27314) 0xffffe002 in ?? ()
1 Thread 1074023232 (LWP 27305) 0xffffe002 in ?? ()
(gdb) thr 7
[Switching to thread 7 (Thread 1115761952 (LWP 27325))]#0
0xffffe002 in ?? ()
(gdb) bt
#0 0xffffe002 in ?? ()
#1 0x41c5f6d4 in send_dg () from /lib/libresolv.so.2
#2 0x41c5ecb5 in __libc_res_nsend () from /lib/libresolv.so.2
#3 0x41c5dc07 in __libc_res_nquery () from /lib/libresolv.so.2
#4 0x41c5e35b in __libc_res_nquerydomain () from /lib/libresolv.
so.2
#5 0x41c5df22 in __libc_res_nsearch () from /lib/libresolv.so.2
#6 0x40d0805f in _nss_dns_gethostbyname2_r () from
/lib/libnss_dns.so.2
#7 0x40d08293 in _nss_dns_gethostbyname_r () from
/lib/libnss_dns.so.2
#8 0x420f2b3c in gethostbyname_r@@GLIBC_2.1.2 () from
/lib/tls/libc.so.6
#9 0x40cf77c7 in __ws_gethostbyname (name=0x40295b4f "media.
monster.com",
dup_flag=1) at socket.c:3044
#10 0x40cf78f4 in WS_gethostbyname (name=0x40295b4f "media.
monster.com")
at socket.c:3085
Reversing patch #7969 seems to fix the problem. To reproduce the
crash, run the local web proxy Proxomitron <http://www.
proxomitron.org/> and try loading sites with lots of images. I'm
running Red Hat 9 with glibc 2.3.2-27.9 and the --with-nptl
configure option (wine fully rebuilt after installing RH9).
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://bugs.winehq.com/show_bug.cgi?id=1423>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://bugs.winehq.com/show_bug.cgi?id=1421
man(a)oceanography.ru changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |CLOSED
------- Additional Comments From man(a)oceanography.ru 2003-04-29 10:48 -------
Closing this irrelevant bug.
Gotta go bug(ger) flex.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://bugs.winehq.com/show_bug.cgi?id=1421>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://bugs.winehq.com/show_bug.cgi?id=1421
man(a)oceanography.ru changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
------- Additional Comments From man(a)oceanography.ru 2003-04-29 10:44 -------
I though about it and, immediately after posting this bugreport, tried flex-2.5.27.
The problem is in flex (I've reported a bug on their page), because flex-2.5.27
worked. Thus, this bugreport was irrelevant to wine.
Sorry.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://bugs.winehq.com/show_bug.cgi?id=1421>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://bugs.winehq.com/show_bug.cgi?id=1422
Summary: compile problems due to compilation of ncurses with
tinfo in separate library
Product: Wine
Version: CVS
Platform: PC
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: wine-programs
AssignedTo: wine-bugs(a)winehq.com
ReportedBy: man(a)oceanography.ru
Wine-20030408 compilation fails in a couple of places (missing
symbols), because of the way I compiled ncurses. Ncurses could be compiled
with --with-termlib option which build terminfo-stuff into separate library,
libtinfo. I've got such a build, but wine would only add "-lncurses" to it's
command line when compiling/linking. So these symbols are not found. Wine
configure should check whether some terminfo-stuff symbol (e.g., acs_map) is
in libtinfo or libncurses, and in the former case, use "-lncurses -ltinfo".
Manual adding of -ltinfo to makefile did the compile for me, but it should
be incorporated to configure.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://bugs.winehq.com/show_bug.cgi?id=1422>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://bugs.winehq.com/show_bug.cgi?id=1421
------- Additional Comments From mike(a)theoretic.com 2003-04-29 08:02 -------
Try downgrading flex.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://bugs.winehq.com/show_bug.cgi?id=1421>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://bugs.winehq.com/show_bug.cgi?id=1421
------- Additional Comments From man(a)oceanography.ru 2003-04-29 02:36 -------
Created an attachment (id=468)
make log (with errors), gzipped
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://bugs.winehq.com/show_bug.cgi?id=1421>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://bugs.winehq.com/show_bug.cgi?id=1421
------- Additional Comments From man(a)oceanography.ru 2003-04-29 02:35 -------
Created an attachment (id=467)
configure log file, gzipped
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://bugs.winehq.com/show_bug.cgi?id=1421>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://bugs.winehq.com/show_bug.cgi?id=1421
Summary: Can't compile wine-20030408
Product: Wine
Version: 20030318
Platform: PC
OS/Version: Linux
Status: UNCONFIRMED
Severity: blocker
Priority: P2
Component: wine-tools
AssignedTo: wine-bugs(a)winehq.com
ReportedBy: man(a)oceanography.ru
my system:
was slackware-8.1 at first
almost everything built from sources now:
glibc-2.3.2
gcc-3.2.3
flex-2.5.31
bison-1.875
wine won't compile on my machine
attached are config.log and the results of running make
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://bugs.winehq.com/show_bug.cgi?id=1421>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://bugs.winehq.com/show_bug.cgi?id=1420
julliard(a)winehq.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
------- Additional Comments From julliard(a)winehq.com 2003-04-28 18:34 -------
Nothing to do with nscd, it's the well known glibc problem.
Get the latest wine and build with the --with-nptl flag.
*** This bug has been marked as a duplicate of 1343 ***
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://bugs.winehq.com/show_bug.cgi?id=1420>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://bugs.winehq.com/show_bug.cgi?id=1343
julliard(a)winehq.com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |gwatson(a)linuxlogin.com
------- Additional Comments From julliard(a)winehq.com 2003-04-28 18:34 -------
*** Bug 1420 has been marked as a duplicate of this bug. ***
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://bugs.winehq.com/show_bug.cgi?id=1343>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.