[Bug gold/10708] New: "out of file descriptors and couldn't close any" -- probably fd leak

2009-09-30 Thread bero at arklinux dot org
QtWebKit builds file with "normal" ld -- but trying to build it with gold fails,
resulting in

/usr/bin/ld: fatal error: out of file descriptors and couldn't close any

QtWebKit links 1623 object files plus 12 shared libraries. According to
/proc/sys/fs/file-max, it should be possible to have 370804 fds open

-- 
   Summary: "out of file descriptors and couldn't close any" --
probably fd leak
   Product: binutils
   Version: 2.21 (HEAD)
Status: NEW
  Severity: normal
  Priority: P2
 Component: gold
AssignedTo: ian at airs dot com
ReportedBy: bero at arklinux dot org
CC: bug-binutils at gnu dot org


http://sourceware.org/bugzilla/show_bug.cgi?id=10708

--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.


___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug gold/10708] "out of file descriptors and couldn't close any" -- probably fd leak

2009-09-30 Thread bero at arklinux dot org

--- Additional Comments From bero at arklinux dot org  2009-09-30 09:18 
---
Actually this is not caused by a shortage of system FDs, so something else is
causing gold to believe it's out of FDs:

# cat /proc/sys/fs/file-nr
64961037   370804


-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=10708

--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.


___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/9863] FAIL: Weak symbols in dynamic objects 1 (main test)

2009-09-30 Thread cvs-commit at gcc dot gnu dot org

--- Additional Comments From cvs-commit at gcc dot gnu dot org  2009-09-30 
13:15 ---
Subject: Bug 9863

CVSROOT:/cvs/src
Module name:src
Branch: binutils-2_20-branch
Changes by: ging...@sourceware.org  2009-09-30 13:15:24

Modified files:
ld : ChangeLog 
ld/emulparams  : armelf_linux.sh 

Log message:
2009-09-30  Matthias Klose  

PR ld/9863
* emulparams/armelf_linux.sh (DATA_START_SYMBOLS): Use PROVIDE
with __data_start.

Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/ld/ChangeLog.diff?cvsroot=src&only_with_tag=binutils-2_20-branch&r1=1.2039.2.10&r2=1.2039.2.11
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/ld/emulparams/armelf_linux.sh.diff?cvsroot=src&only_with_tag=binutils-2_20-branch&r1=1.18&r2=1.18.8.1



-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=9863

--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.


___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug gold/10708] "out of file descriptors and couldn't close any" -- probably fd leak

2009-09-30 Thread ian at airs dot com

--- Additional Comments From ian at airs dot com  2009-09-30 13:20 ---
Can you confirm that this was with the development version of gold?  There were
some bugs in this area fixed back February.

Otherwise, as far as I can see, this can only happen if open returns -1 with
errno set to ENFILE or EMFILE.  Please check ulimit -n.

If this is repeatable, is there any chance that you can debug it a bit?

-- 
   What|Removed |Added

 Status|NEW |ASSIGNED


http://sourceware.org/bugzilla/show_bug.cgi?id=10708

--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.


___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug gold/10708] "out of file descriptors and couldn't close any" -- probably fd leak

2009-09-30 Thread bero at arklinux dot org

--- Additional Comments From bero at arklinux dot org  2009-09-30 13:43 
---
Yes, this is on a fairly current build:

$ ld --version
GNU gold (Linux/GNU Binutils 2.20.51.0.1.20090905) 1.9
Copyright 2008 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or (at your option) a later version.
This program has absolutely no warranty.

ulimit -n is 1024, will try again after increasing it to 65536.

It is 100% reproducible, I can do a bit of debugging but don't have a lot of
time right now (insane day job schedule right now).

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=10708

--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.


___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug binutils/10711] New: ar/ranlib fake my .o files . C++ in autotools

