Bug 1368569

Summary: vncserver segfaults during F25 aarch64 installation
Product: [Fedora] Fedora Reporter: Paul Whalen <pwhalen>
Component: libjpeg-turboAssignee: Petr Hracek <phracek>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 25CC: bphinz, jgrulich, negativo17, nforro, pbrobinson, phracek, twaugh
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: aarch64   
OS: Linux   
Whiteboard:
Fixed In Version: libjpeg-turbo-1.5.0-2.fc25 libjpeg-turbo-1.5.0-2.fc24 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-09-18 17:44:09 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 922257    
Attachments:
Description Flags
vncserver.log
none
anaconda.log
none
X.log
none
packaging.log
none
storage.log
none
full backtrace none

Description Paul Whalen 2016-08-19 19:32:03 UTC
Created attachment 1192268 [details]
vncserver.log

Description of problem:

vncserver crashes shortly after launch during F25 installation.


Version-Release number of selected component (if applicable):

tigervnc-server-1.6.90-1.fc25.aarch64

How reproducible:
everytime

Steps to Reproduce:
1. Attempt to install F25 for aarch64 using the latest with virt-manager or hw

http://dl.fedoraproject.org/pub/fedora-secondary/development/25/Everything/aarch64/iso/

2. Shortly after selecting vnc and attempting installation, it will fail with:

(anaconda:1787): Gdk-WARNING **: anaconda: Fatal IO error 11 (Resource temporarily unavailable) on X server :1.


Pane is dead

Additional info:

from vncserver.log:

XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server ":1"
      after 138 requests (138 known processed) with 0 events remaining.
for information on TigerVNC.
Underlying X server release 11803000, The X.Org Foundation


Fri Aug 19 17:56:33 2016
 vncext:      VNC extension running!
 vncext:      Listening for VNC connections on all interface(s), port 5901
 vncext:      created VNC server for screen 0

Fri Aug 19 17:56:50 2016
 Connections: accepted: 192.168.122.1::53910
 SConnection: Client needs protocol version 3.8
 SConnection: Client requests security type None(1)
 VNCSConnST:  Server default pixel format depth 16 (16bpp) little-endian rgb565
 VNCSConnST:  Client pixel format depth 24 (32bpp) little-endian rgb888
(EE) 
(EE) Backtrace:
(EE) 0: Xvnc (xorg_backtrace+0x58) [0x2aaaddab248]
(EE) 1: Xvnc (0x2aaadbd0000+0x1df428) [0x2aaaddaf428]
(EE) 2: linux-vdso.so.1 (__kernel_rt_sigreturn+0x0) [0x3ff78c906c0]
(EE) 3: /lib64/libjpeg.so.62 (0x3ff78c10000+0x80a4) [0x3ff78c180a4]
(EE) 4: /lib64/libjpeg.so.62 (0x3ff78c10000+0x5408) [0x3ff78c15408]
(EE) 5: /lib64/libjpeg.so.62 (0x3ff78c10000+0x116c4) [0x3ff78c216c4]
(EE) 6: /lib64/libjpeg.so.62 (jpeg_write_scanlines+0xbc) [0x3ff78c14a64]
(EE) 7: Xvnc (_ZN3rfb14JpegCompressor8compressEPKhiRKNS_4RectERKNS_11PixelFormatEii+0x1f8) [0x2aaadd47200]
(EE) 8: Xvnc (_ZN3rfb16TightJPEGEncoder9writeRectEPKNS_11PixelBufferERKNS_7PaletteE+0xc8) [0x2aaadd44398]
(EE) 9: Xvnc (_ZN3rfb13EncodeManager12writeSubRectERKNS_4RectEPKNS_11PixelBufferE+0x1a8) [0x2aaadd3a958]
(EE) 10: Xvnc (_ZN3rfb13EncodeManager10writeRectsERKNS_6RegionEPKNS_11PixelBufferE+0x154) [0x2aaadd3abc4]
(EE) 11: Xvnc (_ZN3rfb13EncodeManager11writeUpdateERKNS_10UpdateInfoEPKNS_11PixelBufferEPKNS_14RenderedCursorE+0xdc) [0x2aaadd3ad0c]
(EE) 12: Xvnc (_ZN3rfb16VNCSConnectionST22writeFramebufferUpdateEv+0x2f0) [0x2aaadd34b90]
(EE) 13: Xvnc (_ZN3rfb16VNCSConnectionST29writeFramebufferUpdateOrCloseEv+0x14) [0x2aaadd35214]
(EE) 14: Xvnc (_ZN3rfb11VNCServerST9tryUpdateEv+0x40) [0x2aaadd24878]
(EE) 15: Xvnc (_ZN14XserverDesktop11add_changedERKN3rfb6RegionE+0x20) [0x2aaadd14f00]
(EE) 16: Xvnc (vncAddChanged+0x6c) [0x2aaadd0cc74]
(EE) 17: Xvnc (0x2aaadbd0000+0x14261c) [0x2aaadd1261c]
(EE) 18: Xvnc (0x2aaadbd0000+0xf2cbc) [0x2aaadcc2cbc]
(EE) 19: Xvnc (0x2aaadbd0000+0xe6a60) [0x2aaadcb6a60]
(EE) 20: Xvnc (Dispatch+0x37c) [0x2aaadd5da04]
(EE) 21: Xvnc (dix_main+0x3c4) [0x2aaadd61874]
(EE) 22: /lib64/libc.so.6 (__libc_start_main+0xe8) [0x3ff781ff3f0]
(EE) 23: Xvnc (0x2aaadbd0000+0x65a48) [0x2aaadc35a48]
(EE) 
(EE) Segmentation fault at address 0x13fdcf823acc
(EE) 
Fatal server error:
(EE) Caught signal 11 (Segmentation fault). Server aborting
(EE)

