• JamNNTPd bug

    From Carlos Navarro@2:341/234.1 to Tommi Koivula on Thu Apr 9 12:07:32 2026
    13 Feb 2021 22:45, you wrote to Oli:

    I have seen JamNNTPd to crash when client (hotdoged) tried to access a message that was deleted.

    I also had this issue. This fix seems to work:

    https://github.com/cnb/jamnntpd/commit/3e075c2a904cc8ca66a2753543db4c8d6308a457

    Carlos

    --- GoldED+/W32-MSVC 1.1.5-b20180707
    * Origin: cyberiada (2:341/234.1)
  • From Tommi Koivula@2:221/1 to Carlos Navarro on Thu Apr 9 17:24:24 2026
    Hello, Carlos Navarro.
    On 09/04/2026 13.07 you wrote:

    13 Feb 2021 22:45, you wrote to Oli:
    I have seen JamNNTPd to crash when client (hotdoged) tried to access a
    message that was deleted.
    I also had this issue. This fix seems to work: https://github.com/cnb/jamnntpd/commit/3e075c2a904cc8ca66a2753543db4c8d6308a457

    I just applied the fix. Lets see. ;)

    Thanks!

    Carlos

    --
    Tommi

    ---
    * Origin: news://news.fidonet.fi (2:221/1.0)
  • From Tommi Koivula@2:221/360 to Carlos Navarro on Fri Apr 10 08:14:31 2026
    On 9.4.2026 17.24, Tommi Koivula wrote:

    https://github.com/cnb/jamnntpd/commit/3e075c2a904cc8ca66a2753543db4c8d6308a457

    I just applied the fix. Lets see.;)

    I deleted some messages, tried to read, no crash yet.

    Fixed the OS/2 version too. :)

    'Tommi

    --- FastEcho/2 1.46.1 Revival
    * Origin: nntp://rbb.fidonet.fi - Finland (2:221/360.0)
  • From Carlos Navarro@2:341/234.99 to Tommi Koivula on Sat Apr 11 18:58:30 2026
    10/04/2026 7:14, Tommi Koivula -> Carlos Navarro:

    I deleted some messages, tried to read, no crash yet.

    Fixed the OS/2 version too. :)

    Good to know, thanks for reporting.

    Carlos

    ---
    * Origin: cyberiada-NNTP (2:341/234.99)
  • From Tommi Koivula@2:221/1 to Carlos Navarro on Sun Apr 12 16:54:14 2026
    On 11.4.2026 19.58, Carlos Navarro wrote:


    I deleted some messages, tried to read, no crash yet.


    Ok, I tried to reply to a message that was deleted. So Jamnntpd tried to find the message for reply linking. But it was not there.

    Crashed.

    Linux jamnntpd.log:

    12-Apr-26 16:45:10 (2001:999:41c:1626:11d2:628a:3d43:ea64:56646) Connection established to n4ft960xor07mixg5t0-1.v6.elisa-mobile.fi
    12-Apr-26 16:45:10 (2001:999:41c:1626:11d2:628a:3d43:ea64:56646) Logged in as tommi
    12-Apr-26 16:45:10 (2001:999:41c:1626:11d2:628a:3d43:ea64:56646) Newsreader : HotdogEd/2.13.5 (Android; Google Android; rv:1) Hotdoged/1772776635000 HotdogEd/2.13.5
    12-Apr-26 16:45:10 (2001:999:41c:1626:11d2:628a:3d43:ea64:56646) Accessing JAM message base "/bbs/fmail/msgbase/jam/rbb.test.1"

    linux syslog:
    Apr 12 16:45:10 kco kernel: [2065949.823079] jamnntpd[4055351]: segfault at 21cd8c ip 000000005656f8ca sp 00000000f7ce4910 error 4 in jamnntpd[138ca,5655c000+1a000] likely on CPU 5 (core 0, socket 5)

    'Tommi

    ---
    * Origin: news://news.fidonet.fi (2:221/1.0)
  • From Nil A@2:5015/46 to Tommi Koivula on Mon Apr 13 01:07:18 2026
    Hello, Tommi!

    Sunday April 12 2026 16:54, from Tommi Koivula -> Carlos Navarro:

    Ok, I tried to reply to a message that was deleted. So Jamnntpd tried
    to find the message for reply linking. But it was not there.
    Crashed.

    The reproduction steps are very helpful.

    linux syslog:
    Apr 12 16:45:10 kco kernel: [2065949.823079] jamnntpd[4055351]:
    segfault at 21cd8c ip 000000005656f8ca sp 00000000f7ce4910 error 4 in jamnntpd[138ca,5655c000+1a000] likely on CPU 5 (core 0, socket 5)

    Doesn't ring a bell. I don't have your binary to check what IP (not IPv4/IPv6 but instruction pointer) it corresponds to.

    For better assistance, you should've included the backtrace of the sigsegv. You probably have coredump somewhere around, or use the `ulimit -c unlimited`, cause some distros will mess up with it.

    As a last resort, you can just run the jamnntpd from gdb and execute your crash scenario, and gdb will stop at crash point, so you just type `bt` for backtrace and post it here.

    Best Regards, Nil
    --- GoldED+/LNX 1.1.5-b20260305
    * Origin: Gemini can make mistakes, so double-check it (2:5015/46)
  • From Nil A@2:5015/46 to Carlos Navarro on Mon Apr 13 01:13:34 2026
    Hello, Carlos!

    Saturday April 11 2026 18:58, from Carlos Navarro -> Tommi Koivula:

    Fixed the OS/2 version too. :)
    Good to know, thanks for reporting.

    I wonder you guys compile right on OS/2 or in cross-compile env?
    GCC-9/GCC-10 or Watcom2 (or maybe even not Open Watcom?), or unofficial GCC 14/15?

    Best Regards, Nil
    --- GoldED+/LNX 1.1.5-b20260305
    * Origin: Gemini can make mistakes, so double-check it (2:5015/46)
  • From Carlos Navarro@2:341/234.99 to Tommi Koivula on Mon Apr 13 09:55:03 2026
    12/04/2026 15:54, Tommi Koivula -> Carlos Navarro:

    Ok, I tried to reply to a message that was deleted. So Jamnntpd tried to
    find the message for reply linking. But it was not there.

    Crashed.

    Good catch. I'll see if I can fix that too.

    Carlos

    ---
    * Origin: cyberiada-NNTP (2:341/234.99)