Bug #195

Samba coredumps on DFBSD 1.6

Added by mark.r.cullen about 9 years ago. Updated over 6 years ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-
Target version:-

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?

History

#1 Updated by joerg about 9 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

#2 Updated by mark.r.cullen about 9 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?

#3 Updated by joerg about 9 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

#4 Updated by mark.r.cullen about 9 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.

#5 Updated by mark.r.cullen about 9 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! :)

#6 Updated by corecode almost 9 years ago

Is this still present?

#7 Updated by mark.r.cullen over 8 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.

#8 Updated by corecode over 6 years ago

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

Also available in: Atom PDF