Bug 459476 - address already in use when using vgdb
Summary: address already in use when using vgdb
Status: RESOLVED FIXED
Alias: None
Product: valgrind
Classification: Developer tools
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Julian Seward
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-09-21 07:49 UTC by Alexandra Hajkova
Modified: 2022-11-12 12:05 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
patch (906 bytes, patch)
2022-09-21 07:49 UTC, Alexandra Hajkova
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandra Hajkova 2022-09-21 07:49:57 UTC
Created attachment 152307 [details]
patch

SUMMARY
When using vgdb with new experimental multi option, there might be a problem to rerun vgdb due to port being already in use.

STEPS TO REPRODUCE
./vgdb --multi --port=5555
pasrse options: MULTI
syscall failed: Address already in use
bind failed




EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Mark Wielaard 2022-11-12 12:05:55 UTC
Looks good, thanks. Pushed as:

commit ea919973941e5dddc3a9611946b7cc6ca9d87a4f (HEAD -> master)
Author: Alexandra Petlanova Hajkova <ahajkova@redhat.com>
Date:   Wed Sep 7 05:46:55 2022 -0400

    vgdb: allow address reuse to avoid "address already in use" errors
    
    https://bugs.kde.org/show_bug.cgi?id=459476