i.MX6 Xorg Segmentation fault

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

i.MX6 Xorg Segmentation fault

2,824 Views
torus1000
Contributor V

Hi,

When I run any X11 demo application I get a "Segmentation Fault" error. Please see log attached.

Does any one can help me?

console:

X.Org X Server 1.16.1
Release Date: 2014-09-21
X Protocol Version 11, Revision 0
Build Operating System: Linux 3.13.0-24-generic x86_64
Current Operating System: Linux imx6qsabresd 3.10.53-1.1.0_ga+g496fbe0 #4 SMP PREEMPT Mon Jun 15 12:08:25 JST 2015 armv7l
Kernel command line: console=ttymxc0,115200 root=/dev/mmcblk2p2 rootwait rw video=mxcfb0:dev=ldb,LDB-1080P60,if=RGB24,bpp=32 ldb=spl1
Build Date: 26 May 2015  06:16:35PM

Current version of pixman: 0.32.4
        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.1.log", Time: Wed Jun 24 10:57:34 2015
(==) Using config file: "/etc/X11/xorg.conf"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
xinit: Unable to run program "xterm": No such file or directory
Specify a program on the command line or make sure that /usr/bin
is in your path.

xinit: connection to X server lost

waiting for X server to shut down (EE) Server terminated successfully (0). Closing log file.

Poky (Yocto Project Reference Distro) 1.6.2 imx6qsabresd /dev/ttymxc0

Xorg.log:

[475291.213]
X.Org X Server 1.16.1
Release Date: 2014-09-21
[475291.213] X Protocol Version 11, Revision 0
[475291.213] Build Operating System: Linux 3.13.0-24-generic x86_64
[475291.213] Current Operating System: Linux imx6qsabresd 3.10.53-1.1.0_ga+g496fbe0 #4 SMP PREEMPT Mon Jun 15 12:08:25 JST 2015 armv7l
[475291.214] Kernel command line: console=ttymxc0,115200 root=/dev/mmcblk2p2 rootwait rw video=mxcfb0:dev=ldb,LDB-1080P60,if=RGB24,bpp=32 ldb=spl1
[475291.214] Build Date: 26 May 2015  06:16:35PM
[475291.214] 
[475291.214] Current version of pixman: 0.32.4
[475291.214]  Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[475291.214] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[475291.214] (==) Log file: "/var/log/Xorg.0.log", Time: Mon Jun 22 17:32:48 2015
[475291.218] (==) Using config file: "/etc/X11/xorg.conf"
[475291.218] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[475291.220] (==) No Layout section.  Using the first Screen section.
[475291.220] (==) No screen section available. Using defaults.
[475291.220] (**) |-->Screen "Default Screen Section" (0)
[475291.220] (**) |   |-->Monitor "<default monitor>"
[475291.224] (==) No device specified for screen "Default Screen Section".
Using the first device section listed.
[475291.224] (**) |   |-->Device "i.MX Accelerated Framebuffer Device"
[475291.224] (==) No monitor specified for screen "Default Screen Section".
Using a default monitor configuration.
[475291.224] (**) Option "BlankTime" "0"
[475291.225] (**) Option "StandbyTime" "0"
[475291.225] (**) Option "SuspendTime" "0"
[475291.225] (**) Option "OffTime" "0"
[475291.225] (==) Automatically adding devices
[475291.225] (==) Automatically enabling devices
[475291.225] (==) Automatically adding GPU devices
[475291.229] (WW) The directory "/usr/share/fonts/X11/TTF/" does not exist.
[475291.229]  Entry deleted from font path.
[475291.229] (WW) The directory "/usr/share/fonts/X11/OTF/" does not exist.
[475291.229]  Entry deleted from font path.
[475291.229] (WW) The directory "/usr/share/fonts/X11/Type1/" does not exist.
[475291.229]  Entry deleted from font path.
[475291.231] (==) FontPath set to:
/usr/share/fonts/X11/misc/,
/usr/share/fonts/X11/100dpi/,
/usr/share/fonts/X11/75dpi/
[475291.231] (==) ModulePath set to "/usr/lib/xorg/modules"
[475291.231] (II) The server relies on udev to provide the list of input devices.
If no devices become available, reconfigure udev or disable AutoAddDevices.
[475291.231] (II) Loader magic: 0x1b3a20
[475291.231] (II) Module ABI versions:
[475291.231]  X.Org ANSI C Emulation: 0.4
[475291.231]  X.Org Video Driver: 18.0
[475291.231]  X.Org XInput driver : 21.0
[475291.232]  X.Org Server Extension : 8.0
[475291.240] (EE) systemd-logind: failed to get session: The name org.freedesktop.login1 was not provided by any .service files
[475291.241] (II) xfree86: Adding drm device (/dev/dri/card0)
[475291.242] (II) no primary bus or device found
[475291.242]  falling back to /sys/devices/platform/Vivante GCCore/drm/card0
[475291.242] (II) LoadModule: "glx"
[475291.248] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[475291.299] (II) Module glx: vendor="X.Org Foundation"
[475291.299]  compiled for 1.16.1, module version = 1.0.0
[475291.299]  ABI class: X.Org Server Extension, version 8.0
[475291.299] (==) AIGLX enabled
[475291.299] (II) LoadModule: "vivante"
[475291.300] (II) Loading /usr/lib/xorg/modules/drivers/vivante_drv.so
[475291.309] (II) Module vivante: vendor="X.Org Foundation"
[475291.309]  compiled for 1.16.1, module version = 1.0.0
[475291.309]  Module class: X.Org Video Driver
[475291.309]  ABI class: X.Org Video Driver, version 18.0
[475291.309] (II) VIVANTE: driver for vivante fb: VivanteGC500, VivanteGC2100,
VivanteGCCORE
[475291.309] (--) using VT number 1