Comment 1 Paul Whalen 2016-08-19 19:32:47 UTC
Created attachment 1192269 [details]
anaconda.log

Comment 2 Paul Whalen 2016-08-19 19:33:19 UTC
Created attachment 1192270 [details]
X.log

Comment 3 Paul Whalen 2016-08-19 19:33:58 UTC
Created attachment 1192271 [details]
packaging.log

Comment 4 Paul Whalen 2016-08-19 19:35:05 UTC
Created attachment 1192273 [details]
storage.log

Comment 5 Fedora Update System 2016-09-12 08:56:05 UTC
tigervnc-1.7.0-1.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-b249196d24

Comment 6 Fedora Update System 2016-09-12 08:56:23 UTC
tigervnc-1.7.0-1.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-a5a9f6f573

Comment 7 Fedora Update System 2016-09-12 08:56:34 UTC
tigervnc-1.7.0-1.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2016-0a54cd6e03

Comment 8 Fedora Update System 2016-09-12 14:50:29 UTC
tigervnc-1.7.0-1.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-b249196d24

Comment 9 Fedora Update System 2016-09-12 15:26:38 UTC
tigervnc-1.7.0-1.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-a5a9f6f573

Comment 10 Fedora Update System 2016-09-12 15:26:47 UTC
tigervnc-1.7.0-1.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-0a54cd6e03

Comment 11 Paul Whalen 2016-09-13 16:13:18 UTC
Still seeing this with tiger-1.7

Thread 1 "Xvnc" received signal SIGSEGV, Segmentation fault.
encode_mcu_huff (cinfo=0x2aaee610850, MCU_data=<optimized out>) at jchuff.c:675
675	      state.cur.last_dc_val[ci] = MCU_data[blkn][0][0];
(gdb) bt full
#0  encode_mcu_huff (cinfo=0x2aaee610850, MCU_data=<optimized out>)
    at jchuff.c:675
        entropy = 0x2aaee9eda90
        state = {next_output_byte = 0x2aaee748142 "\001\377", 
          free_in_buffer = 125054, cur = {put_buffer = 13396343463626488332, 
            put_bits = 16, last_dc_val = {210, -5, -1, 15132390}}, 
          cinfo = 0x2aaee610850}
        blkn = 3
        ci = -1487503252
        compptr = <optimized out>


Full backtrace attached.

Comment 12 Paul Whalen 2016-09-13 16:14:25 UTC
Created attachment 1200557 [details]
full backtrace

Comment 13 Peter Robinson 2016-09-13 16:55:12 UTC
Also reported upstream: https://github.com/libjpeg-turbo/libjpeg-turbo/issues/97

Comment 14 Fedora Update System 2016-09-13 20:00:52 UTC
libjpeg-turbo-1.5.0-2.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-75b7843684

Comment 15 Fedora Update System 2016-09-13 20:01:05 UTC
libjpeg-turbo-1.5.0-2.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2016-4c11322c0e

Comment 16 Fedora Update System 2016-09-13 22:20:30 UTC
tigervnc-1.7.0-1.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.

Comment 17 Fedora Update System 2016-09-14 20:56:48 UTC
libjpeg-turbo-1.5.0-2.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-75b7843684

Comment 18 Fedora Update System 2016-09-14 21:24:10 UTC
libjpeg-turbo-1.5.0-2.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-4c11322c0e

Comment 19 Fedora Update System 2016-09-15 18:39:42 UTC
tigervnc-1.7.0-1.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.

Comment 20 Paul Whalen 2016-09-16 15:02:20 UTC
Reopening, still seeing this with libjpeg-turbo-1.5.0-2.fc25.aarch64

Thread 1 "Xvnc" received signal SIGSEGV, Segmentation fault.
encode_mcu_huff (cinfo=0x2aae7f40950, MCU_data=<optimized out>) at jchuff.c:675
675	      state.cur.last_dc_val[ci] = MCU_data[blkn][0][0];
(gdb) bt full
#0  encode_mcu_huff (cinfo=0x2aae7f40950, MCU_data=<optimized out>) at jchuff.c:675
        entropy = 0x2aae830ab80
        state = {next_output_byte = 0x2aae803f65a "hߑ\341U\253Y\316\\\221oW\370\066z\257\374%^;\377", free_in_buffer = 125702, cur = {put_buffer = 7713560057402476410, put_bits = 33, last_dc_val = {-306, 58, -21, 906589833}}, 
          cinfo = 0x2aae7f40950}
        blkn = 1
        ci = -1692630564
        compptr = <optimized out>

Comment 21 Paul Whalen 2016-09-16 18:31:05 UTC
Disabling SIMD-accelerated Huffman encoder(JSIMD_NOHUFFENC=1) seems to have fixed it.

Comment 22 Fedora Update System 2016-09-18 17:44:04 UTC
libjpeg-turbo-1.5.0-2.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.

Comment 23 Fedora Update System 2016-09-19 03:19:13 UTC
libjpeg-turbo-1.5.0-2.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.

Comment 24 Fedora Update System 2016-09-29 22:53:16 UTC
tigervnc-1.7.0-1.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.