Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1656930

Re: [PATCH v2] um: Avoid longjmp/setjmp symbol clashes with libpthread.a

From Thomas Meyer <thomas@m3y3r.de>
Newsgroups linux.kernel
Subject Re: [PATCH v2] um: Avoid longjmp/setjmp symbol clashes with libpthread.a
Date 2017-06-03 23:30 +0200
Message-ID <tOoMp-3LP-1@gated-at.bofh.it> (permalink)
References (9 earlier) <tNFmi-7IJ-9@gated-at.bofh.it> <tNFmi-7IJ-7@gated-at.bofh.it> <tNFPj-87Q-1@gated-at.bofh.it> <tNNDc-4UD-9@gated-at.bofh.it> <tNPlE-6o8-37@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Am Freitag, den 02.06.2017, 09:38 +0200 schrieb Richard Weinberger:
> Thomas,
> 
> Am 02.06.2017 um 07:49 schrieb Florian Fainelli:
> > > the put_fp_registers fails with errno 4 if I recall correctly.
> > > 
> > > I didn't investigate yet further, why the the xstate ptrace call
> > > fails.
> > 
> > Which of the branches is put_fp_registers() taking? The
> > restore_fpx_registers() or restore_fp_registers()? 4 would be
> > EINTR...
> > What kernel version is used on your host running the UML binary?
> 
> Another question, is this x86_64 UML on a x86_64 host?
yes,

and strace shows this:

ptrace(PTRACE_CONT, 21664, NULL, SIG_0) = 0
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=21664, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---
wait4(21664, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP}], WSTOPPED|__WALL, NULL) = 21664
ptrace(PTRACE_SETREGS, 21664, NULL, 0x60f7fa20) = 0
ptrace(PTRACE_CONT, 21664, NULL, SIG_0) = 0
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=21664, si_uid=1000, si_status=SIGTRAP, si_utime=0, si_stime=0} ---
wait4(21664, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP}], WSTOPPED|__WALL, NULL) = 21664
ptrace(PTRACE_SETREGS, 21664, NULL, 0xb18bc4e0) = 0 
ptrace(PTRACE_SETREGSET, 21664, NT_X86_XSTATE, [{iov_base=0xb18bc5b8, iov_len=832}]) = -1 EFAULT (Bad address)
ioctl(1, TCGETS, {B38400 -opost -isig -icanon -echo ...}) = 0

don't know why gdb shows errno as 4...

> Or i386 on x86_64, i386 on i386?
> 
> Thanks,
> //richard

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: [PATCH v2] um: Avoid longjmp/setjmp symbol clashes with  libpthread.a Florian Fainelli <f.fainelli@gmail.com> - 2017-06-01 21:40 +0200
  Re: [PATCH v2] um: Avoid longjmp/setjmp symbol clashes with  libpthread.a Florian Fainelli <f.fainelli@gmail.com> - 2017-06-01 22:20 +0200
    Re: [PATCH v2] um: Avoid longjmp/setjmp symbol clashes with  libpthread.a Richard Weinberger <richard@nod.at> - 2017-06-01 22:20 +0200
      Re: [PATCH v2] um: Avoid longjmp/setjmp symbol clashes with  libpthread.a Florian Fainelli <f.fainelli@gmail.com> - 2017-06-01 22:50 +0200
        Re: [PATCH v2] um: Avoid longjmp/setjmp symbol clashes with  libpthread.a Richard Weinberger <richard@nod.at> - 2017-06-01 22:50 +0200
          Re: [PATCH v2] um: Avoid longjmp/setjmp symbol clashes with  libpthread.a Richard Weinberger <richard@nod.at> - 2017-06-01 23:00 +0200
            Re: [PATCH v2] um: Avoid longjmp/setjmp symbol clashes with  libpthread.a Thomas Meyer <thomas@m3y3r.de> - 2017-06-01 23:30 +0200
              Re: [PATCH v2] um: Avoid longjmp/setjmp symbol clashes with  libpthread.a Florian Fainelli <f.fainelli@gmail.com> - 2017-06-02 07:50 +0200
                Re: [PATCH v2] um: Avoid longjmp/setjmp symbol clashes with  libpthread.a Richard Weinberger <richard@nod.at> - 2017-06-02 09:40 +0200
                Re: [PATCH v2] um: Avoid longjmp/setjmp symbol clashes with  libpthread.a Thomas Meyer <thomas@m3y3r.de> - 2017-06-03 23:30 +0200
                Re: [PATCH v2] um: Avoid longjmp/setjmp symbol clashes with  libpthread.a Richard Weinberger <richard@nod.at> - 2017-06-03 23:40 +0200
                Re: [PATCH v2] um: Avoid longjmp/setjmp symbol clashes with  libpthread.a Thomas Meyer <thomas@m3y3r.de> - 2017-06-02 10:10 +0200
                Re: [PATCH v2] um: Avoid longjmp/setjmp symbol clashes with  libpthread.a Richard Weinberger <richard@nod.at> - 2017-06-02 10:40 +0200
                Re: [PATCH v2] um: Avoid longjmp/setjmp symbol clashes with  libpthread.a Thomas Meyer <thomas@m3y3r.de> - 2017-06-02 11:20 +0200
                Re: [PATCH v2] um: Avoid longjmp/setjmp symbol clashes with  libpthread.a Thomas Meyer <thomas@m3y3r.de> - 2017-06-02 15:20 +0200
          Re: [PATCH v2] um: Avoid longjmp/setjmp symbol clashes with  libpthread.a Florian Fainelli <f.fainelli@gmail.com> - 2017-06-01 23:00 +0200
  Re: [PATCH v2] um: Avoid longjmp/setjmp symbol clashes with  libpthread.a Richard Weinberger <richard@nod.at> - 2017-06-01 22:20 +0200

csiph-web