[475291.409] (WW) Falling back to old probe method for vivante
[475291.409] (II) Loading sub module "fbdevhw"
[475291.409] (II) LoadModule: "fbdevhw"
[475291.409] (II) Loading /usr/lib/xorg/modules/libfbdevhw.so
[475291.419] (II) Module fbdevhw: vendor="X.Org Foundation"
[475291.419]  compiled for 1.16.1, module version = 0.0.2
[475291.419]  ABI class: X.Org Video Driver, version 18.0
[475291.419] (II) VIVANTE(0): using default device
[475291.419] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[475291.419] (II) VIVANTE(0): Device preferred mode 'fb0':U:1920x1080p-56
[475291.420] (II) VIVANTE(0): Creating default Display subsection in Screen section
"Default Screen Section" for depth/fbbpp 24/32
[475291.420] (==) VIVANTE(0): Depth 24, (==) framebuffer bpp 32
[475291.420] (==) VIVANTE(0): RGB weight 888
[475291.420] (==) VIVANTE(0): Default visual is TrueColor
[475291.420] (==) VIVANTE(0): Using gamma correction (1.0, 1.0, 1.0)
[475291.420] (**) VIVANTE(0): Option "fbdev" "/dev/fb0"
[475291.420] (II) VIVANTE(0): checking modes against framebuffer device...
[475291.420] (II) VIVANTE(0): checking modes against monitor...
[475291.420] (II) VIVANTE(0): Use built in mode (bpp 32)
[475291.420] (--) VIVANTE(0): Virtual size is 0x0 (pitch 0)
[475291.420] (==) VIVANTE(0): DPI set to (96, 96)
[475291.420] (II) Loading sub module "fb"
[475291.420] (II) LoadModule: "fb"
[475291.420] (II) Loading /usr/lib/xorg/modules/libfb.so
[475291.425] (II) Module fb: vendor="X.Org Foundation"
[475291.425]  compiled for 1.16.1, module version = 1.0.0
[475291.425]  ABI class: X.Org ANSI C Emulation, version 0.4
[475291.425] (II) Loading sub module "exa"
[475291.425] (II) LoadModule: "exa"
[475291.425] (II) Loading /usr/lib/xorg/modules/libexa.so
[475291.428] (II) Module exa: vendor="X.Org Foundation"
[475291.428]  compiled for 1.16.1, module version = 2.6.0
[475291.428]  ABI class: X.Org Video Driver, version 18.0
[475291.555] (II) VIVANTE(0): printing discovered frame buffer 'fb0' supported modes:
[475291.555] (II) VIVANTE(0): Modeline "U:1920x1080p-56"x0.0  130.00  1920 1960 1970 2070  1080 1083 1085 1115 -hsync -vsync -csync (62.8 kHz eP)
[475291.147] (II) VIVANTE(0): Output DISP4 BG has no monitor section
[475291.147] (II) VIVANTE(0): Printing probed modes for output DISP4 BG
[475291.147] (II) VIVANTE(0): Modeline "U:1920x1080p-56"x56.3  130.00  1920 1960 1970 2070  1080 1083 1085 1115 -hsync -vsync -csync (62.8 kHz eP)
[475291.147] (II) VIVANTE(0): Output DISP4 BG connected
[475291.147] (II) VIVANTE(0): Using exact sizes for initial modes
[475291.147] (II) VIVANTE(0): Output DISP4 BG using initial mode U:1920x1080p-56
[475291.147] (II) VIVANTE(0): imxDisplayPreInit: virtual set 1920 x 1080, display width 0
[475291.147] (II) VIVANTE(0): FBDevPreInit: adjust display width 1920
[475291.147] (**) VIVANTE(0): PreInit done
[475291.147] (--) Depth 24 pixmap format is 32 bpp
[475291.147] (II) VIVANTE(0): Init mode for fb device
[475291.195] (II) VIVANTE(0): hardware: DISP4 BG (video memory: 16335kB)
[475291.196] (II) VIVANTE(0): FB Start = 0x75726000  FB Base = 0x75726000  FB Offset = (nil) FB PhyBase 0x45200000
[475291.196] (II) VIVANTE(0): reserve 8355840 bytes for on screen frame buffer; total fb memory size 16727040 bytes; offset of shadow buffer 8355840
[475291.247] (II) VIVANTE(0): hardware: DISP4 BG (video memory: 16335kB)
[475291.287] (II) VIVANTE(0): test Initializing EXA
[475291.287] (II) VIVANTE(0): (driver build from: -dirty)
[475291.291] (II) EXA(0): Driver allocated offscreen pixmaps
[475291.291] (II) EXA(0): Driver registered support for the following operations:
[475291.291] (II)         Solid
[475291.291] (II)         Copy
[475291.291] (II)         Composite (RENDER acceleration)
[475291.291] (II)         UploadToScreen
[475291.310] (II) VIVANTE(0): Init SHM pixmap support
[475291.310] (==) VIVANTE(0): Backing store enabled
[475291.313] (==) VIVANTE(0): DPMS enabled
[475291.313] (II) VIVANTE(0): RandR 1.2 enabled, ignore the following RandR disabled message.
[475291.314] drmOpenDevice: node name is /dev/dri/card0
[475291.315] drmOpenDevice: open result is 13, (OK)
[475291.315] drmOpenDevice: node name is /dev/dri/card0
[475291.315] drmOpenDevice: open result is 13, (OK)
[475291.315] drmOpenByBusid: Searching for BusID platform:Vivante GCCore:00
[475291.315] drmOpenDevice: node name is /dev/dri/card0
[475291.315] drmOpenDevice: open result is 13, (OK)
[475291.315] drmOpenByBusid: drmOpenMinor returns 13
[475291.315] drmOpenByBusid: drmGetBusid reports platform:Vivante GCCore:00
[475291.315] (II) [drm] DRM interface version 1.4
[475291.315] (II) [drm] DRM open master succeeded.
[475291.315] (II) VIVANTE(0): [drm] Using the DRM lock SAREA also for drawables.
[475291.315] (II) VIVANTE(0): [drm] framebuffer handle = 0x45200000
[475291.316] (II) VIVANTE(0): [drm] added 1 reserved context for kernel
[475291.316] (II) VIVANTE(0): X context handle = 0x1
[475291.316] (II) VIVANTE(0): [drm] installed DRM signal handler
[475291.316] (II) VIVANTE(0): [DRI] installation complete
[475291.316] (--) RandR disabled
[475291.359] (II) AIGLX: Screen 0 is not DRI2 capable
[475291.359] (EE) AIGLX: reverting to software rendering
[475291.461] (II) AIGLX: Loaded and initialized swrast
[475291.461] (II) GLX: Initialized DRISWRAST GL provider for screen 0
[475291.464] (II) VIVANTE(0): Setting screen physical size to 508 x 285
[475291.685] (II) config/udev: Adding input device Xxxxxx XXX-XXxXxX (/dev/input/event2)
[475291.685] (**) Xxxxxx XXX-XXxXxX: Applying InputClass "evdev touchscreen catchall"
[475291.685] (II) LoadModule: "evdev"
[475291.685] (II) Loading /usr/lib/xorg/modules/input/evdev_drv.so
[475291.688] (II) Module evdev: vendor="X.Org Foundation"
[475291.689]  compiled for 1.16.1, module version = 2.8.2
[475291.689]  Module class: X.Org XInput Driver
[475291.689]  ABI class: X.Org XInput driver, version 21.0
[475291.689] (II) Using input driver 'evdev' for 'Xxxxxx XXX-XXxXxX'
[475291.689] (**) Xxxxxx XXX-XXxXxX: always reports core events
[475291.689] (**) evdev: Xxxxxx XXX-XXxXxX: Device: "/dev/input/event2"
[475291.689] (II) evdev: Xxxxxx XXX-XXxXxX: Using mtdev for this device
[475291.689] (--) evdev: Xxxxxx XXX-XXxXxX: Vendor 0x1477 Product 0x1021
[475291.689] (--) evdev: Xxxxxx XXX-XXxXxX: Found absolute axes
[475291.689] (--) evdev: Xxxxxx XXX-XXxXxX: Found absolute multitouch axes
[475291.690] (II) evdev: Xxxxxx XXX-XXxXxX: No buttons found, faking one.
[475291.690] (--) evdev: Xxxxxx XXX-XXxXxX: Found x and y absolute axes
[475291.690] (--) evdev: Xxxxxx XXX-XXxXxX: Found absolute touchscreen
[475291.690] (II) evdev: Xxxxxx XXX-XXxXxX: Configuring as touchscreen
[475291.690] (**) evdev: Xxxxxx XXX-XXxXxX: YAxisMapping: buttons 4 and 5
[475291.690] (**) evdev: Xxxxxx XXX-XXxXxX: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
[475291.690] (**) Option "config_info" "udev:/sys/devices/soc0/soc.1/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1.3/1-1.3:1.0/input/input2/event2"
[475291.690] (II) XINPUT: Adding extended input device "Xxxxxx XXX-XXxXxX" (type: TOUCHSCREEN, id 6)
[475291.690] (II) evdev: Xxxxxx XXX-XXxXxX: initialized for absolute axes.
[475291.691] (**) Xxxxxx XXX-XXxXxX: (accel) keeping acceleration scheme 1
[475291.691] (**) Xxxxxx XXX-XXxXxX: (accel) acceleration profile 0
[475291.691] (**) Xxxxxx XXX-XXxXxX: (accel) acceleration factor: 2.000
[475291.691] (**) Xxxxxx XXX-XXxXxX: (accel) acceleration threshold: 4
[475291.692] (II) config/udev: Adding input device Xxxxxx XXX-XXxXxX (/dev/input/mouse1)
[475291.692] (II) No input driver specified, ignoring this device.
[475291.692] (II) This device may have been added with another device file.
[475291.694] (II) config/udev: Adding input device ELECOM ELECOM USB mouse with wheel  (/dev/input/event0)
[475291.694] (**) ELECOM ELECOM USB mouse with wheel : Applying InputClass "evdev pointer catchall"
[475291.694] (II) Using input driver 'evdev' for 'ELECOM ELECOM USB mouse with wheel '
[475291.694] (**) ELECOM ELECOM USB mouse with wheel : always reports core events
[475291.694] (**) evdev: ELECOM ELECOM USB mouse with wheel : Device: "/dev/input/event0"
[475291.695] (--) evdev: ELECOM ELECOM USB mouse with wheel : Vendor 0x56e Product 0x1c
[475291.695] (--) evdev: ELECOM ELECOM USB mouse with wheel : Found 3 mouse buttons
[475291.695] (--) evdev: ELECOM ELECOM USB mouse with wheel : Found scroll wheel(s)
[475291.695] (--) evdev: ELECOM ELECOM USB mouse with wheel : Found relative axes
[475291.695] (--) evdev: ELECOM ELECOM USB mouse with wheel : Found x and y relative axes
[475291.695] (II) evdev: ELECOM ELECOM USB mouse with wheel : Configuring as mouse
[475291.695] (II) evdev: ELECOM ELECOM USB mouse with wheel : Adding scrollwheel support
[475291.695] (**) evdev: ELECOM ELECOM USB mouse with wheel : YAxisMapping: buttons 4 and 5
[475291.695] (**) evdev: ELECOM ELECOM USB mouse with wheel : EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
[475291.695] (**) Option "config_info" "udev:/sys/devices/soc0/soc.1/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1.4/1-1.4.1/1-1.4.1:1.0/input/input0/event0"
[475291.695] (II) XINPUT: Adding extended input device "ELECOM ELECOM USB mouse with wheel " (type: MOUSE, id 7)
[475291.695] (II) evdev: ELECOM ELECOM USB mouse with wheel : initialized for relative axes.
[475291.695] (**) ELECOM ELECOM USB mouse with wheel : (accel) keeping acceleration scheme 1
[475291.696] (**) ELECOM ELECOM USB mouse with wheel : (accel) acceleration profile 0
[475291.696] (**) ELECOM ELECOM USB mouse with wheel : (accel) acceleration factor: 2.000
[475291.696] (**) ELECOM ELECOM USB mouse with wheel : (accel) acceleration threshold: 4
[475291.697] (II) config/udev: Adding input device ELECOM ELECOM USB mouse with wheel  (/dev/input/mouse0)
[475291.697] (II) No input driver specified, ignoring this device.
[475291.697] (II) This device may have been added with another device file.
[475291.699] (II) config/udev: Adding input device Dell Dell USB Keyboard (/dev/input/event1)
[475291.699] (**) Dell Dell USB Keyboard: Applying InputClass "evdev keyboard catchall"
[475291.699] (II) Using input driver 'evdev' for 'Dell Dell USB Keyboard'
[475291.699] (**) Dell Dell USB Keyboard: always reports core events
[475291.699] (**) evdev: Dell Dell USB Keyboard: Device: "/dev/input/event1"
[475291.699] (--) evdev: Dell Dell USB Keyboard: Vendor 0x413c Product 0x2003
[475291.699] (--) evdev: Dell Dell USB Keyboard: Found keys
[475291.699] (II) evdev: Dell Dell USB Keyboard: Configuring as keyboard
[475291.699] (**) Option "config_info" "udev:/sys/devices/soc0/soc.1/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1.4/1-1.4.2/1-1.4.2:1.0/input/input1/event1"
[475291.699] (II) XINPUT: Adding extended input device "Dell Dell USB Keyboard" (type: KEYBOARD, id 8)
[475291.699] (**) Option "xkb_rules" "evdev"
[475291.699] (**) Option "xkb_model" "pc104"
[475291.699] (**) Option "xkb_layout" "us"
(EE)
(EE) Backtrace:
(EE)
(EE) Segmentation fault at address 0x68
(EE)
Fatal server error:
(EE) Caught signal 11 (Segmentation fault). Server aborting
(EE)
(EE)
Please consult the The X.Org Foundation support
  at http://wiki.x.org
