RuiDC
2009-Dec-22 09:43 UTC
[Samba] Illegal instruction: 4 (core dumped) when running testparm & [sn]mbd with default config
I'm running FreeBSD 8 on a Sheevaplug (ARM5 processor) I compiled and installed Samba 3.3.9 from ports using defaults and defaults for dependencies. I left the smb.conf file untouched, ran testparm and immediately received the coredump. The same happens running smbd and nmbd. Can anyone help me resolve? http://old.nabble.com/file/p26879957/testparm.core.gz testparm.core.gz -- View this message in context: http://old.nabble.com/Illegal-instruction%3A-4-%28core-dumped%29-when-running-testparm----sn-mbd-with-default-config-tp26879957p26879957.html Sent from the Samba - General mailing list archive at Nabble.com.
Volker Lendecke
2009-Dec-22 10:32 UTC
[Samba] Illegal instruction: 4 (core dumped) when running testparm & [sn]mbd with default config
On Tue, Dec 22, 2009 at 01:43:35AM -0800, RuiDC wrote:> > I'm running FreeBSD 8 on a Sheevaplug (ARM5 processor) > I compiled and installed Samba 3.3.9 from ports using defaults and defaults > for dependencies. > I left the smb.conf file untouched, ran testparm and immediately received > the coredump. > The same happens running smbd and nmbd. > > Can anyone help me resolve? > http://old.nabble.com/file/p26879957/testparm.core.gz testparm.core.gzvlendec at host:/tmp$ gunzip testparm.core.gz gzip: testparm.core.gz: invalid compressed data--format violated Even if this had worked: I doubt that I could have done a lot with a FreeBSD 8 ARM5 core. Can you run that under a debugger and show a full backtrace (if you're using gdb it would be the command "bt full"). Thanks, Volker -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 197 bytes Desc: Digital signature URL: <http://lists.samba.org/pipermail/samba/attachments/20091222/a4a1237d/attachment.pgp>
RuiDC
2009-Dec-22 13:31 UTC
[Samba] Illegal instruction: 4 (core dumped) when running testparm & [sn]mbd with default config
Volker Lendecke wrote:> > Please compile with -g (./configure.developer will do that). >I did, as I selected the WITH_MAX_DEBUG and it built dmalloc, here is the extract from the ports Makefile: .if defined(WITH_MAX_DEBUG) CPPFLAGS+= -g LDFLAGS+= -g LIB_DEPENDS+= dmalloc.1:${PORTSDIR}/devel/dmalloc CONFIGURE_ARGS+= --enable-debug \ --enable-socket-wrapper --enable-nss-wrapper \ --enable-developer --enable-krb5developer \ --enable-dmalloc --with-profiling-data -- View this message in context: http://old.nabble.com/Illegal-instruction%3A-4-%28core-dumped%29-when-running-testparm----sn-mbd-with-default-config-tp26879957p26888406.html Sent from the Samba - General mailing list archive at Nabble.com.
Volker Lendecke
2009-Dec-22 13:43 UTC
[Samba] Illegal instruction: 4 (core dumped) when running testparm & [sn]mbd with default config
On Tue, Dec 22, 2009 at 05:31:20AM -0800, RuiDC wrote:> > > > Volker Lendecke wrote: > > > > Please compile with -g (./configure.developer will do that). > > > > I did, as I selected the WITH_MAX_DEBUG and it built dmalloc, here is the > extract from the ports Makefile: > > .if defined(WITH_MAX_DEBUG) > CPPFLAGS+= -g > LDFLAGS+= -g > LIB_DEPENDS+= dmalloc.1:${PORTSDIR}/devel/dmalloc > CONFIGURE_ARGS+= --enable-debug \ > --enable-socket-wrapper --enable-nss-wrapper \ > --enable-developer --enable-krb5developer \ > --enable-dmalloc --with-profiling-dataOk, I guess then something is broken with your build environment. Can you try building with just with ./configure; make and retry? BTW, WITH_MAX_DEBUG does not show up in the samba sources. What is this?? Thanks, Volker -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 197 bytes Desc: Digital signature URL: <http://lists.samba.org/pipermail/samba/attachments/20091222/ca4dcddc/attachment.pgp>
Volker Lendecke
2009-Dec-22 15:18 UTC
[Samba] Illegal instruction: 4 (core dumped) when running testparm & [sn]mbd with default config
On Tue, Dec 22, 2009 at 07:00:09AM -0800, RuiDC wrote:> We are talking about the same thing. Sorry, my mistake in communicating... > AFAIK, the way FreeBSD ports work is that they provide packaging wrappers > around the sources, so your .configure will still be there - somewhere - but > users are not meant to go near it.Probably you need to talk to the port maintainer then, if it is not possible for you to try the vanilla build yourself. Volker
RuiDC
2009-Dec-22 19:49 UTC
[Samba] Illegal instruction: 4 (core dumped) when running testparm & [sn]mbd with default config
ok, i have uninstalled the port version, verified it was gone, downloaded 3.3.9 source from samba.org, recompiled using ./configure.developer (output attached http://old.nabble.com/file/p26893324/samba_vanilla.tar.gz samba_vanilla.tar.gz ), run a make (output also in attachment), and make install, and run: set LD_LIBRARY_PATH=/usr/local/samba/lib export LD_LIBRARY_PATH and get what looks like the same output: [root at splug /usr/local/samba/bin]# ./testparm Illegal instruction: 4 (core dumped) [root at splug /usr/local/samba/bin]# gdb ./testparm GNU gdb 6.1.1 [FreeBSD] Copyright 2004 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 "arm-marcel-freebsd"... (gdb) run Starting program: /usr/local/samba/bin/testparm Program received signal SIGILL, Illegal instruction. 0x00012104 in ?? () (gdb) bt full #0 0x00012104 in ?? () No symbol table info available. Error accessing memory address 0x0: Bad address. (gdb) list 264 fprintf(stderr,"Warning: Service %s defines a print command, but \ 265 rameter is ignored when using CUPS libraries.\n", 266 lp_servicename(s) ); 267 } 268 #endif 269 } 270 271 int main(int argc, const char *argv[]) 272 { 273 const char *config_file = get_dyn_CONFIGFILE(); -- View this message in context: http://old.nabble.com/Illegal-instruction%3A-4-%28core-dumped%29-when-running-testparm----sn-mbd-with-default-config-tp26879957p26893324.html Sent from the Samba - General mailing list archive at Nabble.com.
Volker Lendecke
2009-Dec-22 19:55 UTC
[Samba] Illegal instruction: 4 (core dumped) when running testparm & [sn]mbd with default config
On Tue, Dec 22, 2009 at 11:49:52AM -0800, RuiDC wrote:> ok, i have uninstalled the port version, verified it was gone, downloaded > 3.3.9 source from samba.org, recompiled using ./configure.developer (output > attached http://old.nabble.com/file/p26893324/samba_vanilla.tar.gz > samba_vanilla.tar.gz ), run a make (output also in attachment), and make > install, and run: > set LD_LIBRARY_PATH=/usr/local/samba/lib > export LD_LIBRARY_PATH > > and get what looks like the same output: > [root at splug /usr/local/samba/bin]# ./testparm > Illegal instruction: 4 (core dumped) > [root at splug /usr/local/samba/bin]# gdb ./testparm > GNU gdb 6.1.1 [FreeBSD] > Copyright 2004 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 "arm-marcel-freebsd"... > (gdb) run > Starting program: /usr/local/samba/bin/testparm > > Program received signal SIGILL, Illegal instruction. > 0x00012104 in ?? () > (gdb) bt full > #0 0x00012104 in ?? () > No symbol table info available. > Error accessing memory address 0x0: Bad address. > (gdb) list > 264 fprintf(stderr,"Warning: Service %s defines a print > command, but \ > 265 rameter is ignored when using CUPS libraries.\n", > 266 lp_servicename(s) ); > 267 } > 268 #endif > 269 } > 270 > 271 int main(int argc, const char *argv[]) > 272 { > 273 const char *config_file = get_dyn_CONFIGFILE();Very weird. Next step I would try is to compile the typical "hello, world" program and see what that does. Beyond that -- I doubt that without access to such a box (which I do not have) I can be of much help. Sorry, Volker -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: <http://lists.samba.org/pipermail/samba/attachments/20091222/d3cc9bae/attachment.pgp>
RuiDC
2009-Dec-22 20:12 UTC
[Samba] Illegal instruction: 4 (core dumped) when running testparm & [sn]mbd with default config
Volker Lendecke wrote:> > Very weird. Next step I would try is to compile the typical > "hello, world" program and see what that does. Beyond that > -- I doubt that without access to such a box (which I do not > have) I can be of much help. >Other compiles, including nano and bash have worked fine. Is there anything else i can do? Has samba ever worked on FreeBSD on ARM? Is this configuration supported by Samba? -- View this message in context: http://old.nabble.com/Illegal-instruction%3A-4-%28core-dumped%29-when-running-testparm----sn-mbd-with-default-config-tp26879957p26893636.html Sent from the Samba - General mailing list archive at Nabble.com.
Volker Lendecke
2009-Dec-22 23:00 UTC
[Samba] Illegal instruction: 4 (core dumped) when running testparm & [sn]mbd with default config
On Tue, Dec 22, 2009 at 01:44:56PM -0800, RuiDC wrote:> > has something I believe. But I doubt he runs FreeBSD. > > Shame, thanks for helping thus far, maybe someone will pick up the baton on > this one day.A quick try on the box revealed: You have to configure with --enable-pie=no. Not sure how to put that into the standard FreeBSD ports build though. Volker