public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* debuginfo Dwarf Error
@ 2017-07-02  6:23 Marco Atzeri
  2017-07-02  9:54 ` JonY
  0 siblings, 1 reply; 11+ messages in thread
From: Marco Atzeri @ 2017-07-02  6:23 UTC (permalink / raw)
  To: cygwin

Hi,
while extracting debuginfo on 32 bit gdal dll

$ ls -s cyggdal-20.dll
103M cyggdal-20.dll

cygport randomly (moon phase?) is stacked waiting for nm
to extract all the data due to Dwarf Error

$ nm -l cyggdal-20.dll
66e7ab80 b .bssBFD: Dwarf Error: Could not find abbrev number 4838.

On 64bit the issue does not arise and nm does its job in 40 seconds,
for the 32 bit after 8 hours it could be still running.
Changing binutils from 2.25 to 2.28 makes no difference.

The only explanation of the error I found is:
https://gcc.gnu.org/ml/gcc/2002-11/msg00756.html

but I do not see a solution for my case.

Any hint really appreciated
Marco






--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: debuginfo Dwarf Error
  2017-07-02  6:23 debuginfo Dwarf Error Marco Atzeri
@ 2017-07-02  9:54 ` JonY
  2017-07-03 10:22   ` Marco Atzeri
  0 siblings, 1 reply; 11+ messages in thread
From: JonY @ 2017-07-02  9:54 UTC (permalink / raw)
  To: cygwin


[-- Attachment #1.1: Type: text/plain, Size: 908 bytes --]

On 07/02/2017 06:22 AM, Marco Atzeri wrote:
> Hi,
> while extracting debuginfo on 32 bit gdal dll
> 
> $ ls -s cyggdal-20.dll
> 103M cyggdal-20.dll
> 
> cygport randomly (moon phase?) is stacked waiting for nm
> to extract all the data due to Dwarf Error
> 
> $ nm -l cyggdal-20.dll
> 66e7ab80 b .bssBFD: Dwarf Error: Could not find abbrev number 4838.
> 
> On 64bit the issue does not arise and nm does its job in 40 seconds,
> for the 32 bit after 8 hours it could be still running.
> Changing binutils from 2.25 to 2.28 makes no difference.
> 
> The only explanation of the error I found is:
> https://gcc.gnu.org/ml/gcc/2002-11/msg00756.html
> 
> but I do not see a solution for my case.
> 
> Any hint really appreciated
> Marco
> 

Can you try if -gdwarf-X like
https://gcc.gnu.org/onlinedocs/gcc/Debugging-Options.html?

Or even -ggdb to see if it changes anything.




[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 858 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: debuginfo Dwarf Error
  2017-07-02  9:54 ` JonY
@ 2017-07-03 10:22   ` Marco Atzeri
  2017-07-03 13:32     ` JonY
  0 siblings, 1 reply; 11+ messages in thread
From: Marco Atzeri @ 2017-07-03 10:22 UTC (permalink / raw)
  To: cygwin

On 02/07/2017 11:53, JonY wrote:
> On 07/02/2017 06:22 AM, Marco Atzeri wrote:
>> Hi,
>> while extracting debuginfo on 32 bit gdal dll
>>
>> $ ls -s cyggdal-20.dll
>> 103M cyggdal-20.dll
>>
>> cygport randomly (moon phase?) is stacked waiting for nm
>> to extract all the data due to Dwarf Error
>>
>> $ nm -l cyggdal-20.dll
>> 66e7ab80 b .bssBFD: Dwarf Error: Could not find abbrev number 4838.
>>
>
> Can you try if -gdwarf-X like
> https://gcc.gnu.org/onlinedocs/gcc/Debugging-Options.html?
>
> Or even -ggdb to see if it changes anything.
>

Hi Jon,

unfortunately "-ggdb" was already used and "-gdwarf" makes
no difference.
Documentation says that default should be "-gdwarf-4" so it seems
I need to look for other solution.

