pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/53812: vncserver consistently crashes



Leonardo,

The gdb output looks like this:

$ gdb -core Xvnc.core `which Xvnc`
GNU gdb (GDB) 7.12
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64--netbsd".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/pkg/bin/Xvnc...(no debugging symbols found)...done.
[New process 1]
Core was generated by `Xvnc'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x0000000000410834 in FakeAllocColor ()
(gdb) bt
#0  0x0000000000410834 in FakeAllocColor ()
#1  0x0000000000473d77 in rfbSpriteRestoreCursor ()
#2  0x0000000000474d9a in rfbSendFramebufferUpdate ()
#3  0x00000000004751ac in rfbProcessClientMessage ()
#4  0x000000000046a110 in rfbCheckFds ()
#5  0x0000000000469475 in ProcessInputEvents ()
#6  0x000000000041a7a1 in Dispatch ()
#7  0x000000000050b71f in main ()
(gdb) x/16i $rip-32
   0x410814 <FakeAllocColor+44>:    or     $0x66,%al
   0x410816 <FakeAllocColor+46>:    mov    %eax,0x3c(%rsp)
   0x41081a <FakeAllocColor+50>:    lea    0x38(%rsp),%rax
   0x41081f <FakeAllocColor+55>:    lea    0x3c(%rsp),%rdx
   0x410824 <FakeAllocColor+60>:    lea    0x2(%rax),%rsi
   0x410828 <FakeAllocColor+64>:    mov    0x18(%rdi),%rax
   0x41082c <FakeAllocColor+68>:    mov    %rbp,%rcx
   0x41082f <FakeAllocColor+71>:    lea    0x38(%rsp),%rdi
=> 0x410834 <FakeAllocColor+76>:    callq  *0x250(%rax)
   0x41083a <FakeAllocColor+82>:    movswl 0xc(%rbp),%r13d
   0x41083f <FakeAllocColor+87>:    cmpw   $0x5,0x8(%rbx)
   0x410844 <FakeAllocColor+92>:    ja     0x4109dd <FakeAllocColor+501>
   0x41084a <FakeAllocColor+98>:    movzwl 0x8(%rbx),%eax
   0x41084e <FakeAllocColor+102>:    jmpq   *0x50c3f0(,%rax,8)
   0x410855 <FakeAllocColor+109>:    mov    (%r12),%rax
   0x410859 <FakeAllocColor+113>:    mov    0x10(%rbp),%rdx
(gdb) info regs
Undefined info command: "regs".  Try "help info".
(gdb) info reg
rax            0x0    0
rbx            0x7172cc5f2000    124737868996608
rcx            0x0    0
rdx            0x7f7fff84f1fc    140187724476924
rsi            0x7f7fff84f1fa    140187724476922
rdi            0x7f7fff84f1f8    140187724476920
rbp            0x0    0x0
rsp            0x7f7fff84f1c0    0x7f7fff84f1c0
r8             0x18    24
r9             0x8    8
r10            0x0    0
r11            0x0    0
r12            0x7172cc51b240    124737868116544
r13            0x179    377
r14            0x7172cc50c610    124737868056080
r15            0x7172cc51b1b0    124737868116400
rip            0x410834    0x410834 <FakeAllocColor+76>
eflags         0x10206    [ PF IF RF ]
cs             0xe033    57395
ss             0xe02b    57387
ds             0x23    35
es             0x23    35
fs             0x0    0
gs             0x0    0

Nothing new was written to any file in /var/log, let alone messages. FWIW, this is the content of the ~/.vnc/<hostname>.log file:

Getting interface configuration (4): Device not configured
26/12/18 08:05:57 Xvnc version 3.3.3r2
26/12/18 08:05:57 Copyright (C) AT&T Laboratories Cambridge.
26/12/18 08:05:57 All Rights Reserved.
26/12/18 08:05:57 See http://www.uk.research.att.com/vnc for information on VNC
26/12/18 08:05:57 Desktop name 'X' (robin.engholm.org:1)
26/12/18 08:05:57 Protocol version supported 3.3
26/12/18 08:05:57 Listening for VNC connections on TCP port 5901
26/12/18 08:05:57 Listening for HTTP connections on TCP port 5801
26/12/18 08:05:57   URL http://robin.engholm.org:5801
PATH = /bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/pkg/bin:/usr/pkg/sbin:/usr/X11R7/bin:/home/mustang/bin:/usr/pkg/java/bin
xrdb: Can't open display ':1'
xsetroot:  unable to open display ':1'
twm:  unable to open display ":1"
xterm: Xt error: Can't open display: :1

26/12/18 08:06:05 Got connection from client 172.16.2.25
26/12/18 08:06:05 Protocol version 3.3
26/12/18 08:06:11 rfbProcessClientNormalMessage: ignoring unknown encoding type 541214224
26/12/18 08:06:11 rfbProcessClientNormalMessage: ignoring unknown encoding type 268447745
26/12/18 08:06:11 rfbProcessClientNormalMessage: ignoring unknown encoding type 16795158
26/12/18 08:06:11 rfbProcessClientNormalMessage: ignoring unknown encoding type 369111061
26/12/18 08:06:11 rfbProcessClientNormalMessage: ignoring unknown encoding type 352339471
26/12/18 08:06:11 rfbProcessClientNormalMessage: ignoring unknown encoding type 251670534
26/12/18 08:06:11 rfbProcessClientNormalMessage: ignoring unknown encoding type 100681221
26/12/18 08:06:11 rfbProcessClientNormalMessage: ignoring unknown encoding type 83898370
26/12/18 08:06:11 rfbProcessClientNormalMessage: ignoring unknown encoding type 33572352
26/12/18 08:06:11 rfbProcessClientNormalMessage: ignoring unknown encoding type -314
26/12/18 08:06:11 rfbProcessClientNormalMessage: ignoring unknown encoding type -239
26/12/18 08:06:11 rfbProcessClientNormalMessage: ignoring unknown encoding type -223
26/12/18 08:06:11 Pixel format for client 172.16.2.25:
26/12/18 08:06:11   8 bpp, depth 8
26/12/18 08:06:11   uses a colour map (not true colour).
26/12/18 08:06:11 no translation needed

I'm happy to perform any other experiments, just let me know. Thanks for your quick response. BTW, I have installed tigervnc on one of my hosts and that appears to work just fine.

--Dan

On 12/26/18 1:30 AM, Leonardo Taccari wrote:
The following reply was made to PR pkg/53812; it has been noted by GNATS.

From: Leonardo Taccari <leot%NetBSD.org@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: pkg/53812: vncserver consistently crashes
Date: Wed, 26 Dec 2018 10:27:25 +0100

 Hello Da,
 
 mustang%engholm.org@localhost writes:
 > [...]
 > * install NetBSD-8.0 (several previous versions also demonstrate the
 >   problem)
 >   + select installation of binary packages (pkgin)
 > * log in and install vnc package (pkgin install vnc)
 > * start a VNC server (vncserver :1)
 > * check to make sure Xvnc is running (pgrep -fl vnc;netstat -anfinet)
 > * connect a vncviewer to the vncserver
 > * note that Xvnc is no longer running (pgrep -fl vnc;netstat -anfinet)
 > * note that Xvnc.core has been created
 > [...]
 
 At least in the case built from pkgsrc...
 Can you please try to rebuild it from pkgsrc as follow?:
 
  % env CFLAGS=-g INSTALL_UNSTRIPPED=yes make replace
 
 Then when it crashes can you please share the share the output of?:
 
  % gdb -core Xvnc.core `which Xvnc`
 
 Another possible interesting information to look are messages in
 `/var/log/messages' (some pkgsrc security machinisms produce
 information there in case of program that violate them).
 
 
 Thank you!
 


Home | Main Index | Thread Index | Old Index