LLDB:错误:附加失败:无法找到' ...'

时间:2016-03-11 13:27:36

标签: clang llvm freebsd lldb

我使用PostgreSQLFreeBSD 10.2上编译了CLang 3.7。问题是我无法使用LLDB 3.7附加到后端进程:

[eax@freebsd102 ~]$ ps wuax | grep postgres 
eax   29177   0.0  2.0 169592 20888  -  Is    6:11PM   0:00.00 postgres: checkpointer process    (postgres)
eax   29178   0.0  2.0 169592 20924  -  Ss    6:11PM   0:00.07 postgres: writer process    (postgres)
eax   29179   0.0  2.0 169592 20924  -  Ss    6:11PM   0:00.01 postgres: wal writer process    (postgres)
eax   29180   0.0  2.1 169592 21140  -  Is    6:11PM   0:00.01 postgres: autovacuum launcher process    (postgres)
eax   29181   0.0  1.0  24320 10216  -  Ss    6:11PM   0:00.00 postgres: stats collector process    (postgres)
eax   29192   0.0  2.3 169592 23456  -  Ss    6:14PM   0:00.04 postgres: eax eax [local] idle (postgres)
eax   29083   0.0  2.0 169592 20880  0  S     6:06PM   0:00.07 /usr/home/eax/postgresql-install/bin/postgres -D /home/eax/postgresql-install/data
eax   29196   0.0  0.2  18824  2340  1  S+    6:15PM   0:00.00 grep postgres
[eax@freebsd102 ~]$ lldb -p 29192
(lldb) process attach --pid 29192
error: attach failed: unable to find executable for 'postgres: eax eax [local] idle'
(lldb) q

与此同时,一切都按照预期的方式运行,其中包含"常规名称":

[eax@freebsd102 ~]$ lldb -p 29192
(lldb) process attach --pid 29192
error: attach failed: unable to find executable for 'postgres: eax eax [local] idle'
(lldb) q
[eax@freebsd102 ~]$ lldb -p 29083
(lldb) process attach --pid 29083
Process 29083 stopped

Executable module set to "/usr/home/eax/postgresql-install/bin/postgres".
Architecture set to: x86_64-unknown-freebsd10.2-unknown.
(lldb) bt
* thread #1: tid = 100429, 0x000000080147beea libc.so.7`__sys_select + 10
  * frame #0: 0x000000080147beea libc.so.7`__sys_select + 10
    frame #1: 0x000000000081a326 postgres`ServerLoop + 262 at postmaster.c:1654
    frame #2: 0x0000000000817db8 postgres`PostmasterMain(argc=3, argv=0x00007fffffffeab0) + 6008 at postmaster.c:1298
    frame #3: 0x00000000007481a9 postgres`main(argc=3, argv=0x00007fffffffeab0) + 793 at main.c:228
    frame #4: 0x0000000000471baf postgres`_start + 367
(lldb) q

有任何想法如何解决这个问题?

UPD:gdb / gcc中没有这样的问题。

0 个答案:

没有答案