#59 omnibook SEGFAULTs when compiled with gcc 4.5

open
Math_B
General (24)
5
2010-08-13
2010-08-13
Anonymous
No

The module SEGFAULTs on insmod with kernel 2.6.34 if it is compiled with gcc 4.5. This does not happen if it is compiled with gcc 4.4. I do not know if this should be reported to the gcc guys...

Here is the relevant part of the kernel logs

Aug 13 13:12:00 cyric kernel: omnibook: Driver version 2.20090707-trunk.
Aug 13 13:12:00 cyric kernel: omnibook: Unknown model.
Aug 13 13:12:00 cyric kernel: omnibook: UH��SH��H��▒�<0t<1tQ�����H��▒[��D feature has no backend table, io_op not initialized.
Aug 13 13:12:00 cyric kernel: omnibook: (null) feature has no backend table, io_op not initialized.
Aug 13 13:12:00 cyric kernel: omnibook: (null) feature has no backend table, io_op not initialized.
Aug 13 13:12:00 cyric kernel: omnibook: Begin table match of (null) feature.
Aug 13 13:12:00 cyric kernel: BUG: unable to handle kernel paging request at 0000000000009800
Aug 13 13:12:00 cyric kernel: IP: [<ffffffffa0591271>] omnibook_probe+0x227/0x4d4 [omnibook]
Aug 13 13:12:00 cyric kernel: PGD b1a22067 PUD a549d067 PMD 0
Aug 13 13:12:00 cyric kernel: Oops: 0000 [#1] PREEMPT SMP
Aug 13 13:12:00 cyric kernel: last sysfs file: /sys/devices/platform/omnibook/uevent
Aug 13 13:12:00 cyric kernel: CPU 1
Aug 13 13:12:00 cyric kernel: Modules linked in: omnibook(+) nls_cp437 vfat fat usb_storage ipv6 ext2 arc4 ecb snd_seq_dummy rtl8187 snd_seq_oss snd_seq_midi_event snd_seq snd_seq_device usbhid uvcvideo videodev fuse loop snd_pcm_oss v4l1_compat mac80211 hid joydev snd_mixer_oss led_class v4l2_compat_ioctl32 snd_hda_codec_realtek cpufreq_powersave cfg80211 snd_hda_intel cpufreq_userspace eeprom_93cx6 snd_hda_codec cpufreq_conservative snd_hwdep cpufreq_ondemand snd_pcm powernow_k8 snd_timer video fan ohci_hcd snd edac_core r8169 psmouse soundcore output ehci_hcd pcspkr evdev rfkill snd_page_alloc serio_raw usbcore ac k10temp edac_mce_amd shpchp mii battery freq_table thermal button i2c_piix4 pci_hotplug processor rtc_cmos rtc_core rtc_lib ext3 jbd mbcache radeon ttm drm_kms_helper sg drm sr_mod i2c_algo_bit cdrom i2c_core sd_mod ahci ata_generic pata_atiixp pata_acpi libata scsi_mod [last unloaded: omnibook]
Aug 13 13:12:00 cyric kernel:
Aug 13 13:12:00 cyric kernel: Pid: 9687, comm: insmod Not tainted 2.6.34-ARCH #1 Portable PC/Satellite L300D
Aug 13 13:12:00 cyric kernel: RIP: 0010:[<ffffffffa0591271>] [<ffffffffa0591271>] omnibook_probe+0x227/0x4d4 [omnibook]
Aug 13 13:12:00 cyric kernel: RSP: 0018:ffff8800933b7d08 EFLAGS: 00010246
Aug 13 13:12:00 cyric kernel: RAX: 0000000000000035 RBX: 0000000000000013 RCX: 000000000007ffff
Aug 13 13:12:00 cyric kernel: RDX: 0000000000009800 RSI: 0000000000000046 RDI: 0000000000000202
Aug 13 13:12:00 cyric kernel: RBP: ffff8800933b7d68 R08: 000000000000ffff R09: 0000000000000000
Aug 13 13:12:00 cyric kernel: R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000013
Aug 13 13:12:00 cyric kernel: R13: 4ec4ec4ec4ec4eda R14: 0000000000000000 R15: 0000000000009800
Aug 13 13:12:00 cyric kernel: FS: 00002b7cfbb4cb20(0000) GS:ffff880001880000(0000) knlGS:0000000000000000
Aug 13 13:12:00 cyric kernel: CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b
Aug 13 13:12:00 cyric kernel: CR2: 0000000000009800 CR3: 00000000ac5e3000 CR4: 00000000000006e0
Aug 13 13:12:00 cyric kernel: DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
Aug 13 13:12:00 cyric kernel: DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
Aug 13 13:12:00 cyric kernel: Process insmod (pid: 9687, threadinfo ffff8800933b6000, task ffff8800708d63c0)
Aug 13 13:12:00 cyric kernel: Stack:
Aug 13 13:12:00 cyric kernel: ffff8800c9a0d200 ffff8800a28cb010 ffff8800a28cb020 ffff8800933b7fd8
Aug 13 13:12:00 cyric kernel: <0> ffff8800933b7fd8 0000000000000003 ffff8800933b7d48 ffff8800a28cb010
Aug 13 13:12:00 cyric kernel: <0> 00000000ffffffed ffffffffa058b168 0000000000000000 0000000000000003
Aug 13 13:12:00 cyric kernel: Call Trace:
Aug 13 13:12:00 cyric kernel: [<ffffffff8127fdb2>] platform_drv_probe+0x12/0x20
Aug 13 13:12:00 cyric kernel: [<ffffffff8127eac3>] driver_probe_device+0x93/0x1a0
Aug 13 13:12:00 cyric kernel: [<ffffffff8127ec70>] ? __device_attach+0x0/0x60
Aug 13 13:12:00 cyric kernel: [<ffffffff8127ecbb>] __device_attach+0x4b/0x60
Aug 13 13:12:00 cyric kernel: [<ffffffff8127d764>] bus_for_each_drv+0x64/0x90
Aug 13 13:12:00 cyric kernel: [<ffffffff8127e96c>] device_attach+0x8c/0xa0
Aug 13 13:12:00 cyric kernel: [<ffffffff8127e145>] bus_probe_device+0x25/0x40
Aug 13 13:12:00 cyric kernel: [<ffffffff8127bf50>] device_add+0x4c0/0x5b0
Aug 13 13:12:00 cyric kernel: [<ffffffff8127af9c>] ? dev_set_name+0x3c/0x40
Aug 13 13:12:00 cyric kernel: [<ffffffff81280678>] platform_device_add+0x108/0x1e0
Aug 13 13:12:00 cyric kernel: [<ffffffffa0591550>] ? omnibook_module_init+0x0/0x116 [omnibook]
Aug 13 13:12:00 cyric kernel: [<ffffffffa0591642>] omnibook_module_init+0xf2/0x116 [omnibook]
Aug 13 13:12:00 cyric kernel: [<ffffffff81002149>] do_one_initcall+0x39/0x1a0
Aug 13 13:12:00 cyric kernel: [<ffffffff8108d7df>] sys_init_module+0xdf/0x250
Aug 13 13:12:00 cyric kernel: [<ffffffff81009ec2>] system_call_fastpath+0x16/0x1b
Aug 13 13:12:00 cyric kernel: Code: a0 48 89 55 c8 48 c7 c7 d0 8c 58 a0 44 89 f2 e8 65 fc dc e0 48 83 7d c8 00 75 3f eb 18 41 ff c6 49 63 d6 48 6b d2 30 49 8d 14 17 <8b> 02 85 c0 0f 85 7a ff ff ff 48 6b db 68 48 c7 c6 c4 7d 58 a0
Aug 13 13:12:00 cyric kernel: RIP [<ffffffffa0591271>] omnibook_probe+0x227/0x4d4 [omnibook]
Aug 13 13:12:00 cyric kernel: RSP <ffff8800933b7d08>
Aug 13 13:12:00 cyric kernel: CR2: 0000000000009800
Aug 13 13:12:00 cyric kernel: ---[ end trace e4e149630bb9920a ]---

Related

Bugs: #1

Discussion

  • Rolf Eike Beer
    Rolf Eike Beer
    2011-01-13

    Dupe of 2995575