[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Segmentation Fault in aprsd - SOLVED



 I have found the problem after recompiled the source with debug and using
breakpoints and stepping through the program with gdb.

 As expected my own fault. I had by misstake deleted the aprspath entry in
aprsd.conf. This caused the following call in sockets.cpp to fail:

    if ((tx_dest_len = ax25_aton(destcall, &tx_dest)) == -1) {
        cerr << "unable to convert callsign '" << destcall << "'" << endl;
        return 1;
    }

 Because the destcall was NULL.

 Regards
 Roger


----- Original Message -----
From: "Roger Bille" <roger.bille@telia.com>
To: <debian-hams@lists.debian.org>
Sent: Sunday, June 10, 2001 11:21 PM
Subject: Re: Segmentation Fault in aprsd


> I have run the gdb against aprsd and this is the result.
>
> ===================================
> debian:/home/aprsd2# gdb ./aprsd
> GNU gdb 19990928
> Copyright 1998 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and you
are
> welcome to change it and/or distribute copies of it under certain
> conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB.  Type "show warranty" for
details.
> This GDB was configured as "i686-pc-linux-gnu"...
> (no debugging symbols found)...
> (gdb) run
> Starting program: /home/aprsd2/./aprsd
> (no debugging symbols found)...(no debugging symbols found)...
> (no debugging symbols found)...(no debugging symbols found)...
> (no debugging symbols found)...(no debugging symbols found)...
> # aprsd 2.1.4.vk3sb.1 October 26 2000 by WA4DSY/VK3SB
>
> Read 21  items from history.txt
> Ignored 21 expired items in history.txt
> Reading aprsd.conf
> servercall aprsdNYK
> MyCall SM5NRK
> MyLocation Nykoping_Sweden
> MyEmail roger.bille@telia.com
> MaxUsers 25
> ackrepeats 2
> ackrepeattime 5
> expire 35
> tncport lgate
> rf-allow yes
> aprsPass yes
> TncPktSpacing 1500
> igateMyCall no
> hub 213.180.75.124 1448 SM5NRK 18346
> gate2rf SM5*
> (no debugging symbols found)...[New Thread 10546 (manager thread)]
> [New Thread 10545 (initial thread)]
> [New Thread 10547]
> [New Thread 10548]
> TCP Server listening on port 14501
> [New Thread 10549]
> Opening device lgate
>
> Program received signal SIGSEGV, Segmentation fault.
> 0x40115c50 in strdup () from /lib/libc.so.6
> (gdb)
> ===================================
>
>
>  Regards
>  Roger
>
>
>
> --
> Unsubscribe?  mail -s unsubscribe debian-hams-request@lists.debian.org <
/dev/null
>



Reply to: