public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/13097] New: gdb regression: Excessive linux-vdso.so.1 name
@ 2011-08-16 12:36 jan.kratochvil at redhat dot com
  2011-09-06  1:39 ` [Bug libc/13097] " drepper.fsp at gmail dot com
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: jan.kratochvil at redhat dot com @ 2011-08-16 12:36 UTC (permalink / raw)
  To: glibc-bugs

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

             Bug #: 13097
           Summary: gdb regression: Excessive linux-vdso.so.1 name
           Product: glibc
           Version: 2.14
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: drepper.fsp@gmail.com
        ReportedBy: jan.kratochvil@redhat.com
    Classification: Unclassified


Description of problem:
GDB has started to print on each `run':
warning: Could not load shared library symbols for linux-vdso.so.1.
Do you need "set solib-search-path" or "set sysroot"?

Version-Release number of selected component (if applicable):
FAIL: glibc-2.14.90-5.x86_64
PASS: glibc-2.14.90-4.x86_64
Guessing it is due to:
commit 73d7af4f4c2b394063cb0b3a33ee2b00b5ad80b4
    Implement LD_DEBUG=scopes

How reproducible:
Always.

Steps to Reproduce:
echo 'main(){}'|gcc -x c -;../gdb -nx ./a.out -ex start -ex 'info shared' -ex c
-ex q

Actual results:
Starting program: .../a.out 
warning: Could not load shared library symbols for linux-vdso.so.1.
Do you need "set solib-search-path" or "set sysroot"?
Temporary breakpoint 1, 0x0000000000400478 in main ()
>From                To                  Syms Read   Shared Object Library
0x00007ffff7ddbb20  0x00007ffff7df513a  Yes         /lib64/ld-linux-x86-64.so.2
                                        No          linux-vdso.so.1
0x00007ffff7a4adc0  0x00007ffff7b80050  Yes         /lib64/libc.so.6
Continuing.

Expected results:
Starting program: .../a.out 
Temporary breakpoint 1, 0x0000000000400478 in main ()
>From                To                  Syms Read   Shared Object Library
0x00007ffff7ddbb20  0x00007ffff7df4eda  Yes         /lib64/ld-linux-x86-64.so.2
0x00007ffff7a4ad30  0x00007ffff7b7ff60  Yes         /lib64/libc.so.6
Continuing.

Additional info:
glibc vdso had its name in the link map "" before.
I do not see why the name should be different when there is no corresponding
on-disk file for it.  Should GDB ignore for symbol resolution libraries with
literal path-less name "linux-vdso.so.1"?

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug libc/13097] gdb regression: Excessive linux-vdso.so.1 name
  2011-08-16 12:36 [Bug libc/13097] New: gdb regression: Excessive linux-vdso.so.1 name jan.kratochvil at redhat dot com
@ 2011-09-06  1:39 ` drepper.fsp at gmail dot com
  2012-08-14 12:54 ` jan.kratochvil at redhat dot com
                   ` (11 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: drepper.fsp at gmail dot com @ 2011-09-06  1:39 UTC (permalink / raw)
  To: glibc-bugs

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

Ulrich Drepper <drepper.fsp at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WORKSFORME

--- Comment #1 from Ulrich Drepper <drepper.fsp at gmail dot com> 2011-09-06 01:39:26 UTC ---
Why on earth would you think this is a problem in glibc?  Make gdb handle
whatever glibc does.  You must already have magic code in gdb to handle this
DSO.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug libc/13097] gdb regression: Excessive linux-vdso.so.1 name
  2011-08-16 12:36 [Bug libc/13097] New: gdb regression: Excessive linux-vdso.so.1 name jan.kratochvil at redhat dot com
  2011-09-06  1:39 ` [Bug libc/13097] " drepper.fsp at gmail dot com
