#4 Sing 1.1 dumps core on Solaris 8

open
nobody
None
5
2004-04-09
2004-04-09
Anonymous
No

# gdb
GNU gdb 6.0
Copyright 2003 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 "sparc-sun-solaris2.8".
(gdb) file sing
Reading symbols from sing...done.
(gdb) run norbert
Starting program: /tmp/SING-1.1/sing norbert
SINGing to norbert (10.50.9.105): 16 data bytes

Program received signal SIGSEGV, Segmentation fault.
0x00013db4 in build_ip (s=7, orig=171049576, ttl=255,
tos=0, prot=1, lenpack=16) at sing.c:595
595 ip_p->ip_hl = (TCAB_IP + len_ipopt) >> 2;
(gdb)

Discussion

  • Logged In: NO

    Same place : I get a SIGBUS, same platform.

    Try this in sing.c (Worked for me ..)

    591 /* struct ip2 *ip_p = (struct ip2 *)
    (buf_ip+LIBNET_ETH_H); */
    592 struct ip2 *ip_p = (struct ip2 *) malloc
    (buf_ip+LIBNET_ETH_H); /* SAM FIX */