[Samba] bus error

Paras pradhan pradhanparas at gmail.com
Tue Nov 10 15:48:04 MST 2009


It seems like compiling with -g option takes gigabytes of space in
source directory which I can not afford at this time.

I managed to install gdb and here is what gdb has to say:

--
root at web # gdb ./net core
GNU gdb 6.8
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "sparc-sun-solaris2.9"...

warning: Can't read pathname for load map: I/O error.
Reading symbols from /usr/lib/libthread.so.1...done.
Loaded symbols for /lib/libthread.so.1
Reading symbols from /usr/lib/libsendfile.so.1...done.
Loaded symbols for /lib/libsendfile.so.1
Reading symbols from /usr/lib/libresolv.so.2...done.
Loaded symbols for /lib/libresolv.so.2
Reading symbols from /usr/lib/librt.so.1...done.
Loaded symbols for /lib/librt.so.1
Reading symbols from /usr/lib/libdl.so.1...done.
Loaded symbols for /lib/libdl.so.1
Reading symbols from /usr/lib/libnsl.so.1...done.
Loaded symbols for /lib/libnsl.so.1
Reading symbols from /usr/lib/libsocket.so.1...done.
Loaded symbols for /lib/libsocket.so.1
Reading symbols from /opt/local/lib/libiconv.so.2...done.
Loaded symbols for /opt/local/lib/libiconv.so.2
Reading symbols from /opt/local/lib/libgssapi_krb5.so.2...done.
Loaded symbols for /opt/local/lib/libgssapi_krb5.so.2
Reading symbols from /opt/local/lib/libkrb5.so.3...done.
Loaded symbols for /opt/local/lib/libkrb5.so.3
Reading symbols from /opt/local/lib/libk5crypto.so.3...done.
Loaded symbols for /opt/local/lib/libk5crypto.so.3
Reading symbols from /opt/local/lib/libcom_err.so.3...done.
Loaded symbols for /opt/local/lib/libcom_err.so.3
Reading symbols from /opt/local/lib/libldap-2.4.so.2...done.
Loaded symbols for /opt/local/lib/libldap-2.4.so.2
Reading symbols from /opt/local/lib/liblber-2.4.so.2...done.
Loaded symbols for /opt/local/lib/liblber-2.4.so.2
Reading symbols from /opt/local/samba/lib/libtalloc.so...done.
Loaded symbols for /opt/local/samba/lib/libtalloc.so
Reading symbols from /opt/local/samba/lib/libtdb.so...done.
Loaded symbols for /opt/local/samba/lib/libtdb.so
Reading symbols from /opt/local/samba/lib/libwbclient.so...done.
Loaded symbols for /opt/local/samba/lib/libwbclient.so
Reading symbols from /usr/lib/libz.so.1...done.
Loaded symbols for /lib/libz.so.1
Reading symbols from /usr/lib/libc.so.1...done.
Loaded symbols for /lib/libc.so.1
Reading symbols from /usr/lib/libaio.so.1...done.
Loaded symbols for /lib/libaio.so.1
Reading symbols from /usr/lib/libmd5.so.1...done.
Loaded symbols for /lib/libmd5.so.1
Reading symbols from /usr/lib/libmp.so.2...done.
Loaded symbols for /lib/libmp.so.2
Reading symbols from /usr/local/lib/libgcc_s.so.1...done.
Loaded symbols for /usr/local/lib/libgcc_s.so.1
Reading symbols from /opt/local/lib/libkrb5support.so.0...done.
Loaded symbols for /opt/local/lib/libkrb5support.so.0
Reading symbols from /usr/lib/libgen.so.1...done.
Loaded symbols for /lib/libgen.so.1
Reading symbols from /usr/platform/SUNW,Sun-Fire-V240/lib/libc_psr.so.1...done.
Loaded symbols for /usr/platform/SUNW,Sun-Fire-V240/lib/libc_psr.so.1

warning: Can't read pathname for load map: I/O error.

warning: Can't read pathname for load map: I/O error.
Core was generated by `./net ads user'.
Program terminated with signal 10, Bus error.
[New process 80487    ]
#0  0xfed47cac in _free_unlocked () from /lib/libc.so.1
(gdb)
------

Actual command was:

./net ads join -U samba


Thanks!
Paras.




On Mon, Nov 9, 2009 at 3:33 PM, Volker Lendecke
<Volker.Lendecke at sernet.de> wrote:
> On Mon, Nov 09, 2009 at 03:26:12PM -0600, Paras pradhan wrote:
>> ./configure.developer stucks at building iconv.
>>
>> here is the o/p:
>> lib/iconv.c: In function `iconv_swab':
>> lib/iconv.c:498: implicit declaration of function `swab'
>> The following command failed:
>> gcc -I/opt/local/include -O2 -g -g -Wall -Wshadow -Wpointer-arith
>> -Wcast-align -Wwrite-strings -DDEBUG_PASSWORD -DDEVELOPER
>> -Werror-implicit-function-declaration -I.
>> -I/usr/local/samba-3.4.3/source3
>> -I/usr/local/samba-3.4.3/source3/iniparser/src -Iinclude -I./include
>> -I. -I. -I./../lib/replace -I./../lib/talloc -I./../lib/tevent
>> -I./../lib/tdb/include -I./libaddns -I./librpc -I./.. -DHAVE_CONFIG_H
>> -I/opt/local/include -I/opt/local/include -D_LARGEFILE_SOURCE
>> -D_REENTRANT -D_FILE_OFFSET_BITS=64 -DLDAP_DEPRECATED -DSUNOS5
>> -I/usr/local/samba-3.4.3/source3/lib -I.. -I../source4
>> -D_SAMBA_BUILD_=3 -D_SAMBA_BUILD_=3 -fPIC -c lib/iconv.c -o
>> lib/iconv.o
>> make: *** [lib/iconv.o] Error 1
>> --
>>
>> But if i use ./configure it is working.
>
> Then try "CFLAGS=-g ./configure"
>
> Volker
>


More information about the samba mailing list