I wonder if it is a side effect of file size and
limitation of 32bit architecture.

Regards
Marco




--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: debuginfo Dwarf Error
  2017-07-03 10:22   ` Marco Atzeri
@ 2017-07-03 13:32     ` JonY
  2017-07-03 15:41       ` Marco Atzeri
  0 siblings, 1 reply; 11+ messages in thread
From: JonY @ 2017-07-03 13:32 UTC (permalink / raw)
  To: cygwin


[-- Attachment #1.1: Type: text/plain, Size: 1058 bytes --]

On 07/03/2017 10:22 AM, Marco Atzeri wrote:
> On 02/07/2017 11:53, JonY wrote:
>> On 07/02/2017 06:22 AM, Marco Atzeri wrote:
>>> Hi,
>>> while extracting debuginfo on 32 bit gdal dll
>>>
>>> $ ls -s cyggdal-20.dll
>>> 103M cyggdal-20.dll
>>>
>>> cygport randomly (moon phase?) is stacked waiting for nm
>>> to extract all the data due to Dwarf Error
>>>
>>> $ nm -l cyggdal-20.dll
>>> 66e7ab80 b .bssBFD: Dwarf Error: Could not find abbrev number 4838.
>>>
>>
>> Can you try if -gdwarf-X like
>> https://gcc.gnu.org/onlinedocs/gcc/Debugging-Options.html?
>>
>> Or even -ggdb to see if it changes anything.
>>
> 
> Hi Jon,
> 
> unfortunately "-ggdb" was already used and "-gdwarf" makes
> no difference.
> Documentation says that default should be "-gdwarf-4" so it seems
> I need to look for other solution.
> 
> I wonder if it is a side effect of file size and
> limitation of 32bit architecture.
> 

I don't really have anything else to suggest, how big is the dll anyway
(how many exports, how many bytes is size)?



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 858 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: debuginfo Dwarf Error
  2017-07-03 13:32     ` JonY
@ 2017-07-03 15:41       ` Marco Atzeri
  2017-07-04 21:17         ` Marco Atzeri
  0 siblings, 1 reply; 11+ messages in thread
From: Marco Atzeri @ 2017-07-03 15:41 UTC (permalink / raw)
  To: cygwin

On 03/07/2017 15:31, JonY wrote:
> On 07/03/2017 10:22 AM, Marco Atzeri wrote:
>> On 02/07/2017 11:53, JonY wrote:
>>> On 07/02/2017 06:22 AM, Marco Atzeri wrote:
>>>> Hi,
>>>> while extracting debuginfo on 32 bit gdal dll
>>>>
>>>> $ ls -s cyggdal-20.dll
>>>> 103M cyggdal-20.dll


>
> I don't really have anything else to suggest, how big is the dll anyway
> (how many exports, how many bytes is size)?

103 MBbytes.

As the issue is only on 32bit and not on 64bit,
it could be a counter limitation

I am trying to test again with  gcc 6.3.0-2

Thanks
Marco