@ 2012-08-14 12:54 ` jan.kratochvil at redhat dot com
  2012-11-24 19:10 ` jan.kratochvil at redhat dot com
                   ` (10 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: jan.kratochvil at redhat dot com @ 2012-08-14 12:54 UTC (permalink / raw)
  To: glibc-bugs

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

Jan Kratochvil <jan.kratochvil at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Blocks|                            |14466

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug libc/13097] gdb regression: Excessive linux-vdso.so.1 name
  2011-08-16 12:36 [Bug libc/13097] New: gdb regression: Excessive linux-vdso.so.1 name jan.kratochvil at redhat dot com
  2011-09-06  1:39 ` [Bug libc/13097] " drepper.fsp at gmail dot com
  2012-08-14 12:54 ` jan.kratochvil at redhat dot com
@ 2012-11-24 19:10 ` jan.kratochvil at redhat dot com
  2012-11-24 21:40 ` ldv at altlinux dot org
                   ` (9 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: jan.kratochvil at redhat dot com @ 2012-11-24 19:10 UTC (permalink / raw)
  To: glibc-bugs

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

Jan Kratochvil <jan.kratochvil at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jan.kratochvil at redhat
                   |                            |dot com

--- Comment #2 from Jan Kratochvil <jan.kratochvil at redhat dot com> 2012-11-24 19:09:46 UTC ---
For the record it is reverted in Fedora rpm glibc-fedora.patch:
In glibc GIT fedora/master branch:
commit 0c95ab64cb4ec0d22bb222647d9d20c7b4903e38
Author: Andreas Schwab <schwab@redhat.com>
Date:   Fri Oct 7 09:31:27 2011 +0200
-             l->l_libname->name = l->l_name = memcpy (copy, dsoname, len);
+             l->l_libname->name = memcpy (copy, dsoname, len);
+             if (GLRO(dl_debug_mask))
+               l->l_name = copy;

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug libc/13097] gdb regression: Excessive linux-vdso.so.1 name
  2011-08-16 12:36 [Bug libc/13097] New: gdb regression: Excessive linux-vdso.so.1 name jan.kratochvil at redhat dot com
                   ` (2 preceding siblings ...)
  2012-11-24 19:10 ` jan.kratochvil at redhat dot com
