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
it hangs when command length is exactly the same as char input buffer size... (looks like 256)
I couldn't reproduce this on Linux. More information might be helpful.
I checked only on OpenSolaris 134b
Is this still an issue? I wonder where this buffer is - it sounds like you knew?