Hello,
could be possible to bind sockets with SO_REUSEADDR? Sometimes the Jlink GDBServer quits with Seg fault and I have to wait until the TIME_WAIT expires. (I do not want to restart my network...).
ref: serverfault.com/questions/3298…ose-a-socket-in-time-wait
Reading 64 bytes @ address 0x1000A3C0
Reading 64 bytes @ address 0x1000A380
Read 2 bytes @ address 0x0000432E (Data = 0x48AC)
Read 2 bytes @ address 0x00004330 (Data = 0xF003)
Read 2 bytes @ address 0x00004C94 (Data = 0xF04F)
GDB closed TCP/IP connection
Connected to 127.0.0.1
Segmentation fault (core dumped)
/var/log/syslog
Oct 11 12:56:09 ubuntu kernel: [369167.324070] JLinkGDBServer[19062]: segfault at 5257d949 ip 0807161d sp aeec1300 error 4 in JLinkGDBServer[8048000+36000]
Oct 11 13:35:52 ubuntu kernel: [371551.040183] JLinkGDBServer[24214]: segfault at ffffffff ip 08071121 sp af6f7240 error 5 in JLinkGDBServer[8048000+36000]
/////////GDBServer launched again
ERROR: Failed to bind address (Err = 98)
ERROR: Failed to open listener port 2331
*** J-Link GDB Server V4.78a Error ***
Failed to open listener port. GDBServer will be closed.
*** J-Link GDB Server V4.78a Error ***
/var/log/syslog
Oct 11 13:36:28 ubuntu USBBULK[24254]: *** J-Link GDB Server V4.78a
Error *** | Failed to open listener port. GDBServer will be closed.
I cannot provide more details about seg fault, the Valgrind is reports
==24299== More than 10000000 total errors detected. I'm not reporting any more.
==24299== Final error counts will be inaccurate. Go fix your program!
==24299== Rerun with --error-limit=no to disable this cutoff. Note
==24299== that errors may occur in your program without prior warning from
==24299== Valgrind, because errors are no longer being displayed.
Best
Martin
could be possible to bind sockets with SO_REUSEADDR? Sometimes the Jlink GDBServer quits with Seg fault and I have to wait until the TIME_WAIT expires. (I do not want to restart my network...).
ref: serverfault.com/questions/3298…ose-a-socket-in-time-wait
Reading 64 bytes @ address 0x1000A3C0
Reading 64 bytes @ address 0x1000A380
Read 2 bytes @ address 0x0000432E (Data = 0x48AC)
Read 2 bytes @ address 0x00004330 (Data = 0xF003)
Read 2 bytes @ address 0x00004C94 (Data = 0xF04F)
GDB closed TCP/IP connection
Connected to 127.0.0.1
Segmentation fault (core dumped)
/var/log/syslog
Oct 11 12:56:09 ubuntu kernel: [369167.324070] JLinkGDBServer[19062]: segfault at 5257d949 ip 0807161d sp aeec1300 error 4 in JLinkGDBServer[8048000+36000]
Oct 11 13:35:52 ubuntu kernel: [371551.040183] JLinkGDBServer[24214]: segfault at ffffffff ip 08071121 sp af6f7240 error 5 in JLinkGDBServer[8048000+36000]
/////////GDBServer launched again
ERROR: Failed to bind address (Err = 98)
ERROR: Failed to open listener port 2331
*** J-Link GDB Server V4.78a Error ***
Failed to open listener port. GDBServer will be closed.
*** J-Link GDB Server V4.78a Error ***
/var/log/syslog
Oct 11 13:36:28 ubuntu USBBULK[24254]: *** J-Link GDB Server V4.78a
Error *** | Failed to open listener port. GDBServer will be closed.
I cannot provide more details about seg fault, the Valgrind is reports
==24299== More than 10000000 total errors detected. I'm not reporting any more.
==24299== Final error counts will be inaccurate. Go fix your program!
==24299== Rerun with --error-limit=no to disable this cutoff. Note
==24299== that errors may occur in your program without prior warning from
==24299== Valgrind, because errors are no longer being displayed.
Best
Martin