@ 2012-11-24 21:40 ` ldv at altlinux dot org
  2013-05-27 21:10 ` naesten at gmail dot com
                   ` (8 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: ldv at altlinux dot org @ 2012-11-24 21:40 UTC (permalink / raw)
  To: glibc-bugs

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

Dmitry V. Levin <ldv at altlinux dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ldv at altlinux dot org

--- Comment #3 from Dmitry V. Levin <ldv at altlinux dot org> 2012-11-24 21:40:16 UTC ---
That patch(In reply to comment #2)
> For the record it is reverted in Fedora rpm glibc-fedora.patch:

Also for the record, it was later factored out from glibc-fedora.patch as
http://pkgs.fedoraproject.org/cgit/glibc.git/tree/glibc-fedora-elf-rh737223.patch?id=fb633eaa14bb4c2b35f26c6ec2f4d829f27819ac

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug libc/13097] gdb regression: Excessive linux-vdso.so.1 name
  2011-08-16 12:36 [Bug libc/13097] New: gdb regression: Excessive linux-vdso.so.1 name jan.kratochvil at redhat dot com
                   ` (3 preceding siblings ...)
  2012-11-24 21:40 ` ldv at altlinux dot org
@ 2013-05-27 21:10 ` naesten at gmail dot com
  2013-05-28 20:02 ` carlos at redhat dot com
                   ` (7 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: naesten at gmail dot com @ 2013-05-27 21:10 UTC (permalink / raw)
  To: glibc-bugs

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

Samuel Bronson <naesten at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
                 CC|                            |naesten at gmail dot com
         Resolution|WORKSFORME                  |---

--- Comment #4 from Samuel Bronson <naesten at gmail dot com> ---
This is still an issue; how could listing a library under a valid but
non-existent filename not confuse tools?

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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

* [Bug libc/13097] gdb regression: Excessive linux-vdso.so.1 name
  2011-08-16 12:36 [Bug libc/13097] New: gdb regression: Excessive linux-vdso.so.1 name jan.kratochvil at redhat dot com
                   ` (4 preceding siblings ...)
  2013-05-27 21:10 ` naesten at gmail dot com
@ 2013-05-28 20:02 ` carlos at redhat dot com
  2013-06-09  3:26 ` naesten at gmail dot com
                   ` (6 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: carlos at redhat dot com @ 2013-05-28 20:02 UTC (permalink / raw)
  To: glibc-bugs

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

Carlos O'Donell <carlos at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |WAITING
                 CC|                            |carlos at redhat dot com

--- Comment #5 from Carlos O'Donell <carlos at redhat dot com> ---
(In reply to Samuel Bronson from comment #4)
> This is still an issue; how could listing a library under a valid but
> non-existent filename not confuse tools?

We aren't likely to get to work on this any time soon. We don't have enough
resources.

The code in question is now in elf/setup-vdso.h, and I would be more than happy
to review a patch that fixes this bug.

You'd need to run the testsuite on master to make sure you don't introduce any
regressions and then show that LD_DEBUG=all still works, and that the debugger
which was previously reporting bogus warnings doesn't report any more bogus
warnings.

The best possible patch avoids this hack:
+             if (GLRO(dl_debug_mask))
+               l->l_name = copy;

and instead adjusts the debug code to inform the user that this DSO has no
associated file e.g. a virtual dso.

Notes:
http://sourceware.org/glibc/wiki/Contribution%20checklist

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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

* [Bug libc/13097] gdb regression: Excessive linux-vdso.so.1 name
  2011-08-16 12:36 [Bug libc/13097] New: gdb regression: Excessive linux-vdso.so.1 name jan.kratochvil at redhat dot com
                   ` (5 preceding siblings ...)
  2013-05-28 20:02 ` carlos at redhat dot com
@ 2013-06-09  3:26 ` naesten at gmail dot com
  2014-02-07  2:57 ` [Bug dynamic-link/13097] " jsm28 at gcc dot gnu.org
                   ` (5 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: naesten at gmail dot com @ 2013-06-09  3:26 UTC (permalink / raw)
  To: glibc-bugs

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

Samuel Bronson <naesten at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|drepper.fsp at gmail dot com       |unassigned at sourceware dot org

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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

* [Bug dynamic-link/13097] gdb regression: Excessive linux-vdso.so.1 name
  2011-08-16 12:36 [Bug libc/13097] New: gdb regression: Excessive linux-vdso.so.1 name jan.kratochvil at redhat dot com
                   ` (6 preceding siblings ...)
  2013-06-09  3:26 ` naesten at gmail dot com
@ 2014-02-07  2:57 ` jsm28 at gcc dot gnu.org
  2014-02-16 17:50 ` jackie.rosen at hushmail dot com
                   ` (4 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: jsm28 at gcc dot gnu.org @ 2014-02-07  2:57 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=13097

Joseph Myers <jsm28 at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|libc                        |dynamic-link

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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

* [Bug dynamic-link/13097] gdb regression: Excessive linux-vdso.so.1 name
  2011-08-16 12:36 [Bug libc/13097] New: gdb regression: Excessive linux-vdso.so.1 name jan.kratochvil at redhat dot com
                   ` (7 preceding siblings ...)
  2014-02-07  2:57 ` [Bug dynamic-link/13097] " jsm28 at gcc dot gnu.org
@ 2014-02-16 17:50 ` jackie.rosen at hushmail dot com
  2014-02-20  7:21 ` kalvdans at gmail dot com
                   ` (3 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: jackie.rosen at hushmail dot com @ 2014-02-16 17:50 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=13097

Jackie Rosen <jackie.rosen at hushmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jackie.rosen at hushmail dot com

--- Comment #6 from Jackie Rosen <jackie.rosen at hushmail dot com> ---
*** Bug 260998 has been marked as a duplicate of this bug. ***
Seen from the domain http://volichat.com
Page where seen: http://volichat.com/adult-chat-rooms
Marked for reference. Resolved as fixed @bugzilla.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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

* [Bug dynamic-link/13097] gdb regression: Excessive linux-vdso.so.1 name
  2011-08-16 12:36 [Bug libc/13097] New: gdb regression: Excessive linux-vdso.so.1 name jan.kratochvil at redhat dot com
                   ` (8 preceding siblings ...)
  2014-02-16 17:50 ` jackie.rosen at hushmail dot com
@ 2014-02-20  7:21 ` kalvdans at gmail dot com
  2014-03-24  1:24 ` ovidiu.b13 at gmail dot com
                   ` (2 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: kalvdans at gmail dot com @ 2014-02-20  7:21 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=13097

chn <kalvdans at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kalvdans at gmail dot com

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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

* [Bug dynamic-link/13097] gdb regression: Excessive linux-vdso.so.1 name
  2011-08-16 12:36 [Bug libc/13097] New: gdb regression: Excessive linux-vdso.so.1 name jan.kratochvil at redhat dot com
                   ` (9 preceding siblings ...)
  2014-02-20  7:21 ` kalvdans at gmail dot com
@ 2014-03-24  1:24 ` ovidiu.b13 at gmail dot com
  2014-05-28 19:41 ` schwab at sourceware dot org
  2014-06-27 12:25 ` fweimer at redhat dot com
  12 siblings, 0 replies; 14+ messages in thread
From: ovidiu.b13 at gmail dot com @ 2014-03-24  1:24 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=13097

Ovidiu-Florin Bogdan <ovidiu.b13 at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ovidiu.b13 at gmail dot com

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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

* [Bug dynamic-link/13097] gdb regression: Excessive linux-vdso.so.1 name
  2011-08-16 12:36 [Bug libc/13097] New: gdb regression: Excessive linux-vdso.so.1 name jan.kratochvil at redhat dot com
                   ` (10 preceding siblings ...)
  2014-03-24  1:24 ` ovidiu.b13 at gmail dot com
@ 2014-05-28 19:41 ` schwab at sourceware dot org
  2014-06-27 12:25 ` fweimer at redhat dot com
  12 siblings, 0 replies; 14+ messages in thread
From: schwab at sourceware dot org @ 2014-05-28 19:41 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=13097

Andreas Schwab <schwab at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|jackie.rosen at hushmail dot com   |

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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

* [Bug dynamic-link/13097] gdb regression: Excessive linux-vdso.so.1 name
  2011-08-16 12:36 [Bug libc/13097] New: gdb regression: Excessive linux-vdso.so.1 name jan.kratochvil at redhat dot com
                   ` (11 preceding siblings ...)
  2014-05-28 19:41 ` schwab at sourceware dot org
@ 2014-06-27 12:25 ` fweimer at redhat dot com
  12 siblings, 0 replies; 14+ messages in thread
From: fweimer at redhat dot com @ 2014-06-27 12:25 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=13097

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
              Flags|                            |security-

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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

end of thread, other threads:[~2014-06-27 12:25 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-16 12:36 [Bug libc/13097] New: gdb regression: Excessive linux-vdso.so.1 name jan.kratochvil at redhat dot com
2011-09-06  1:39 ` [Bug libc/13097] " drepper.fsp at gmail dot com
2012-08-14 12:54 ` jan.kratochvil at redhat dot com
2012-11-24 19:10 ` jan.kratochvil at redhat dot com
2012-11-24 21:40 ` ldv at altlinux dot org
2013-05-27 21:10 ` naesten at gmail dot com
2013-05-28 20:02 ` carlos at redhat dot com
2013-06-09  3:26 ` naesten at gmail dot com
2014-02-07  2:57 ` [Bug dynamic-link/13097] " jsm28 at gcc dot gnu.org
2014-02-16 17:50 ` jackie.rosen at hushmail dot com
2014-02-20  7:21 ` kalvdans at gmail dot com
2014-03-24  1:24 ` ovidiu.b13 at gmail dot com
2014-05-28 19:41 ` schwab at sourceware dot org
2014-06-27 12:25 ` fweimer at redhat dot com

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).