public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug mi/12229] New: -file-exec-and-symbols hangs if path is too long
@ 2010-11-18 16:17 egor at sun dot com
  2010-11-18 20:08 ` [Bug mi/12229] " egor at sun dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: egor at sun dot com @ 2010-11-18 16:17 UTC (permalink / raw)
  To: gdb-prs

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

           Summary: -file-exec-and-symbols hangs if path is too long
           Product: gdb
           Version: 7.2
            Status: NEW
          Severity: critical
          Priority: P2
         Component: mi
        AssignedTo: unassigned@sourceware.org
        ReportedBy: egor@sun.com


On solaris gdb hangs if file path for -file-exec-and-symbols is too long.
reproduced with 6.8 and 7.2.
in our case path was ~240 symbols long, see Netbeans bug:
https://netbeans.org/bugzilla/show_bug.cgi?id=192095

pstack:
fea44a15 pollsys  (8513c60, 1, 0, 0)
 fe9e8804 poll     (8513c60, 1, ffffffff, 0, fea3fbce, 218) + 4c
 0818bd51 gdb_wait_for_event (80c0000, 83c004b, 0, 0, 0, 8047738) + 71
 0818c2f5 gdb_do_one_event (0, 1, 8047738, 8187862) + 101
 0818786f catch_errors (818c1f4, 0, 833d2a4, 6) + 47
 0818b71b start_event_loop (84207e8, 8047780, 80477a8, 818786f, 0, 1) + 1b
 080bbea3 captured_command_loop (0, 1, 80477a8, 8187862) + b
 0818786f catch_errors (80bbe98, 0, 833d2a4, 6, 0, 0) + 47
 080bc5ba captured_main (80478b0, feffb804, 8047868, 8187862) + 6ea
 0818786f catch_errors (80bbed0, 80478b0, 833d2a4, 6) + 47
 080bcbe7 gdb_main (80478b0, 80479a0, 80478a8, feffb804, 80478c0, fefc47a4) +
23
 080bbca5 main     (3, 80478ec, 80478fc, 82cfad0, 0, 0) + 3d
 080bbb0b _start   (3, 8047a08, 8047a2a, 8047a38, 0, 8047a3b) + 83

-- 
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] 5+ messages in thread

* [Bug mi/12229] -file-exec-and-symbols hangs if path is too long
  2010-11-18 16:17 [Bug mi/12229] New: -file-exec-and-symbols hangs if path is too long egor at sun dot com
@ 2010-11-18 20:08 ` egor at sun dot com
  2011-01-10 21:40 ` tromey at redhat dot com
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: egor at sun dot com @ 2010-11-18 20:08 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #1 from Egor <egor at sun dot com> 2010-11-18 16:17:10 UTC ---
it hangs when command length is exactly the same as char input buffer size...
(looks like 256)

-- 
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] 5+ messages in thread

* [Bug mi/12229] -file-exec-and-symbols hangs if path is too long
  2010-11-18 16:17 [Bug mi/12229] New: -file-exec-and-symbols hangs if path is too long egor at sun dot com
  2010-11-18 20:08 ` [Bug mi/12229] " egor at sun dot com
@ 2011-01-10 21:40 ` tromey at redhat dot com
  2011-01-11 15:19 ` egor at sun dot com
  2023-08-31 17:15 ` tromey at sourceware dot org
  3 siblings, 0 replies; 5+ messages in thread
From: tromey at redhat dot com @ 2011-01-10 21:40 UTC (permalink / raw)
  To: gdb-prs

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

Tom Tromey <tromey at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tromey at redhat dot com

--- Comment #2 from Tom Tromey <tromey at redhat dot com> 2011-01-10 21:39:46 UTC ---
I couldn't reproduce this on Linux.
More information might be helpful.

-- 
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] 5+ messages in thread

* [Bug mi/12229] -file-exec-and-symbols hangs if path is too long
  2010-11-18 16:17 [Bug mi/12229] New: -file-exec-and-symbols hangs if path is too long egor at sun dot com
  2010-11-18 20:08 ` [Bug mi/12229] " egor at sun dot com
  2011-01-10 21:40 ` tromey at redhat dot com
@ 2011-01-11 15:19 ` egor at sun dot com
  2023-08-31 17:15 ` tromey at sourceware dot org
  3 siblings, 0 replies; 5+ messages in thread
From: egor at sun dot com @ 2011-01-11 15:19 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #3 from Egor <egor at sun dot com> 2011-01-11 15:18:57 UTC ---
I checked only on OpenSolaris 134b

-- 
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] 5+ messages in thread

* [Bug mi/12229] -file-exec-and-symbols hangs if path is too long
  2010-11-18 16:17 [Bug mi/12229] New: -file-exec-and-symbols hangs if path is too long egor at sun dot com
                   ` (2 preceding siblings ...)
  2011-01-11 15:19 ` egor at sun dot com
@ 2023-08-31 17:15 ` tromey at sourceware dot org
  3 siblings, 0 replies; 5+ messages in thread
From: tromey at sourceware dot org @ 2023-08-31 17:15 UTC (permalink / raw)
  To: gdb-prs

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

Tom Tromey <tromey at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |WAITING
                 CC|                            |tromey at sourceware dot org

--- Comment #4 from Tom Tromey <tromey at sourceware dot org> ---
Is this still an issue?
I wonder where this buffer is - it sounds like you knew?

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

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

end of thread, other threads:[~2023-08-31 17:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-18 16:17 [Bug mi/12229] New: -file-exec-and-symbols hangs if path is too long egor at sun dot com
2010-11-18 20:08 ` [Bug mi/12229] " egor at sun dot com
2011-01-10 21:40 ` tromey at redhat dot com
2011-01-11 15:19 ` egor at sun dot com
2023-08-31 17:15 ` tromey at sourceware dot org

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