--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: debuginfo Dwarf Error
  2017-07-03 15:41       ` Marco Atzeri
@ 2017-07-04 21:17         ` Marco Atzeri
  2017-07-05 22:50           ` JonY
  0 siblings, 1 reply; 11+ messages in thread
From: Marco Atzeri @ 2017-07-04 21:17 UTC (permalink / raw)
  To: cygwin

On 03/07/2017 17:41, Marco Atzeri wrote:
> On 03/07/2017 15:31, JonY wrote:
>> On 07/03/2017 10:22 AM, Marco Atzeri wrote:
>>> On 02/07/2017 11:53, JonY wrote:
>>>> On 07/02/2017 06:22 AM, Marco Atzeri wrote:
>>>>> Hi,
>>>>> while extracting debuginfo on 32 bit gdal dll
>>>>>
>>>>> $ ls -s cyggdal-20.dll
>>>>> 103M cyggdal-20.dll
>
>
>>
>> I don't really have anything else to suggest, how big is the dll anyway
>> (how many exports, how many bytes is size)?
>
> 103 MBbytes.
>
> As the issue is only on 32bit and not on 64bit,
> it could be a counter limitation
>
> I am trying to test again with  gcc 6.3.0-2
>
> Thanks
> Marco
>

Jon,
I noted that the problem was already present sometime ago
https://cygwin.com/ml/cygwin/2015-10/msg00122.html

and supposed to be solved.
However it seems arisen again

  $ cat getcwd.c
#include <limits.h>
#include <unistd.h>

int
main ()
{
    char buf[PATH_MAX];
    getcwd (buf, PATH_MAX);
}

$ gcc getcwd.c

$ nm -l a.exe

nm: Dwarf Error: Could not find abbrev number 85.
....


Using latest test versions make no difference

$ cygcheck -c gcc-core binutils
Cygwin Package Information
Package              Version        Status
binutils             2.28-2         OK
gcc-core             6.3.0-2        OK


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: debuginfo Dwarf Error
  2017-07-04 21:17         ` Marco Atzeri
@ 2017-07-05 22:50           ` JonY
  2017-07-06  6:53             ` Marco Atzeri
  0 siblings, 1 reply; 11+ messages in thread
From: JonY @ 2017-07-05 22:50 UTC (permalink / raw)
  To: cygwin