for help.
(EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
(EE)
(EE) Server terminated with error (1). Closing log file.

0 Kudos
Reply
3 Replies

1,293 Views
ankith
Contributor I

Hi torus1000,

Have you solved this issue?, I'm also getting same error with qml application.

I'm trying to run two separate application in two separate display(HDMI+LVDS) in freescale imx6QP board with two separate Xserver. I got error in Xorg.1.log as given below.

[1869838.822] (EE) /dev/dri/card0: failed to set DRM interface version 1.4: Permission denied
[1869838.855] (EE) Screen 1 deleted because of no matching config section.
[1869839.530] (EE) [drm] Could not set DRM device bus ID.
[1869839.530] (EE) VIVANTE(0): [dri] DRIScreenInit failed.  Disabling DRI.

Please help me if you have solved the issue, any information related will be very helpful.

thanks.

0 Kudos
Reply

1,293 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hi torus1000,

Which application are you trying to run?, apparently some driver are not loaded correctly.

Regards

0 Kudos
Reply

1,293 Views
torus1000
Contributor V

Dear Bio

Thank you for reply.

We tried Qt applications on x11 on Linux OS (L3.10.53).
Qt applications were created by QtCleator5.2.

Here is our segmentation fault reproduce procedure:

1 Add HID Multitouch panels driver in kernel config menu and build images as following.

  $ MACHINE=imx6qsabresd source fsl-setup-release.sh -b build-x11 -e x11

2 Write images to the SD card.

3 Bootup from SD slot then start X11.

4 Run Qt application.

5 Touch the panel quickly many times.

6 Memory size of Xorg server increase.

7 Segmentation fault occur. Screen freeze into white.

If we use mouse instead of multitouch screen, segmentation fault was never happen.

If exclude xinput2 lib from Qt runtime lib v5.2, segmentation fault was never happen neither.
However 3D drawing corruped.

(Q) Is there anyway to avoid segmentation fault and keep normal 3D drawing?

Regards,

0 Kudos
Reply