[Asterisk-Dev] bristuff & zaptel (long)
marek cervenka
cervajs at fpf.slu.cz
Wed Dec 29 06:30:23 MST 2004
hi,
i have problem with segfaults in zaptel/zaphfc
(maybe i may post this email to developer of bristuff)
i can insmod/rmmod vzaphfc (with rmmod zaphfc from bristuff my PC hang)
but when i run zttool/ztcfg segfault occured
any help?
fedora core 3
kernel-2.6.9-1.681_FC3 (recompiled to 2.6.9-prep)
isdn hfc pci card
zaptel 1.0.3
libpri 1.0.3
bristuff 0.2.0-RC3
zaphfc-vihai-30 (orlando.com)
RPMS/SRPMS ftp://ftp.slu.cz/pub/people/cervajs/asterisk/fc3
dmesg
---------
Unable to handle kernel paging request at virtual address 22e662f0
printing eip:
22ab01ef
*pde = 1d7c5067
Oops: 0000 [#1]
Modules linked in: vzaphfc(U) zaptel(U) crc_ccitt(U) radeon(U) tun(U)
parport_pc(U) lp(U) parport(U) autofs4(U) i2c_dev(U) i2c_core(U) button(U)
battery(U) ac(U) md5(U) ipv6(U) uhci_hcd(U) snd_intel8x0(U)
snd_ac97_codec(U) snd_pcm_oss(U) snd_mixer_oss(U) snd_pcm(U) snd_timer(U)
snd_page_alloc(U) gameport(U) snd_mpu401_uart(U) snd_rawmidi(U)
snd_seq_device(U) snd(U) soundcore(U) e100(U) mii(U) floppy(U)
dm_snapshot(U) dm_zero(U) dm_mirror(U) ext3(U) jbd(U) dm_mod(U)
CPU: 0
EIP: 0060:[<22ab01ef>] Tainted: GF VLI
EFLAGS: 00210212 (2.6.9-prep)
EIP is at zt_open+0x4f/0x180 [zaptel]
eax: 1d244b3c ebx: 000e343c ecx: 11762d8c edx: 00000000
esi: 0975a320 edi: 11762d8c ebp: 00000000 esp: 1ec1af10
ds: 007b es: 007b ss: 0068
Process zttool (pid: 10457, threadinfo=1ec1a000 task=1f226030)
Stack: 1ec1a000 20661c60 11762d8c 0217068e 00000000 0975a320 00000000
0975a320
11762d8c 21dcb9e0 00000000 02164c5e 1f724410 1ec1af58 00000002
20d7e000
1ec1a000 02164b9b 1f724410 21dcb9e0 00000000 00000d71 20d7e00c
00000101
Call Trace:
[<0217068e>] chrdev_open+0x3bd/0x458
[<02164c5e>] dentry_open+0xbd/0x180
[<02164b9b>] filp_open+0x36/0x3c
[<021650b1>] sys_open+0x31/0x7d
Code: <3>Debug: sleeping function called from invalid context at
include/linux/rwsem.h:43
in_atomic():0[expected: 0], irqs_disabled():1
[<0211cbcb>] __might_sleep+0x7d/0x8a
[<0215e726>] rw_vm+0x20e/0x47a
[<22ab01c4>] zt_open+0x24/0x180 [zaptel]
[<22ab01c4>] zt_open+0x24/0x180 [zaptel]
[<0215ee70>] get_user_size+0x30/0x57
[<22ab01c4>] zt_open+0x24/0x180 [zaptel]
[<0210682b>] show_registers+0x109/0x15e
[<02106a2f>] die+0x14a/0x241
[<0211937e>] do_page_fault+0x0/0x511
[<0211937e>] do_page_fault+0x0/0x511
[<02119733>] do_page_fault+0x3b5/0x511
[<22ab01ef>] zt_open+0x4f/0x180 [zaptel]
[<021c3fc2>] avc_has_perm+0x3b/0x45
[<021c55d0>] inode_has_perm+0x4c/0x54
[<0211937e>] do_page_fault+0x0/0x511
[<0224007b>] autoconfig+0x8e/0x352
[<22ab01ef>] zt_open+0x4f/0x180 [zaptel]
[<0217068e>] chrdev_open+0x3bd/0x458
[<02164c5e>] dentry_open+0xbd/0x180
[<02164b9b>] filp_open+0x36/0x3c
[<021650b1>] sys_open+0x31/0x7d
Bad EIP value.
interrupts
--------
CPU0
0: 6856634 XT-PIC timer
1: 14263 XT-PIC i8042
2: 0 XT-PIC cascade
5: 464996 XT-PIC Intel 82801BA-ICH2, zaphfc
8: 1 XT-PIC rtc
9: 263569 XT-PIC acpi, eth0, uhci_hcd
10: 507761 XT-PIC radeon at pci:0000:01:00.0
11: 0 XT-PIC uhci_hcd
12: 108850 XT-PIC i8042
14: 146909 XT-PIC ide0
15: 60968 XT-PIC ide1
NMI: 0
ERR: 0
lsmod
-------
vzaphfc 20904 0
zaptel 181508 11 vzaphfc
crc_ccitt 2432 1 zaptel
dmesg - vzaphfc
-------
zaptel: No versions for exported symbols. Tainting kernel.
Zapata Telephony Interface Registered on major 196
zaphfc: HFC-S PCI A Zaptel Driver loading
ACPI: PCI interrupt 0000:02:07.0[A] -> GSI 5 (level, low) -> IRQ 5
divert: not allocating divert_blk for non-ethernet device isdn0d
zaphfc: card 0: registered ZTHFC1/0/1
zaphfc: card 0: registered ZTHFC1/0/2
zaphfc: card 0: registered ZTHFC1/0/3
zaphfc: card 0: resetting
zaphfc: card 0 configured for TE mode at mem 0xe8101000 (0x22868000) IRQ 5
[root at cervajs etc]# strace zttool
execve("/sbin/zttool", ["zttool"], [/* 23 vars */]) = 0
uname({sys="Linux", node="xxxxxxxxxxxxxxxx", ...}) = 0
brk(0) = 0x93f2000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or
directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=79408, ...}) = 0
old_mmap(NULL, 79408, PROT_READ, MAP_PRIVATE, 3, 0) = 0xf6fec000
close(3) = 0
open("/usr/lib/libnewt.so.0.51", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\300\3."..., 512)
= 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=57740, ...}) = 0
old_mmap(0x2dd000, 55548, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE,
3, 0) = 0x2dd000
old_mmap(0x2ea000, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xd000) = 0x2ea000
close(3) = 0
open("/lib/tls/libc.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0 \257\31"..., 512)
= 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1524828, ...}) = 0
old_mmap(0x186000, 1219740, PROT_READ|PROT_EXEC,
MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x186000
mprotect(0x2a9000, 27804, PROT_NONE) = 0
old_mmap(0x2aa000, 16384, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x123000) = 0x2aa000
old_mmap(0x2ae000, 7324, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x2ae000
close(3) = 0
open("/usr/lib/libslang-utf8.so.1", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0p\36]\000"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=905894, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xf6feb000
old_mmap(0x5c5000, 454020, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE,
3, 0) = 0x5c5000
old_mmap(0x618000, 20480, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x53000) = 0x618000
old_mmap(0x61d000, 93572, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x61d000
close(3) = 0
open("/lib/tls/libm.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\0S+\000"..., 512)
= 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=215272, ...}) = 0
old_mmap(0x2b2000, 139424, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE,
3, 0) = 0x2b2000
old_mmap(0x2d3000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x20000) = 0x2d3000
close(3) = 0
open("/lib/libdl.so.2", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\260{-\000"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=16908, ...}) = 0
old_mmap(0x2d7000, 12388, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE,
3, 0) = 0x2d7000
old_mmap(0x2d9000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1000) = 0x2d9000
close(3) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xf6fea000
mprotect(0x2d9000, 4096, PROT_READ) = 0
mprotect(0x2d3000, 4096, PROT_READ) = 0
mprotect(0x2aa000, 8192, PROT_READ) = 0
mprotect(0x182000, 4096, PROT_READ) = 0
set_thread_area({entry_number:-1 -> 6, base_addr:0xf6fea6c0,
limit:1048575, seg_32bit:1, contents:0, read_exec_only:0,
limit_in_pages:1, seg_not_present:0, useable:1}) = 0
munmap(0xf6fec000, 79408) = 0
open("/dev/zap/ctl", O_RDWR <unfinished ...>
+++ killed by SIGSEGV +++
---------------------------------------
Marek Cervenka
Centrum Vypocetni Techniky
CVT - http://cvt.fpf.slu.cz
FPF SLU OPAVA - http://www.fpf.slu.cz
LCNA - http://lcna.slu.cz
=======================================
More information about the asterisk-dev
mailing list