Minor headaches using pkgsrc daemons (samba)

YONETANI Tomokazu qhwt+dfly at les.ath.cx
Mon Jul 11 18:06:19 PDT 2005

On Sun, Jul 10, 2005 at 05:40:32PM -0700, walt wrote:
> walt wrote:
> >I just got the pkgsrc 'samba' installed and ran into a
> >few minor snags...
> <sigh> And now for the *real* bug report:
> smbd: stack overflow in function open_sockets_smbd
> kernel: pid 907 (smbd), uid 0: exited on signal 6
> That is what I get when any client (like smbtree) tries to
> connect to my DFly machine running smbd.
> Has anyone here been able to get pkgsrc/samba running on DFly?
> Hints are welcome!

If you leave out the -O flag (which is set to -O2 via CFLAGS which is
by default ${DBG}) and it stops crashing.  And this doesn't seem to be
a strict-aliasing bug as it still crashes with -fno-strict-aliasing

# env DBG='' bmake install				# didn't crash
# env DBG='-g' bmake install				# didn't crash
# env DBG='-O' bmake install				# crashed
# env DBG='-O -fno-strict-aliasing' bmake install	# crashed

More information about the Bugs mailing list