[-- Attachment #1.1: Type: text/plain, Size: 894 bytes --]

On 07/04/2017 09:16 PM, Marco Atzeri wrote:
> 
> Jon,
> I noted that the problem was already present sometime ago
> https://cygwin.com/ml/cygwin/2015-10/msg00122.html
> 
> and supposed to be solved.
> However it seems arisen again
> 
>  $ cat getcwd.c
> #include <limits.h>
> #include <unistd.h>
> 
> int
> main ()
> {
>    char buf[PATH_MAX];
>    getcwd (buf, PATH_MAX);
> }
> 
> $ gcc getcwd.c
> 
> $ nm -l a.exe
> 
> nm: Dwarf Error: Could not find abbrev number 85.
> ....
> 
> 
> Using latest test versions make no difference
> 
> $ cygcheck -c gcc-core binutils
> Cygwin Package Information
> Package              Version        Status
> binutils             2.28-2         OK
> gcc-core             6.3.0-2        OK
> 

Aha a small test case, I was wondering how to trigger it. Now I can
actually get the binutils COFF/PE devs to look at it.



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 858 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: debuginfo Dwarf Error
  2017-07-05 22:50           ` JonY
@ 2017-07-06  6:53             ` Marco Atzeri
  2017-07-06 13:41               ` JonY
  0 siblings, 1 reply; 11+ messages in thread
From: Marco Atzeri @ 2017-07-06  6:53 UTC (permalink / raw)
  To: cygwin

On 06/07/2017 00:49, JonY wrote:
> On 07/04/2017 09:16 PM, Marco Atzeri wrote:
>>
>> Jon,
>> I noted that the problem was already present sometime ago
>> https://cygwin.com/ml/cygwin/2015-10/msg00122.html
>>
>> and supposed to be solved.
>> However it seems arisen again
>>

>>
>
> Aha a small test case, I was wondering how to trigger it. Now I can
> actually get the binutils COFF/PE devs to look at it.
>
>

binutils-2.28.90 has not such issue
and it is much faster than 2.28

https://cygwin.com/ml/cygwin/2017-07/msg00082.html

Can you double check and confirm ?

Regards
Marco


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: debuginfo Dwarf Error
  2017-07-06  6:53             ` Marco Atzeri
@ 2017-07-06 13:41               ` JonY
  2017-07-06 16:30                 ` Marco Atzeri
  0 siblings, 1 reply; 11+ messages in thread
From: JonY @ 2017-07-06 13:41 UTC (permalink / raw)
  To: cygwin


[-- Attachment #1.1: Type: text/plain, Size: 724 bytes --]

On 07/06/2017 06:53 AM, Marco Atzeri wrote:
> On 06/07/2017 00:49, JonY wrote:
>> On 07/04/2017 09:16 PM, Marco Atzeri wrote:
>>>
>>> Jon,
>>> I noted that the problem was already present sometime ago
>>> https://cygwin.com/ml/cygwin/2015-10/msg00122.html
>>>
>>> and supposed to be solved.
>>> However it seems arisen again
>>>
> 
>>>
>>
>> Aha a small test case, I was wondering how to trigger it. Now I can
>> actually get the binutils COFF/PE devs to look at it.
>>
>>
> 
> binutils-2.28.90 has not such issue
> and it is much faster than 2.28
> 
> https://cygwin.com/ml/cygwin/2017-07/msg00082.html
> 
> Can you double check and confirm ?
> 

Sure I'll check it out over the weekends.




[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 858 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: debuginfo Dwarf Error
  2017-07-06 13:41               ` JonY
@ 2017-07-06 16:30                 ` Marco Atzeri
  2017-07-09  4:29                   ` JonY
  0 siblings, 1 reply; 11+ messages in thread
From: Marco Atzeri @ 2017-07-06 16:30 UTC (permalink / raw)
  To: cygwin

On 06/07/2017 15:40, JonY wrote:
> On 07/06/2017 06:53 AM, Marco Atzeri wrote:
>> On 06/07/2017 00:49, JonY wrote:
>>> On 07/04/2017 09:16 PM, Marco Atzeri wrote:
>>>>
>>>> Jon,

>>
>> binutils-2.28.90 has not such issue
>> and it is much faster than 2.28
>>
>> https://cygwin.com/ml/cygwin/2017-07/msg00082.html
>>
>> Can you double check and confirm ?
>>
>
> Sure I'll check it out over the weekends.

Thanks Jon,

I forgot to mention that I used 6.3.0-2 for the build

Regards
Marco

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: debuginfo Dwarf Error
  2017-07-06 16:30                 ` Marco Atzeri
@ 2017-07-09  4:29                   ` JonY
  0 siblings, 0 replies; 11+ messages in thread
From: JonY @ 2017-07-09  4:29 UTC (permalink / raw)
  To: cygwin


[-- Attachment #1.1: Type: text/plain, Size: 666 bytes --]

On 07/06/2017 04:29 PM, Marco Atzeri wrote:
> On 06/07/2017 15:40, JonY wrote:
>> On 07/06/2017 06:53 AM, Marco Atzeri wrote:
>>> On 06/07/2017 00:49, JonY wrote:
>>>> On 07/04/2017 09:16 PM, Marco Atzeri wrote:
>>>>>
>>>>> Jon,
> 
>>>
>>> binutils-2.28.90 has not such issue
>>> and it is much faster than 2.28
>>>
>>> https://cygwin.com/ml/cygwin/2017-07/msg00082.html
>>>
>>> Can you double check and confirm ?
>>>
>>
>> Sure I'll check it out over the weekends.
> 
> Thanks Jon,
> 
> I forgot to mention that I used 6.3.0-2 for the build
> 

Confirmed fixed in git master version, hopefully I uploaded it right
this time as -3.





[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 858 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2017-07-09  4:29 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-02  6:23 debuginfo Dwarf Error Marco Atzeri
2017-07-02  9:54 ` JonY
2017-07-03 10:22   ` Marco Atzeri
2017-07-03 13:32     ` JonY
2017-07-03 15:41       ` Marco Atzeri
2017-07-04 21:17         ` Marco Atzeri
2017-07-05 22:50           ` JonY
2017-07-06  6:53             ` Marco Atzeri
2017-07-06 13:41               ` JonY
2017-07-06 16:30                 ` Marco Atzeri
2017-07-09  4:29                   ` JonY

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).