nmbd failed to run

Chunli Zhang czhang at procom.com
Mon Aug 13 20:14:30 GMT 2001


Here it is (nmbd is not running as daemon):


(gdb) run
Starting program: /home/czhang/samba/source/bin/./nmbd

Program received signal SIGSEGV, Segmentation fault.
__gconv (cd=0xffffffff, inbuf=0xbfffeb28, inbufend=0x0, outbuf=0xbfffefd4,
    outbufend=0x80e3073 "", irreversible=0xbfffe708) at gconv.c:34
34      gconv.c: No such file or directory.
        in gconv.c
(gdb) t
[Current thread is 0 (process 28041)]
(gdb) bt
#0  __gconv (cd=0xffffffff, inbuf=0xbfffeb28, inbufend=0x0,
outbuf=0xbfffefd4,
    outbufend=0x80e3073 "", irreversible=0xbfffe708) at gconv.c:34
#1  0x4008a758 in iconv (cd=0xffffffff, inbuf=0xbfffe778,
    inbytesleft=0xbfffe77c, outbuf=0xbfffefd4, outbytesleft=0xbfffefd8)
    at iconv.c:53
#2  0x0808de21 in sys_iconv (cd=0xffffffff, inbuf=0xbfffe778,
    inbytesleft=0xbfffe77c, outbuf=0xbfffefd4, outbytesleft=0xbfffefd8)
    at lib/iconv.c:62
#3  0x0808df21 in smb_iconv (cd=0x80d0990, inbuf=0xbfffefcc,
    inbytesleft=0xbfffefd0, outbuf=0xbfffefd4, outbytesleft=0xbfffefd8)
    at lib/iconv.c:105
#4  0x0807b163 in convert_string (descriptor=0x80b378c, src=0xbffff010,
    srclen=10, dest=0x80e3064, destlen=15) at lib/charcnv.c:91
#5  0x0807b371 in push_ascii (dest=0x80e3064, src=0xbffff4c0 "localhost",
    dest_len=15, flags=3) at lib/charcnv.c:165
#6  0x08071606 in make_nmb_name (n=0x80e3064, name=0xbffff4c0 "localhost",
    type=0) at libsmb/nmblib.c:834
#7  0x080531a3 in add_name_to_subnet (subrec=0x80e2e78,
    name=0xbffff4c0 "localhost", type=0, nb_flags=4, ttl=0,
    source=LMHOSTS_NAME, num_ips=1, iplist=0xbffff4bc)
    at nmbd/nmbd_namelistdb.c:215
#8  0x08052392 in load_lmhosts_file (
    fname=0x80c5e20 "/usr/local/samba/lib/lmhosts") at nmbd/nmbd_lmhosts.c:67

#9  0x0804c51a in main (argc=1, argv=0xbffff97c) at nmbd/nmbd.c:846
#10 0x4008a177 in __libc_start_main (main=0x804be70 <main>, argc=1,
    ubp_av=0xbffff97c, init=0x8049e14 <_init>, fini=0x80929e0 <_fini>,
    rtld_fini=0x4000e184 <_dl_fini>, stack_end=0xbffff96c)
    at ../sysdeps/generic/libc-start.c:129
(gdb)


Chunli

Tim Potter wrote:

> Chunli Zhang writes:
>
> > I checked out the latest code from CVS to a RedHat 7.1 system.  I
> > compiled it, and installed it by "make install".  I could start smbd,
> > yet when I tried to start nmbd, it failed with internal error.  Attached
> > are log.nmbd, and smb.conf.  Do I have to make some special
> > configuration in order for the latest code to run on RedHat 7.1?
> >
> > Here is the core dump:
>
> A stack backtrace from the gdb prompt would be really useful to
> help diagnose what is going on.
>
> Tim.





More information about the samba-technical mailing list