Project

General

Profile

Actions

Bug #195

closed

Samba coredumps on DFBSD 1.6

Added by mark.r.cullen over 18 years ago. Updated almost 16 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:

Description

I got everything set up, switched hard disks, and everything seemed to
work alright except for Samba. I was seeing the same error as
http://leaf.dragonflybsd.org/mailarchive/users/2005-09/msg00247.html

I tried recompiling Samba with the -fno-stack-protector flag, as
mentioned in that thread, but that didn't seem to solve the issue (or I
did it wrong). Is anyone else still seeing this one?

Actions #1

Updated by joerg over 18 years ago

On Thu, Jun 08, 2006 at 08:01:46AM +0100, Mark Cullen wrote:

I got everything set up, switched hard disks, and everything seemed to
work alright except for Samba. I was seeing the same error as
http://leaf.dragonflybsd.org/mailarchive/users/2005-09/msg00247.html

I tried recompiling Samba with the -fno-stack-protector flag, as
mentioned in that thread, but that didn't seem to solve the issue (or I
did it wrong). Is anyone else still seeing this one?

I have a PDC running 1.4.4... If you can get me a coredump from Samba
build with debug symbols, I can try to trace it down. But without that,
it is quite hard.

Joerg

Actions #2

Updated by mark.r.cullen over 18 years ago

wrote:

On Thu, Jun 08, 2006 at 08:01:46AM +0100, Mark Cullen wrote:

I got everything set up, switched hard disks, and everything seemed to
work alright except for Samba. I was seeing the same error as
http://leaf.dragonflybsd.org/mailarchive/users/2005-09/msg00247.html

I tried recompiling Samba with the -fno-stack-protector flag, as
mentioned in that thread, but that didn't seem to solve the issue (or I
did it wrong). Is anyone else still seeing this one?

I have a PDC running 1.4.4... If you can get me a coredump from Samba
build with debug symbols, I can try to trace it down. But without that,
it is quite hard.

Joerg

How might I go about building it with debug symbols?

Actions #3

Updated by joerg over 18 years ago

On Thu, Jun 08, 2006 at 04:33:44PM +0100, Mark Cullen wrote:

wrote:

I have a PDC running 1.4.4... If you can get me a coredump from Samba
build with debug symbols, I can try to trace it down. But without that,
it is quite hard.

Joerg

How might I go about building it with debug symbols?

Try adding
CFLAGS= -O2 -g
CXXFLAGS= -O2 -g

to /etc/mk.conf. The smbd binary in the work directory should be much
larger afterwards.

Joerg

Actions #4

Updated by mark.r.cullen over 18 years ago

wrote:

On Thu, Jun 08, 2006 at 04:33:44PM +0100, Mark Cullen wrote:

wrote:

I have a PDC running 1.4.4... If you can get me a coredump from Samba
build with debug symbols, I can try to trace it down. But without that,
it is quite hard.

Joerg

How might I go about building it with debug symbols?

Try adding
CFLAGS= -O2 -g
CXXFLAGS= -O2 -g

to /etc/mk.conf. The smbd binary in the work directory should be much
larger afterwards.

Joerg

Ok that seems to have worked. The built smbd binary is now 6MB as
opposed to the installed 2MB, however, it's not producing a core dump as
far as I can tell.

Actions #5

Updated by mark.r.cullen over 18 years ago

Mark Cullen wrote:

wrote:

On Thu, Jun 08, 2006 at 04:33:44PM +0100, Mark Cullen wrote:

wrote:

I have a PDC running 1.4.4... If you can get me a coredump from Samba
build with debug symbols, I can try to trace it down. But without that,
it is quite hard.

Joerg

How might I go about building it with debug symbols?

Try adding
CFLAGS= -O2 -g
CXXFLAGS= -O2 -g
to /etc/mk.conf. The smbd binary in the work directory should be much
larger afterwards.

Joerg

Ok that seems to have worked. The built smbd binary is now 6MB as
opposed to the installed 2MB, however, it's not producing a core dump as
far as I can tell.

Ah ha, I had to set `kern.sugid_coredump` and it got put in /tmp. Is
there any particular place you would like it uploaded, or any gdb(?)
commands run etc etc?

Thanks for helping out, again! :)

Actions #6

Updated by corecode about 18 years ago

Is this still present?

Actions #7

Updated by mark.r.cullen about 18 years ago

I'm not sure, sorry. If I get a bit of free time then I will install DF
1.6(?) on a spare machine again and see what happens.

Actions #8

Updated by corecode almost 16 years ago

I believe this used to be an interaction with gcc and varargs. AFAIR it has
been fixed.

Actions

Also available in: Atom PDF