[nos-bbs] stack smash upon disconnect

Gustavo Ponza g.ponza at tin.it
Sun Feb 19 01:54:00 EST 2017

On 02/17/2017 06:01 PM, Peter McCorison wrote:
> Connecting to wl2k through a vhf gateway, if authentication fails wl2k 
> disconnects. This results in immediate shutdown of jnos (linux 2.0k) 
> with message "stack smash detected ... "
> I have no clue where to start debugging this. Does anyone have some 
> ideas?

Hi Peter,
just follows the procedure by Maiko:

    If you ARE interested in helping me fix bugs, then I encourage you to
    run the GDB debugger that comes with most linux distros, AND make sure
    you do NOT strip the 'jnos' binary, since it contains important info for
    the debugger to use when a crash occurs.

    Using GDB is easy. With JNOS running already, find out it's pid, using
    the linux command, 'ps -ef | grep jnos'. Once you know what the pid is,
    then run the gdb debugger something like this :

     gdb -p pid

    GDB will load, JNOS will hang temporarily, and GDB will suddenly give
    you a prompt. Enter the command, 'continue', at the prompt, and JNOS
    will continue to run again.

    When a crash occurs, GDB will break out to the prompt again, and JNOS
    will hang. Take a screen shot of what GDB printed out, then type in
    the command, 'back full', at the GDB prompt, and note the info that
    appears. Please send all of that information to me, with a brief
    explanation of what might have been going on at the time.

    If you have JNOS logging in effect, please send me the log file at
    the time of the crash if you don't mind. Logs are under /jnos/logs/
    directory (by default).

JNOS 2.0j.7 released - 02Nov2014

* Maiko Langelaar / VE4KLM

73, gus i0ojj
A proud member of linux team

More information about the nos-bbs mailing list