2009-09-30 Thread sql7 at wp dot pl
`Packages:
debian/sid.

I write minimal app that cause errors:

test.cpp:
#include "test.hpp"
using namespace biox::priv;

argParser::argParser(int a,char **b)
{}

test.hpp:
namespace biox{
namespace priv{
class   argParser
{
public:
argParser(int,char**);
};
}}

test_e.cpp:
#include "test.hpp"

int main (int argc,char** argv)
{
biox::priv::argParser parser(argc,argv);
return 0;
}

test.cpp and test.hpp => libtest.a
libtest.a: rn -s
Archive index:
_ZN4biox4priv9argParserC2EiPPc in test.o
_ZN4biox4priv9argParserC1EiPPc in test.o

test.o:
0006 T _ZN4biox4priv9argParserC1EiPPc
 T _ZN4biox4priv9argParserC2EiPPc

error:
 
test_e.o: In function `main':
test_e.cpp:(.text+0x25): undefined reference to
`biox::priv::argParser::argParser(int, char**)'

test script for chceck:
#!/bin/bash
echo "Compiling directly ... "
g++ -o /dev/null test.cpp test_e.cpp && echo "OK"
echo "Compiling ranlib like automake ... "
g++ -c -o test.o test.cpp &&\
g++ -c -o test_e.o test_e.cpp &&\
ar cru libtest.a test.o &&\
ranlib libtest.a &&\
g++ -o /dev/null libtest.a test_e.o &&\
echo "OK"

how fix this in autotools ?

-- 
   Summary: ar/ranlib fake my .o files . C++ in autotools
   Product: binutils
   Version: 2.19
Status: NEW
  Severity: normal
  Priority: P2
 Component: binutils
AssignedTo: unassigned at sources dot redhat dot com
ReportedBy: sql7 at wp dot pl
CC: bug-binutils at gnu dot org


http://sourceware.org/bugzilla/show_bug.cgi?id=10711

--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.


___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug binutils/10704] as segfault in memory lookup intel syntax

2009-09-30 Thread hjl dot tools at gmail dot com

--- Additional Comments From hjl dot tools at gmail dot com  2009-09-30 
19:02 ---
A patch is posted at

https://mail.google.com/mail/?shva=1#all/1240c54aec8501cc

-- 
   What|Removed |Added

Version|2.19|2.21 (HEAD)


http://sourceware.org/bugzilla/show_bug.cgi?id=10704

--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.


___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug binutils/10704] as segfault in memory lookup intel syntax

2009-09-30 Thread hjl dot tools at gmail dot com

--- Additional Comments From hjl dot tools at gmail dot com  2009-09-30 
19:13 ---
Oops. The patch is at

http://sourceware.org/ml/binutils/2009-09/msg00742.html

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=10704

--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.


___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug binutils/10711] ar/ranlib fake my .o files . C++ in autotools

2009-09-30 Thread amodra at bigpond dot net dot au

--- Additional Comments From amodra at bigpond dot net dot au  2009-09-30 
22:38 ---
Not a bug.  ld only extracts an object from an archive if the object satisfies
undefined symbols at the point where ld searches the archive.  You linked
test_e.o *after* the archive.

-- 
   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||INVALID


http://sourceware.org/bugzilla/show_bug.cgi?id=10711

--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.


___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug binutils/10634] ld -r leaves gaps in output / overlapping sections

2009-09-30 Thread dave dot korn dot cygwin at gmail dot com

--- Additional Comments From dave dot korn dot cygwin at gmail dot com  
2009-10-01 02:38 ---
Resolved on mainline by 
http://sourceware.org/ml/binutils-cvs/2009-09/msg00315.html
and on 2-20 branch by
http://sourceware.org/ml/binutils-cvs/2009-09/msg00328.html


-- 
   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED


http://sourceware.org/bugzilla/show_bug.cgi?id=10634

--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.


___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug binutils/10714] New: windres when compiled on linux does not convert utf-8 -> utf-16 correctly

2009-09-30 Thread eehouse at eehouse dot org
windres as shipped in mingw32-binutils with ubuntu 8.04 and debian "testing",
and as built from 2.19.1 sources by me on both those systems, fails to detect
that iconv is available and so uses the dumb path converting utf-8 that inserts
a null byte after very character -- which works for ascii only.  I've fixed the
problem locally with a patch that changes how the presence of iconv is tested. 
I've also written a simple shell script that verifies the fix.  I assume once I
commit this bug I'll have an opportunity to add these as attachments.

-- 
   Summary: windres when compiled on linux does not convert utf-8 ->
utf-16 correctly
   Product: binutils
   Version: 2.19
Status: NEW
  Severity: normal
  Priority: P2
 Component: binutils
AssignedTo: unassigned at sources dot redhat dot com
ReportedBy: eehouse at eehouse dot org
CC: bug-binutils at gnu dot org


http://sourceware.org/bugzilla/show_bug.cgi?id=10714

--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.


___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug binutils/10714] windres when compiled on linux does not convert utf-8 -> utf-16 correctly

2009-09-30 Thread eehouse at eehouse dot org

--- Additional Comments From eehouse at eehouse dot org  2009-10-01 02:52 
---
Created an attachment (id=4240)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=4240&action=view)
invoke on linux system passing name of windres binary; uses hexdump

This Linux shell script will exit with 0 if the version of
i586-mingw32msvc-windres passed as its argument correctly converts utf-8 to
utf-16 in building a resource object, and will return non-0 if it does it
incorrectly.

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=10714

--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.


___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug binutils/10714] windres when compiled on linux does not convert utf-8 -> utf-16 correctly

2009-09-30 Thread eehouse at eehouse dot org

--- Additional Comments From eehouse at eehouse dot org  2009-10-01 02:56 
---
Created an attachment (id=4241)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=4241&action=view)
patch that fixes this bug

This patch fixes the bug, though perhaps not in the ideal way.  I've tested it
on windres built both for win32 and windows mobile application development. 
The patch was actually written to fix cegcc's copy of binutils, but it applies
cleanly and fixes the same problem in 2.19.1.

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=10714

--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.


___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils