Le 2016-03-18 13:34, Jeremie Courreges-Anglas a écrit :
Solène Rapenne <[email protected]> writes:

Hello,

Hi,

I installed x11/wmpinboard on -current and when starting it I get
a segfault.
Running it with ktrace give me those last lines (after a long config
file text which seems a config file)

 26310 wmpinboard RET   read 7070/0x1b9e
 26310 wmpinboard CALL  read(4,0x1d050a086000,0x4000)
 26310 wmpinboard RET   read 0
 26310 wmpinboard CALL  munmap(0x1d0512e58000,0x8a000)
 26310 wmpinboard RET   munmap 0
 26310 wmpinboard CALL  close(4)
 26310 wmpinboard RET   close 0
 26310 wmpinboard CALL  kbind(0x7f7fffff9178,0x18,0x9f98b8154dba4c3e)
 26310 wmpinboard RET   kbind 0
 26310 wmpinboard CALL  kbind(0x7f7fffff9008,0x18,0x9f98b8154dba4c3e)
 26310 wmpinboard RET   kbind 0
 26310 wmpinboard CALL  kbind(0x7f7fffff8fc8,0x18,0x9f98b8154dba4c3e)
 26310 wmpinboard RET   kbind 0
 26310 wmpinboard CALL  kbind(0x7f7fffff8fc8,0x18,0x9f98b8154dba4c3e)
 26310 wmpinboard RET   kbind 0
 26310 wmpinboard CALL  kbind(0x7f7fffff9178,0x18,0x9f98b8154dba4c3e)
 26310 wmpinboard RET   kbind 0
 26310 wmpinboard CALL  kbind(0x7f7fffff9178,0x18,0x9f98b8154dba4c3e)
 26310 wmpinboard RET   kbind 0
 26310 wmpinboard CALL  kbind(0x7f7fffff9178,0x18,0x9f98b8154dba4c3e)
 26310 wmpinboard RET   kbind 0
 26310 wmpinboard PSIG  SIGSEGV SIG_DFL code SEGV_MAPERR<1>
addr=0x1d0500000000 trapno=6
 26310 wmpinboard NAMI  "wmpinboard.core"

Running it with gdb and typing bt display the following (i am not
familiar with gdb)

(gdb) bt
#0  0x00001475af12a1a3 in _XIMCountVaList () from
/usr/X11R6/lib/libX11.so.16.1
#1  0x00001475af12a6f5 in XCreateIC () from
/usr/X11R6/lib/libX11.so.16.1
#2  0x0000147370d0fc40 in ?? () from /usr/local/bin/wmpinboard
#3  0x0000147370d0e46f in ?? () from /usr/local/bin/wmpinboard
#4  0x0000147370d04c51 in ?? () from /usr/local/bin/wmpinboard
#5  0x0000000000000000 in ?? ()

Thanks for your report. While it can be inferred from the data you show
above, please state the architecture you're using next time. ;)

My bad, I will try to remember this next time.


Note that with most ports you can get a better backtrace by reinstalling
a package in the following way:

  make clean repackage reinstall DEBUG=-g

Here I can get:
(gdb) bt
#0 0x00000732dcfeb1a3 in _XIMCountVaList () from /usr/X11R6/lib/libX11.so.16.1 #1 0x00000732dcfeb6f5 in XCreateIC () from /usr/X11R6/lib/libX11.so.16.1
#2  0x0000073062e0fc40 in init_xlocale () at
/usr/obj/pobj/wmpinboard-1.0/wmpinboard-1.0/src/xmisc.c:260
#3  0x0000073062e0e46f in main (argc=1, argv=0x7f7ffffe8288) at
/usr/obj/pobj/wmpinboard-1.0/wmpinboard-1.0/src/wmpinboard.c:2124


That's good to know !

I applied your diff and I can use wmpinboard now.

Reply via email to