Re: NULL pointer dereference

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

 



Kevin,

Prepare for Bjorn's suggested edit by:
$ dkms status
whose output on my System includes:
agrsm-11c11040, 2.1.80, 2.6.31-17-generic, i686: installed
Then do:
$ sudo dkms remove -m agrsm-11c11040 -v 2.1.80 --all
This cleans a copy of the code package from the /var/lib/dkms/ folders,
wherein DKMS does the actual compiles

Next to Bjorn's edit.
 Then reinstall with
$ sudo ./dodkms

MarvS

MarvS


On Tue, Feb 2, 2010 at 6:46 AM, Bjorn Wielens <Uniacke1@xxxxxxxx> wrote:
> Hmm... Your system is an MSI laptop too :)
> Anyway, looks like it's hanging trying to locate the modem's HDA codec.
>
> Can you edit the HDA.c file in the source and uncomment the line
> #define HDAdbg (located just before the code starts, after comments.)
> Then recompile the drivers (Not sure how to do this with DKMS- I"ve
> always used Makefiles, but I think it is along the lines of sudo
> dpkg-reconfigure <package name>)
>
> This will likely provide more kernel output in your syslog, which should
> provide extra info on the cause of the crash.
>
> Another thing worth trying is doing a "stock" driver install of the
> alsa-drivers-1.0.20 package from alsa-project.org. Sometimes distros may
> apply patches to the source which adversely affect driver function.
> The problem with the agrsm drivers is that they are VERY specific. :(
>
> Best,
> Bjorn.
>
>
> On 02/02/2010 12:55 AM, Kevin Fernandez wrote:
>> Hello Bjorn,
>> I have ALSA 1.0.20, the package i've used right now is
>> agrsm-11c11040-2.1.80~20091225.tar.bz2
>> I've used dodkms and a kernel i didn't use before (2.6.31-16-generic).
>> I've booted into that kernel, ran twice Marv's unloading script (if i
>> run it twice it unloads more):
>>
>> MODULES_FINAL=isofs binfmt_misc joydev psmouse fbcon tileblit font
>> bitblit softcursor i915 drm i2c_algo_bit intel_agp agpgart video
>> output
>>
>> then loaded agrmodem and agrserial:
>> [  112.493879] * Hello Agere Driver **
>> [  112.493950] usbcore: registered new interface driver agr12dec2006
>> [  112.970170]   alloc irq_desc for 20 on node -1
>> [  112.970174]   alloc kstat_irqs on node -1
>> [  112.970182] pci 0000:00:1b.0: PCI INT A -> GSI 20 (level, low) -> IRQ 20
>> [  115.917518] Loading module Agere Modem Controller driver version
>> 2.1.80 (2007-10-01)
>> [  115.917525] Disabling lock debugging due to kernel taint
>> [  123.858338] serial8250_register_ports: BaseAddress 0x8004 Irq 20
>> [  123.858350] ttyAGS3 at I/O 0x8004 (irq = 20) is a AgereModem
>> [  123.858455] agrserial - ret_val 0, call: lt_modem_ops.init_modem
>> [  123.858463] Loading module Agere Modem Interface driver version
>> 2.1.80.0 (2007-10-01)
>>
>> (is this rev_val 0 line normal?)
>> Made a symlink /dev/modem to /dev/ttyAGS3 and /dev/ttySAGS to
>> /dev/ttyAGS3 (i think i read somewhere to do this for wvdialconf to
>> find the modem).
>>
>> Ran sudo wvdialconf /etc/wvdial.conf (instead of wvdial this time) and got this:
>>
>> [  181.005484] ==> codecType = 0x32
>> [  181.005512] BUG: unable to handle kernel NULL pointer dereference at 00000168
>> [  181.005523] IP: [<f8f68818>] azlGetResourceInformation+0x8/0x60 [agrmodem]
>> [  181.005592] *pde = 7f322067
>> [  181.005599] Oops: 0000 [#1] SMP
>> [  181.005607] last sysfs file: /sys/devices/system/cpu/cpu1/topology/core_id
>> [  181.005614] Modules linked in: agrserial agrmodem snd_hda_codec
>> snd_hwdep snd_pcm_oss snd_mixer_oss snd_pcm snd_seq_dummy snd_seq_oss
>> snd_seq_midi snd_rawmidi snd_seq_midi_event snd_seq snd_timer
>> snd_seq_device snd soundcore snd_page_alloc isofs binfmt_misc joydev
>> psmouse fbcon tileblit font bitblit softcursor i915 drm i2c_algo_bit
>> intel_agp agpgart video output [last unloaded: wlan]
>> [  181.005692]
>> [  181.005701] Pid: 5655, comm: wvdialconf Tainted: P
>> (2.6.31-16-generic #53-Ubuntu) MSI Notebook VR601
>> [  181.005708] EIP: 0060:[<f8f68818>] EFLAGS: 00010286 CPU: 0
>> [  181.005766] EIP is at azlGetResourceInformation+0x8/0x60 [agrmodem]
>> [  181.005773] EAX: 00000000 EBX: f86af0c4 ECX: 00000000 EDX: 0000020b
>> [  181.005779] ESI: f86af0c4 EDI: f86af028 EBP: f02efd00 ESP: f02efd00
>> [  181.005785]  DS: 007b ES: 007b FS: 00d8 GS: 00e0 SS: 0068
>> [  181.005792] Process wvdialconf (pid: 5655, ti=f02ee000
>> task=f02a3240 task.ti=f02ee000)
>> [  181.005797] Stack:
>> [  181.005801]  f02efd20 f8f53769 f86b95e9 f86b95ea f02efd20 c056ea7c
>> f8f81c93 f02efd6f
>> [  181.005818] <0> f02efd90 f8f3c9f1 f86af0c4 f8521048 00000008
>> 00000001 f86af39c 00000004
>> [  181.005837] <0> c162c2a0 00000000 c0784e40 00000000 c01b7e2d
>> 00000001 00000041 ffffffff
>> [  181.005857] Call Trace:
>> [  181.005934]  [<f8f53769>] ? CAzlIntelInit+0x2d/0x3c4 [agrmodem]
>> [  181.005952]  [<c056ea7c>] ? printk+0x18/0x1c
>> [  181.006038]  [<f8f3c9f1>] ? LXHardwareStart+0x11de/0x13fb [agrmodem]
>> [  181.006057]  [<c01b7e2d>] ? get_page_from_freelist+0x1bd/0x360
>> [  181.006066]  [<c0570e3a>] ? _spin_lock_irqsave+0x2a/0x40
>> [  181.006153]  [<f8f381a8>] ? linux_modem_open+0x45/0x10e [agrmodem]
>> [  181.006167]  [<c0150c2b>] ? mod_timer+0xcb/0x140
>> [  181.006226]  [<f8e922a8>] ? wrap_linux_modem_open+0x8/0x10 [agrmodem]
>> [  181.006284]  [<f8e92308>] ? modemPortOpen+0x8/0x20 [agrmodem]
>> [  181.006296]  [<f857cfe0>] ? serial8250_startup+0x210/0x380 [agrserial]
>> [  181.006308]  [<c0399376>] ? uart_startup+0x46/0x140
>> [  181.006317]  [<c0399eb2>] ? uart_open+0x102/0x220
>> [  181.006326]  [<c0380f53>] ? __tty_open+0x1a3/0x460
>> [  181.006335]  [<c038122f>] ? tty_open+0x1f/0x40
>> [  181.006344]  [<c01eaa5d>] ? chrdev_open+0xcd/0x190
>> [  181.006353]  [<c01e5a39>] ? __dentry_open+0xb9/0x230
>> [  181.006361]  [<c01e5c95>] ? nameidata_to_filp+0x55/0x70
>> [  181.006370]  [<c01ea990>] ? chrdev_open+0x0/0x190
>> [  181.006379]  [<c01f39ea>] ? do_filp_open+0x53a/0x890
>> [  181.006389]  [<c01e57d0>] ? do_sys_open+0x50/0x150
>> [  181.006397]  [<c01e9285>] ? fput+0x15/0x20
>> [  181.006405]  [<c01e56a7>] ? filp_close+0x47/0x70
>> [  181.006412]  [<c01e5939>] ? sys_open+0x29/0x40
>> [  181.006421]  [<c010336c>] ? syscall_call+0x7/0xb
>> [  181.006426] Code: 10 75 e8 b8 fd ff ff ff 5d c3 90 31 c0 5d c3 8d
>> 74 26 00 89 15 ac b0 fb f8 8b 42 04 5d 83 e0 0f c3 66 90 a1 e0 50 63
>> fd 55 89 e5 <8b> 80 68 01 00 00 8b 48 74 31 c0 90 8d 74 26 00 8b 54 81
>> 34 85
>> [  181.006535] EIP: [<f8f68818>] azlGetResourceInformation+0x8/0x60
>> [agrmodem] SS:ESP 0068:f02efd00
>> [  181.006598] CR2: 0000000000000168
>> [  181.006606] ---[ end trace c5d7e7cd560c2388 ]---
>>
>>
>> After this i tried to boot in rescue mode (only with terminal) to have
>> even less modules loaded, ran unloading twice, tried wvdial, same..
>> Everytime i have this, the device is busy after and i have to reboot.
>>
>> Thanks for your time!
>> Kevin
>>
>> 2010/2/1 Bjorn Wielens <Uniacke1@xxxxxxxx>:
>>> Marv, Kevin:
>>> Just a heads up- These crashes/segfaults almost ALWAYS caused by a
>>> mismatch between the agrsm driver version and the ALSA version on your
>>> computer.
>>>
>>> Which driver package are you using, and what is the output of
>>> 'cat /proc/asound/version'?
>>>
>>> The ALSA version for my most recently prepared tarball and its
>>> derivatives is 1.0.20. Any newer is not yet supported.
>>>
>>> Thanks,
>>> Bjorn.
>>>
>>>
>>> On 02/01/2010 08:37 PM, Marvin Stodolsky wrote:
>>>> Kevin,
>>>>
>>>> You are using the correct drivers.
>>>> Try detaching external devices as much as possible before bootup, and
>>>> shutting down non-essential programs  before using the modem.  You
>>>> could check whether the problems begin during a simple activation
>>>> with:
>>>> $ sudo wvdialconf  wvtest
>>>> or only during an actual dialout.
>>>>
>>>> I'll also send you an "unloading" script, which tries to unload
>>>> non-essential modules.
>>>> Also try using it before modem usage as:
>>>> $ sudo ./unloading
>>>>
>>>> Sadly we don't have debugging capability for these drivers, because
>>>> there is a closed source component.
>>>>
>>>> MarvS
>>>>
>>>> On Mon, Feb 1, 2010 at 11:59 AM, Kevin Fernandez <siegfri3d@xxxxxxxxx> wrote:
>>>>> Sorry this was an old modemdata, i removed slmodem a long time ago.. I
>>>>> attached a new modemdata.txt.
>>>>> On windows it says:
>>>>> Agere Systems HDA modem
>>>>> Slot 1 (internal High Definition Audio bus)
>>>>>
>>>>> device ID HDAUDIO\FUNC_02&VEN_11C1&DEV_1040&SUBSYS_11C10001&REV_1002
>>>>>
>>>>> Thanks for the help!
>>>>> Kevin
>>>>>
>>>>> 2010/2/1 Marvin Stodolsky <marvin.stodolsky@xxxxxxxxx>:
>>>>>> Kevin,
>>>>>>
>>>>>> Under install the hsfmodem software.  It is for Conexant modem chips
>>>>>> and may be interferring.
>>>>>> Then rerun scanModem
>>>>>> As described in SoftModem.txt, please get diagnostic info under Microsoft too.
>>>>>>
>>>>>> MarvS
>>>>>> scanModem maintainer
>>>>>>
>>>>>>
>>>>>> On Mon, Feb 1, 2010 at 12:57 AM, Kevin Fernandez <siegfri3d@xxxxxxxxx> wrote:
>>>>>>> Hello there,
>>>>>>> I'm trying to get my modem working for some days, still no luck.
>>>>>>> I've attached the modemdata.
>>>>>>> I compile the driver (agrsm-11c11040-2.1.80~20091225), i install it
>>>>>>> and load the modules, then i get:
>>>>>>> [  677.293574] * Hello Agere Driver **
>>>>>>> [  677.293623] usbcore: registered new interface driver agr12dec2006
>>>>>>> [  680.664348] Loading module Agere Modem Controller driver version
>>>>>>> 2.1.80 (2007-10-01)
>>>>>>> [  680.664354] Disabling lock debugging due to kernel taint
>>>>>>> [  683.898153] serial8250_register_ports: BaseAddress 0x8004 Irq 20
>>>>>>> [  683.898160] ttyAGS3 at I/O 0x8004 (irq = 20) is a AgereModem
>>>>>>> [  683.898229] agrserial - ret_val 0, call: lt_modem_ops.init_modem
>>>>>>> [  683.898234] Loading module Agere Modem Interface driver version
>>>>>>> 2.1.80.0 (2007-10-01)
>>>>>>>
>>>>>>>
>>>>>>> then i fire up wvdial to use the device and i get nothing, but i have
>>>>>>> this in dmesg:
>>>>>>>
>>>>>>> [  694.818705] ==> codecType = 0x32
>>>>>>> [  694.848151] BUG: unable to handle kernel NULL pointer dereference at 00000060
>>>>>>> [  694.848167] IP: [<f986a498>] ResumeCallBack+0x18/0x34 [agrmodem]
>>>>>>> [  694.848264] *pde = 7e584067
>>>>>>> [  694.848271] Oops: 0000 [#1] SMP
>>>>>>> [  694.848280] last sysfs file: /sys/devices/system/cpu/cpu1/topology/core_id
>>>>>>> [  694.848287] Modules linked in: agrserial agrmodem isofs udf
>>>>>>> crc_itu_t binfmt_misc ppdev vboxnetflt vboxnetadp vboxdrv joydev
>>>>>>> snd_hda_codec_realtek wlan_scan_sta ath_rate_sample snd_hda_intel
>>>>>>> pcmcia snd_hda_codec snd_hwdep snd_pcm_oss snd_mixer_oss snd_pcm
>>>>>>> snd_seq_dummy uvcvideo videodev v4l1_compat sdhci_pci sdhci led_class
>>>>>>> yenta_socket rsrc_nonstatic pcmcia_core psmouse serio_raw iptable_nat
>>>>>>> nf_nat nf_conntrack_ipv4 nf_conntrack nf_defrag_ipv4 iptable_mangle
>>>>>>> iptable_filter ip_tables x_tables ath_pci wlan ath_hal snd_seq_oss
>>>>>>> snd_seq_midi snd_rawmidi snd_seq_midi_event snd_seq snd_timer
>>>>>>> snd_seq_device snd soundcore snd_page_alloc sbp2 lp parport dm_raid45
>>>>>>> xor fbcon tileblit font bitblit softcursor i915 drm i2c_algo_bit
>>>>>>> ohci1394 ieee1394 r8169 mii intel_agp video agpgart output
>>>>>>> [  694.848449]
>>>>>>> [  694.848457] Pid: 7339, comm: wvdial Tainted: P
>>>>>>> (2.6.31-18-generic #55-Ubuntu) MSI Notebook VR601
>>>>>>> [  694.848465] EIP: 0060:[<f986a498>] EFLAGS: 00010282 CPU: 0
>>>>>>> [  694.848550] EIP is at ResumeCallBack+0x18/0x34 [agrmodem]
>>>>>>> [  694.848557] EAX: f02c0800 EBX: 00000000 ECX: 01828000 EDX: f986a480
>>>>>>> [  694.848563] ESI: e650dc9c EDI: f02c0800 EBP: e650dc58 ESP: e650dc40
>>>>>>> [  694.848569]  DS: 007b ES: 007b FS: 00d8 GS: 00e0 SS: 0068
>>>>>>> [  694.848577] Process wvdial (pid: 7339, ti=e650c000 task=e6e9e480
>>>>>>> task.ti=e650c000)
>>>>>>> [  694.848582] Stack:
>>>>>>> [  694.848586]  00000000 00000003 0002a22c f02c0800 e650dc9c f02c0800
>>>>>>> e650dc64 f8bdeca2
>>>>>>> [  694.848604] <0> f02c0800 e650dc70 f8bdcd84 efcfa200 e650dc94
>>>>>>> f8bdce20 100f0000 0100cc9f
>>>>>>> [  694.848622] <0> e650dc9c efcfa274 000f0000 e650dc9c f9947028
>>>>>>> e650dca8 f8bdde41 ffffffff
>>>>>>> [  694.848643] Call Trace:
>>>>>>> [  694.848668]  [<f8bdeca2>] ? hda_call_codec_resume+0x42/0x70 [snd_hda_codec]
>>>>>>> [  694.848691]  [<f8bdcd84>] ? snd_hda_power_up+0x34/0x60 [snd_hda_codec]
>>>>>>> [  694.848711]  [<f8bdce20>] ? codec_exec_verb+0x70/0xc0 [snd_hda_codec]
>>>>>>> [  694.848741]  [<f8bdde41>] ? snd_hda_codec_read+0x31/0x40 [snd_hda_codec]
>>>>>>> [  694.848801]  [<f989a999>] ? LnxTransferCodecVerbs+0x49/0x60 [agrmodem]
>>>>>>> [  694.848890]  [<f9884b1b>] ? VerbTransfer+0x2f/0x3c [agrmodem]
>>>>>>> [  694.848976]  [<f9884b73>] ? GetAzCodecID+0x4b/0x63 [agrmodem]
>>>>>>> [  694.849063]  [<f9885788>] ? CAzlIntelInit+0x4c/0x3c4 [agrmodem]
>>>>>>> [  694.849085]  [<c05718fc>] ? printk+0x18/0x1c
>>>>>>> [  694.849173]  [<f986e9f1>] ? LXHardwareStart+0x11de/0x13fb [agrmodem]
>>>>>>> [  694.849199]  [<c01b7ea5>] ? get_page_from_freelist+0x1c5/0x370
>>>>>>> [  694.849209]  [<c0573cba>] ? _spin_lock_irqsave+0x2a/0x40
>>>>>>> [  694.849295]  [<f986a1a8>] ? linux_modem_open+0x45/0x10e [agrmodem]
>>>>>>> [  694.849316]  [<c0150bbb>] ? mod_timer+0xcb/0x140
>>>>>>> [  694.849376]  [<f97c42a8>] ? wrap_linux_modem_open+0x8/0x10 [agrmodem]
>>>>>>> [  694.849435]  [<f97c4308>] ? modemPortOpen+0x8/0x20 [agrmodem]
>>>>>>> [  694.849447]  [<f818cfe0>] ? serial8250_startup+0x210/0x380 [agrserial]
>>>>>>> [  694.849457]  [<c039ceb6>] ? uart_startup+0x46/0x140
>>>>>>> [  694.849465]  [<c039d9f2>] ? uart_open+0x102/0x220
>>>>>>> [  694.849475]  [<c0384af3>] ? __tty_open+0x1a3/0x460
>>>>>>> [  694.849483]  [<c0384dcf>] ? tty_open+0x1f/0x40
>>>>>>> [  694.849493]  [<c01eabfd>] ? chrdev_open+0xcd/0x190
>>>>>>> [  694.849502]  [<c01e5bd9>] ? __dentry_open+0xb9/0x230
>>>>>>> [  694.849511]  [<c01e5e35>] ? nameidata_to_filp+0x55/0x70
>>>>>>> [  694.849520]  [<c01eab30>] ? chrdev_open+0x0/0x190
>>>>>>> [  694.849530]  [<c01f3b8a>] ? do_filp_open+0x53a/0x890
>>>>>>> [  694.849540]  [<c01e5970>] ? do_sys_open+0x50/0x150
>>>>>>> [  694.849548]  [<c01e9425>] ? fput+0x15/0x20
>>>>>>> [  694.849556]  [<c01e5847>] ? filp_close+0x47/0x70
>>>>>>> [  694.849564]  [<c01e5ad9>] ? sys_open+0x29/0x40
>>>>>>> [  694.849573]  [<c01033ac>] ? syscall_call+0x7/0xb
>>>>>>> [  694.849578] Code: 89 d8 83 c4 2c 5b 5e 5f 5d c3 90 90 90 90 90 90
>>>>>>> 90 90 90 55 89 e5 53 83 ec 14 8b 1d e8 e3 8e f9 c7 44 24 04 03 00 00
>>>>>>> 00 89 1c 24 <ff> 53 60 c7 44 24 04 00 00 00 00 89 1c 24 ff 53 60 b8 00
>>>>>>> 00 00
>>>>>>> [  694.849687] EIP: [<f986a498>] ResumeCallBack+0x18/0x34 [agrmodem]
>>>>>>> SS:ESP 0068:e650dc40
>>>>>>> [  694.849777] CR2: 0000000000000060
>>>>>>> [  694.849784] ---[ end trace e662cdc749dd82f6 ]---
>>>>>>>
>>>>>>>
>>>>>>> As you can see i'm running ubuntu karmic, kernel 2.6.31-18-generic .
>>>>>>> Sometimes wvdial even freezes my computer.
>>>>>>> Any help is appreciated!
>>>>>>> Thanks
>>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>>
>>
>
>


[Index of Archives]     [Linux Media Development]     [Asterisk]     [DCCP]     [Netdev]     [X.org]     [Xfree86]     [Fedora Women]     [Linux USB]

  Powered by Linux