su - root => segmentation fault

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

su - root => segmentation fault

dmitry.sensei
Hi!
why did it happen?

OpenBSD 6.5 current
$su - root
root's password:
Segmentation fault
$ doas su - root
#

--
Dmitry Orlov
Reply | Threaded
Open this post in threaded view
|

Re: su - root => segmentation fault

Solene Rapenne
On Wed, Jul 31, 2019 at 04:49:54PM +0500, dmitry.sensei wrote:

> Hi!
> why did it happen?
>
> OpenBSD 6.5 current
> $su - root
> root's password:
> Segmentation fault
> $ doas su - root
> #
>
> --
> Dmitry Orlov

what current? What arch?

works for me©
OpenBSD 6.5-current (GENERIC.MP) #153: Sun Jul 28 20:33:09 MDT 2019

Reply | Threaded
Open this post in threaded view
|

Re: su - root => segmentation fault

Gregory Edigarov-5
On 31.07.19 17:00, Solene Rapenne wrote:

> On Wed, Jul 31, 2019 at 04:49:54PM +0500, dmitry.sensei wrote:
>> Hi!
>> why did it happen?
>>
>> OpenBSD 6.5 current
>> $su - root
>> root's password:
>> Segmentation fault
>> $ doas su - root
>> #
>>
>> --
>> Dmitry Orlov
> what current? What arch?
>
> works for me©
> OpenBSD 6.5-current (GENERIC.MP) #153: Sun Jul 28 20:33:09 MDT 2019
usually it means that your kernel does not match the userspace

Reply | Threaded
Open this post in threaded view
|

Re: su - root => segmentation fault

dmitry.sensei
Amd64 from 30 jul. What does the "your kernel does not match the userspace"
mean?

ср, 31 июл. 2019 г., 19:22 Gregory Edigarov <[hidden email]>:

> On 31.07.19 17:00, Solene Rapenne wrote:
> > On Wed, Jul 31, 2019 at 04:49:54PM +0500, dmitry.sensei wrote:
> >> Hi!
> >> why did it happen?
> >>
> >> OpenBSD 6.5 current
> >> $su - root
> >> root's password:
> >> Segmentation fault
> >> $ doas su - root
> >> #
> >>
> >> --
> >> Dmitry Orlov
> > what current? What arch?
> >
> > works for me©
> > OpenBSD 6.5-current (GENERIC.MP) #153: Sun Jul 28 20:33:09 MDT 2019
> usually it means that your kernel does not match the userspace
>
>
Reply | Threaded
Open this post in threaded view
|

Re: su - root => segmentation fault

dmitry.sensei
Lol!
ORLOV-NB$ kdump -f ktrace.out
 58118 ktrace   RET   ktrace 0
 58118 ktrace   CALL  execve(0x7f7ffffd9100,0x7f7ffffd9710,0x7f7ffffd9730)
 58118 ktrace   NAMI  "*/usr/local/heimdal/bin/su*"
 58118 ktrace   ARGS
        [0] = "su"
        [1] = "-"
        [2] = "root"
ORLOV-NB$ whereis su
/usr/bin/su
ORLOV-NB$

пт, 2 авг. 2019 г. в 04:15, dmitry.sensei <[hidden email]>:

> Amd64 from 30 jul. What does the "your kernel does not match the
> userspace" mean?
>
> ср, 31 июл. 2019 г., 19:22 Gregory Edigarov <[hidden email]>:
>
>> On 31.07.19 17:00, Solene Rapenne wrote:
>> > On Wed, Jul 31, 2019 at 04:49:54PM +0500, dmitry.sensei wrote:
>> >> Hi!
>> >> why did it happen?
>> >>
>> >> OpenBSD 6.5 current
>> >> $su - root
>> >> root's password:
>> >> Segmentation fault
>> >> $ doas su - root
>> >> #
>> >>
>> >> --
>> >> Dmitry Orlov
>> > what current? What arch?
>> >
>> > works for me©
>> > OpenBSD 6.5-current (GENERIC.MP) #153: Sun Jul 28 20:33:09 MDT 2019
>> usually it means that your kernel does not match the userspace
>>
>>

--
Dmitry Orlov
Reply | Threaded
Open this post in threaded view
|

Re: su - root => segmentation fault

Stuart Henderson
On 2019-08-02, dmitry.sensei <[hidden email]> wrote:

> Lol!
> ORLOV-NB$ kdump -f ktrace.out
>  58118 ktrace   RET   ktrace 0
>  58118 ktrace   CALL  execve(0x7f7ffffd9100,0x7f7ffffd9710,0x7f7ffffd9730)
>  58118 ktrace   NAMI  "*/usr/local/heimdal/bin/su*"
>  58118 ktrace   ARGS
>         [0] = "su"
>         [1] = "-"
>         [2] = "root"
> ORLOV-NB$ whereis su
> /usr/bin/su

whereis isn't terribly useful, it doesn't use $PATH, instead uses a
fixed path of common directories.

The "type" builtin in most Bourne-style shells is usually more helpful.


Reply | Threaded
Open this post in threaded view
|

Re: su - root => segmentation fault

dmitry.sensei
Ok. Thanks.

пт, 2 авг. 2019 г., 20:25 Stuart Henderson <[hidden email]>:

> On 2019-08-02, dmitry.sensei <[hidden email]> wrote:
> > Lol!
> > ORLOV-NB$ kdump -f ktrace.out
> >  58118 ktrace   RET   ktrace 0
> >  58118 ktrace   CALL
> execve(0x7f7ffffd9100,0x7f7ffffd9710,0x7f7ffffd9730)
> >  58118 ktrace   NAMI  "*/usr/local/heimdal/bin/su*"
> >  58118 ktrace   ARGS
> >         [0] = "su"
> >         [1] = "-"
> >         [2] = "root"
> > ORLOV-NB$ whereis su
> > /usr/bin/su
>
> whereis isn't terribly useful, it doesn't use $PATH, instead uses a
> fixed path of common directories.
>
> The "type" builtin in most Bourne-style shells is usually more helpful.
>
>
>
Reply | Threaded
Open this post in threaded view
|

Re: su - root => segmentation fault

dmitry.sensei
But we have some bug in heimdal's su 😕

пт, 2 авг. 2019 г., 20:27 dmitry.sensei <[hidden email]>:

> Ok. Thanks.
>
> пт, 2 авг. 2019 г., 20:25 Stuart Henderson <[hidden email]>:
>
>> On 2019-08-02, dmitry.sensei <[hidden email]> wrote:
>> > Lol!
>> > ORLOV-NB$ kdump -f ktrace.out
>> >  58118 ktrace   RET   ktrace 0
>> >  58118 ktrace   CALL
>> execve(0x7f7ffffd9100,0x7f7ffffd9710,0x7f7ffffd9730)
>> >  58118 ktrace   NAMI  "*/usr/local/heimdal/bin/su*"
>> >  58118 ktrace   ARGS
>> >         [0] = "su"
>> >         [1] = "-"
>> >         [2] = "root"
>> > ORLOV-NB$ whereis su
>> > /usr/bin/su
>>
>> whereis isn't terribly useful, it doesn't use $PATH, instead uses a
>> fixed path of common directories.
>>
>> The "type" builtin in most Bourne-style shells is usually more helpful.
>>
>>
>>