Re: CFT: patch for process shared pthread objects

From: Anonymous <swell.k_at_gmail.com>
Date: Tue, 30 Nov 2010 17:19:50 +0300
David Xu <davidxu_at_freebsd.org> writes:

> Garrett Cooper wrote:
>
>> Doesn't build :/...:
>>
>> ===> lib/libthr (obj,depend,all,install)
>> make: don't know how to make thr_sleepq.c. Stop
>> *** Error code 2
>>
> Sorry, I have updated it, please download it again, or just
> download file:
> http://people.freebsd.org/~davidxu/pshared/thr_sleepq.c
> and put it in directory src/lib/libthr/thread/

One more

  cc -c [...] kern/kern_umtx.c
  /usr/src/sys/kern/kern_umtx.c: In function '__umtx_op_lock_umutex_compat32':
  /usr/src/sys/kern/kern_umtx.c:4107: error: too few arguments to function 'do_lock_umutex'
  /usr/src/sys/kern/kern_umtx.c: In function '__umtx_op_wait_umutex_compat32':
  /usr/src/sys/kern/kern_umtx.c:4128: error: too few arguments to function 'do_lock_umutex'
  *** Error code 1

As for runtime issues
  - mplayer's vo_gl and vo_vdpau crash as do many GL games when using nvidia-driver
  - csup hangs at the end of checkout

  $ gdb mplayer
  (gdb) bt
  #0  0x0000000000000020 in ?? ()
  #1  0x0000000807e749a3 in glXCreateWindow () from /usr/local/lib/libGL.so.1
  #2  0x00000008116ab00f in _nv011glcore () from /usr/local/lib/libnvidia-glcore.so.1
  #3  0x0000000807e5a81f in glXCreateWindow () from /usr/local/lib/libGL.so.1
  #4  0x0000000800de64a9 in objlist_call_init (list=<value optimized out>) at /usr/src/libexec/rtld-elf/rtld.c:1684
  #5  0x0000000800de78f5 in _rtld (sp=0x7fffffff55b0, exit_proc=0x7fffffff5590, objp=0x7fffffff5598) at /usr/src/libexec/rtld-elf/rtld.c:528
  #6  0x0000000800de1e99 in .rtld_start () at /usr/src/libexec/rtld-elf/amd64/rtld_start.S:39
  #7  0x0000000000000000 in ?? ()
  ...

  $ cat supfile
  *default host=cvsup4.freebsd.org
  *default base=/a/test
  *default prefix=/a/test
  *default delete use-rel-suffix

  ports-base release=cvs
  $ csup supfile
  Connected to 149.20.64.73
  Updating collection ports-base/cvs
  [...]
   Create ports/YEAR2000,v -> Attic
   SetAttrs ports
  load: 2.61  cmd: csup 47332 [running] 154.51r 271.80u 0.14s 99% 2896k
  load: 1.10  cmd: csup 47332 [runnable] 633.97r 750.61u 0.14s 100% 2896k
  $ gdb csup $(pgrep csup)
  (gdb) i th
    3 Thread 801007100 (LWP 100310/initial thread)  0x000000080281f67c in _umtx_op_err () at /usr/src/lib/libthr/arch/amd64/amd64/_umtx_op_err.S:37
    2 Thread 801008000 (LWP 101283/csup)  sender_scan (arg=<value optimized out>) at /usr/src/usr.bin/csup/mux.c:938
  * 1 Thread 801008a00 (LWP 101285/csup)  0x000000080f4a9bcc in __sys_sigwait () at _sigwait.S:3
  (gdb) bt
  #0  0x000000080f4a9bcc in __sys_sigwait () at _sigwait.S:3
  #1  0x000000080281b47e in ___sigwait (set=0x7fffffff16b8, sig=0x7fffff7fcfa4) at /usr/src/lib/libthr/thread/thr_sig.c:713
  #2  0x000000000040fe1b in killer_run (arg=<value optimized out>) at /usr/src/usr.bin/csup/proto.c:970
  #3  0x00000008028171e4 in thread_start (curthread=0x801008a00) at /usr/src/lib/libthr/thread/thr_create.c:272
  #4  0x0000000000000000 in ?? ()
  (gdb) t 2
  (gdb) bt
  #0  sender_scan (arg=<value optimized out>) at /usr/src/usr.bin/csup/mux.c:938
  #1  sender_waitforwork (arg=<value optimized out>) at /usr/src/usr.bin/csup/mux.c:912
  #2  sender_loop (arg=<value optimized out>) at /usr/src/usr.bin/csup/mux.c:790
  #3  0x00000008028171e4 in thread_start (curthread=0x801008000) at /usr/src/lib/libthr/thread/thr_create.c:272
  #4  0x0000000000000000 in ?? ()
  (gdb) t 3
  (gdb) bt
  #0  0x000000080281f67c in _umtx_op_err () at /usr/src/lib/libthr/arch/amd64/amd64/_umtx_op_err.S:37
  #1  0x00000008028206c9 in join_common (pthread=0x801008000, thread_return=0x7fffffff1640, abstime=0x0) at /usr/src/lib/libthr/thread/thr_join.c:125
  #2  0x000000000040d7b5 in mux_shutdown (m=0x8010180c0, errmsg=<value optimized out>, status=<value optimized out>) at /usr/src/usr.bin/csup/mux.c:752
  #3  0x000000000041090e in proto_run (config=0x801020080) at /usr/src/usr.bin/csup/proto.c:629
  #4  0x000000000040c72a in main (argc=<value optimized out>, argv=<value optimized out>) at /usr/src/usr.bin/csup/main.c:321
Received on Tue Nov 30 2010 - 13:20:14 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:09 UTC