[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: please try, netbios name lookup (*very* small program)
From:       Thomas Bennett <thomas.bennett () eds ! com>
Date:       2001-10-31 22:03:12
[Download RAW message or body]

On Thu, 01 Nov 2001 11:18, aleXXX wrote:
> Hi,
>
> please try to compile (g++ -Wall nmbname.cpp -o nmbname) the attached file
> and try if it works.

On Solaris8 usparc gcc 2.95.3
g++ -Wall nmbname.cpp -o nmbname -lsocket -g
nmbname.cpp: In function `bool parse_alloc_res_rec(char *, int *, int, 
res_rec **, int)':
nmbname.cpp:503: warning: comparison between signed and unsigned

gdb nmbname
(gdb) r 134.251.199.251
Starting program: /v6home/sz8lnp/tmp/nmbname 134.251.199.251


Program received signal SIGSEGV, Segmentation fault.
0x11d20 in parse_alloc_res_rec (inbuf=<error type>, offset=<error type>,
    length=<error type>, recs=<error type>, count=<error type>)
    at nmbname.cpp:499
499           (*recs)[i].ttl = RIVAL(inbuf,(*offset)+4);
(gdb) where
#0  0x11d20 in parse_alloc_res_rec (inbuf=<error type>, offset=<error type>,
    length=<error type>, recs=<error type>, count=<error type>)
    at nmbname.cpp:499
#1  0x12450 in parse_nmb (inbuf=<error type>, length=<error type>,
    nmb=<error type>) at nmbname.cpp:564
#2  0x125b4 in parse_packet (buf=<error type>, length=<error type>,
    packet_type=<error type>) at nmbname.cpp:603
#3  0x12650 in read_packet (fd=<error type>, packet_type=<error type>)
    at nmbname.cpp:624
#4  0x127bc in receive_nmb_packet (fd=<error type>, t=<error type>,
    trn_id=<error type>) at nmbname.cpp:653
#5  0x12b60 in name_status_query (fd=<error type>, name=<error type>,
    to_ip=<error type>, num_names=<error type>) at nmbname.cpp:738
#6  0x12ec8 in getnmbname (ip=<error type>, fd=<error type>) at 
nmbname.cpp:811
#7  0x132c0 in main (argc=<error type>, argv=<error type>) at nmbname.cpp:878
(gdb)

-- 
Regards
Thomas 
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic