Bug 214399 - graphics/intel-backlight : segmentation fault
Summary: graphics/intel-backlight : segmentation fault
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: Johannes M Dieterich
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-10 18:07 UTC by nuegozu
Modified: 2022-03-17 15:01 UTC (History)
5 users (show)

See Also:
bugzilla: maintainer-feedback? (freebsd)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description nuegozu 2016-11-10 18:07:28 UTC
I get a segfault when running intel_backlight:

[1] 87789 segmentation fault  intel_backlight

pid 87789 (intel_backlight), uid 0: exited on signal 11


System Information and Backtrace:

Laptop: Acer Aspire 5332

FreeBSD shelly 11.0-RELEASE-p2 FreeBSD 11.0-RELEASE-p2 #0: Mon Oct 24 06:55:27 UTC 2016
root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  amd64

Integrated Graphics Chipset: Intel(R) GM45

vgapci0@pci0:0:2:0:     class=0x030000 card=0x02121025 chip=0x2a428086 rev=0x09 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = 'Mobile 4 Series Chipset Integrated Graphics Controller'
    class      = display
--
vgapci1@pci0:0:2:1:     class=0x038000 card=0x02121025 chip=0x2a438086 rev=0x09 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = 'Mobile 4 Series Chipset Integrated Graphics Controller'
    class      = display

Using i915kms kernel module:

Id Refs Address            Size     Name
 1   26 0xffffffff80200000 1fa7c38  kernel
 2    1 0xffffffff821a9000 100ae8   i915kms.ko
 3    2 0xffffffff822aa000 55b0     iicbb.ko
 4    5 0xffffffff822b0000 6ec0     iicbus.ko
 5    2 0xffffffff822b7000 4480     iic.ko
 6    2 0xffffffff822bc000 881c0    drm2.ko
 7    1 0xffffffff82421000 587b     fdescfs.ko
 8    1 0xffffffff82427000 3775     acpi_video.ko

xorg version: xorg-7.7_2

(gdb) bt full
#0  reg_read (reg=819796) at intel_backlight.c:40
No locals.
#1  0x0000000000401d4c in main (argc=1, argv=0x7fffffffebe8) at intel_backlight.c:77
        current = 65535
        max = 0
        min = 0
        result = 0
Comment 1 Michael Gmelin freebsd_committer freebsd_triage 2017-01-29 21:55:59 UTC
Unfortunately I don't think I can help here at the moment (I don't have a machine ready to reproduce the problem).

I'll leave it open for a couple of weeks to see if somebody else can work on it, if there's no additional feedback I'll close it as "unable to reproduce". Sorry.
Comment 2 Walter Schwarzenfeld freebsd_triage 2018-02-10 14:48:44 UTC
Status? (close?).
Comment 3 Mateusz Piotrowski freebsd_committer freebsd_triage 2018-03-03 14:00:24 UTC
Maybe there are some fixes to this available in this fork of intel_backlight: https://github.com/jcs/intel_backlight_fbsd.
Comment 4 Michael Gmelin freebsd_committer freebsd_triage 2019-03-06 13:49:56 UTC
There have been multiple updates since, therefore I'll close this. Please re-open if this is still an issue.
Comment 5 Andrew Payne 2022-03-17 14:38:04 UTC
I can confirm it segfaults on a T61 laptop.
Comment 6 Mateusz Piotrowski freebsd_committer freebsd_triage 2022-03-17 14:45:32 UTC
FreeBSD 13.0 ships with a new native backlight(8). It's probably a good idea to use that new command instead of intel-backlight.
Comment 7 Andrew Payne 2022-03-17 15:01:00 UTC
Thank you Mateusz, I just upgraded and I didn't know backlight(8) was there. I just tested and it works as expected.