On 05-23 13:33, Marco d'Itri wrote:
> On May 23, Witold Baryluk <bary...@smp.if.uj.edu.pl> wrote:
> 
> > I just noticed that modprobe fails during system upgrade, when generting new
> > initrd image. It aborts then and dumps core.
> > This is what I got when run update-initramfs manually:
> Just to be sure, can you try rebuilding the package without the 
> check_builtin_kver patch?
> 
> -- 
> ciao,
> Marco

Hello Marco,

I compiled kmod without check_builtin_kver (and reversed to be sure),

and with full debug, this is result

sredniczarny:/tmp# update-initramfs  -u -k `uname -r` 
update-initramfs: Generating 
/boot/initrd.img-3.4.0-t43-devel-smp-08215-g1e2aec8-dirty
modprobe: ../tools/kmod-modprobe.c:550: print_action: Assertion 
`kmod_module_get_initstate(m) == KMOD_MODULE_BUILTIN' failed.
Aborted (core dumped)
W: mdadm: /etc/mdadm/mdadm.conf defines no arrays.
W: mdadm: no arrays defined in configuration file.
sredniczarny:/tmp# file core
core: ELF 32-bit LSB core file Intel 80386, version 1 (SYSV), SVR4-style, from 
'modprobe --set-version=3.4.0-t43-devel-smp-08215-g1e2aec8-dirty 
--ignore-instal'

sredniczarny:/tmp# gdb -se /bin/kmod -c /tmp/core

...
Core was generated by `modprobe 
--set-version=3.4.0-t43-devel-smp-08215-g1e2aec8-dirty --ignore-instal'.
...

(gdb) bt full
#0  0xb76e6424 in __kernel_vsyscall ()
No symbol table info available.
#1  0xb7567941 in *__GI_raise (sig=6) at 
../nptl/sysdeps/unix/sysv/linux/raise.c:64
        resultvar = <optimized out>
        pid = -1217830924
        selftid = 26916
#2  0xb756ad72 in *__GI_abort () at abort.c:92
        act = {__sigaction_handler = {sa_handler = 0x120, sa_sigaction = 
0x120}, sa_mask = {
            __val = {3077142392, 20408, 3077141440, 3077136372, 3077141440, 
126, 3213330832, 
              3076193533, 3106087584, 3077136372, 3077136372, 127, 3213331032, 
3076128712, 
              3106099424, 3106099424, 126, 3106087584, 0, 4222451712, 
3106099424, 3106099525, 
              3106099424, 3106099424, 3106099550, 3106099724, 3106099424, 
3106099724, 0, 0, 0, 
              0}}, sa_flags = 0, sa_restorer = 0x2}
        sigs = {__val = {32, 0 <repeats 31 times>}}
---Type <return> to continue, or q <return> to quit---
#3  0xb7560b58 in *__GI___assert_fail (
    assertion=assertion@entry=0xb7712d78 "kmod_module_get_initstate(m) == 
KMOD_MODULE_BUILTIN", 
    file=file@entry=0xb771178d "../tools/kmod-modprobe.c", line=line@entry=550, 
    function=function@entry=0xb7713905 "print_action") at assert.c:81
        buf = 0xb92322a0 "modprobe: ../tools/kmod-modprobe.c:550: print_action: 
Assertion `kmod_module_get_initstate(m) == KMOD_MODULE_BUILTIN' failed.\n"
#4  0xb77095a7 in print_action (m=<optimized out>, install=<optimized out>, 
    options=<optimized out>) at ../tools/kmod-modprobe.c:550
No locals.
#5  print_action (m=m@entry=0xb92323f0, install=install@entry=false, 
    options=0xb92324a8 "phys_dma=0 ") at ../tools/kmod-modprobe.c:536
        path = <optimized out>
#6  0xb76a54d7 in kmod_module_probe_insert_module (mod=mod@entry=0xb92323f0, 
    flags=flags@entry=28, extra_options=extra_options@entry=0x0, 
---Type <return> to continue, or q <return> to quit---
    run_install=run_install@entry=0, data=data@entry=0x0, 
    print_action=print_action@entry=0xb77094b0 <print_action>)
    at ../libkmod/libkmod-module.c:1230
        m = 0xb92323f0
        moptions = 0xb9232498 "phys_dma=0"
        cmd = 0xb92342b5 "false"
        list = 0xb9232488
        l = 0xb9232488
        cb = {run_install = 0, data = 0x0}
        err = 0
        __func__ = "kmod_module_probe_insert_module"
#7  0xb77092b4 in insmod (ctx=ctx@entry=0xb9232110, alias=<optimized out>, 
    extra_options=extra_options@entry=0x0) at ../tools/kmod-modprobe.c:597
        mod = 0xb92323f0
---Type <return> to continue, or q <return> to quit---
        l = <optimized out>
        list = 0xb9232478
        err = 1
        flags = 28
        show = 0xb77094b0 <print_action>
#8  0xb770a838 in do_modprobe (argc=6, orig_argv=0xbf879f24) at 
../tools/kmod-modprobe.c:1011
        opts = <optimized out>
        ctx = 0xb9232110
        args = <optimized out>
        argv = 0xbf879f24
        config_paths = 0x0
        nargs = 1
        n_config_paths = -1188880112
        dirname_buf = "/lib/modules/3.4.0-t43-devel-smp-08215-g1e2aec8-dirty", 
'\000' <repeats 22---Type <return> to continue, or q <return> to quit---
03 times>, "^uo\267", '\000' <repeats 24 times>, 
"([n\267X\227\207\277\364/p\267 
\231\207\277\247\323n\267\000pi\267x)\000\000\003\000\000\000\062\000\000\000\377\377\377\377",
 '\000' <repeats 37 times>, 
"`\025\000\374^\025\000\374^\025\000\000\000\000\000\005\000\000\000\000p\025\000\000\240\025\000\234\231\025\000x\311\025\000\000`\025\000\003\000\000\000\201\275o\267",
 '\000' <repeats 20 times>"\201, 
\275o\267\364/p\267\001\000\000\000r\002\000\000\254\227\207\277\245\276o\267\b\000\000\000\364/p\267([n\267d:p\267ė\207\277\245\276o\267\b\000\000\000([n\267d:p\267\030\372T\267T8p\267藇\277P"...
        dirname = <optimized out>
        root = 0xb771160e ""
        kversion = 0xbf879f38 "\376\244\207\277"
        use_all = 0
        do_remove = 0
        do_show_config = 0
        do_show_modversions = 0
---Type <return> to continue, or q <return> to quit---
        err = <optimized out>
#9  0xb7706f16 in handle_kmod_compat_commands (argv=0xbf879f24, argc=6) at 
../tools/kmod.c:152
        cmd = 0xbf87a496 "modprobe"
#10 main (argc=6, argv=0xbf879f24) at ../tools/kmod.c:166
        binname = <optimized out>
        err = <optimized out>
(gdb) 
(gdb) 




I was running on 3.4.0-t43-devel-smp-08215-g1e2aec8-dirty, it was compiled with

sredniczarny:/tmp# grep MODU /boot/config-`uname -r`
CONFIG_MODULES=y
# CONFIG_MODULE_FORCE_LOAD is not set
CONFIG_MODULE_UNLOAD=y
CONFIG_MODULE_FORCE_UNLOAD=y
CONFIG_MODULE_SRCVERSION_ALL=y




This is similar problem with Debian stock kernel:


sredniczarny:/tmp# update-initramfs -v -u -k 3.2.0-2-686-pae
...
...
Adding module 
/lib/modules/3.2.0-2-686-pae/kernel/drivers/message/i2o/i2o_block.ko
modprobe: ../tools/kmod-modprobe.c:550: print_action: Assertion 
`kmod_module_get_initstate(m) == KMOD_MODULE_BUILTIN' failed.
Aborted (core dumped)
Adding module 
/lib/modules/3.2.0-2-686-pae/kernel/drivers/firewire/firewire-core.ko
...
...
...

sredniczarny:/tmp# file core
core: ELF 32-bit LSB core file Intel 80386, version 1 (SYSV), SVR4-style, from 
'modprobe --set-version=3.2.0-2-686-pae --ignore-install --quiet --show-depends'

sredniczarny:/tmp# gdb -se /sbin/modprobe -c /tmp/core
GNU gdb (GDB) 7.4.1-debian
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /sbin/modprobe...done.
[New LWP 6997]

warning: Can't read pathname for load map: Błąd wejścia/wyjścia.
Core was generated by `modprobe --set-version=3.2.0-2-686-pae --ignore-install 
--quiet --show-depends'.
Program terminated with signal 6, Aborted.
#0  0xb7788424 in __kernel_vsyscall ()
(gdb) bt full
#0  0xb7788424 in __kernel_vsyscall ()
No symbol table info available.
#1  0xb7609941 in *__GI_raise (sig=6) at 
../nptl/sysdeps/unix/sysv/linux/raise.c:64
        resultvar = <optimized out>
        pid = -1217167372
        selftid = 6997
#2  0xb760cd72 in *__GI_abort () at abort.c:92
        act = {__sigaction_handler = {sa_handler = 0x140, sa_sigaction = 
0x140}, sa_mask = {
            __val = {3077805944, 20408, 3077804992, 3077799924, 3077804992, 
126, 3220144704, 
              3076857085, 3096818416, 3077799924, 3077799924, 127, 3220144904, 
3076792264, 
              3096830152, 3096830152, 126, 3096818416, 0, 4222451712, 
3096830152, 3096830253, 
              3096830152, 3096830152, 3096830278, 3096830452, 3096830152, 
3096830452, 0, 0, 0, 
              0}}, sa_flags = 0, sa_restorer = 0x2}
        sigs = {__val = {32, 0 <repeats 31 times>}}
#3  0xb7602b58 in *__GI___assert_fail (
    assertion=assertion@entry=0xb77b4d78 "kmod_module_get_initstate(m) == 
KMOD_MODULE_BUILTIN", 
    file=file@entry=0xb77b378d "../tools/kmod-modprobe.c", line=line@entry=550, 
    function=function@entry=0xb77b5905 "print_action") at assert.c:81
        buf = 0xb895b2f0 "modprobe: ../tools/kmod-modprobe.c:550: print_action: 
Assertion `kmod_module_get_initstate(m) == KMOD_MODULE_BUILTIN' failed.\n"
#4  0xb77ab5a7 in print_action (m=<optimized out>, install=<optimized out>, 
    options=<optimized out>) at ../tools/kmod-modprobe.c:550
---Type <return> to continue, or q <return> to quit---
No locals.
#5  print_action (m=m@entry=0xb895b458, install=install@entry=false, 
    options=0xb895b2e0 "phys_dma=0 ") at ../tools/kmod-modprobe.c:536
        path = <optimized out>
#6  0xb77474d7 in kmod_module_probe_insert_module (mod=mod@entry=0xb895b458, 
    flags=flags@entry=28, extra_options=extra_options@entry=0x0, 
    run_install=run_install@entry=0, data=data@entry=0x0, 
    print_action=print_action@entry=0xb77ab4b0 <print_action>)
    at ../libkmod/libkmod-module.c:1230
        m = 0xb895b458
        moptions = 0xb895b4a8 "phys_dma=0"
        cmd = 0xb895d29d "false"
        list = 0xb895b498
        l = 0xb895b498
        cb = {run_install = 0, data = 0x0}
        err = 0
        __func__ = "kmod_module_probe_insert_module"
#7  0xb77ab2b4 in insmod (ctx=ctx@entry=0xb895b110, alias=<optimized out>, 
    extra_options=extra_options@entry=0x0) at ../tools/kmod-modprobe.c:597
        mod = 0xb895b458
        l = <optimized out>
        list = 0xb895b2d0
---Type <return> to continue, or q <return> to quit---
        err = 1
        flags = 28
        show = 0xb77ab4b0 <print_action>
#8  0xb77ac838 in do_modprobe (argc=6, orig_argv=0xbfef97d4) at 
../tools/kmod-modprobe.c:1011
        opts = <optimized out>
        ctx = 0xb895b110
        args = <optimized out>
        argv = 0xbfef97d4
        config_paths = 0x0
        nargs = 1
        n_config_paths = -1198149360
        dirname_buf = "/lib/modules/3.2.0-2-686-pae", '\000' <repeats 2228 
times>, "^\225y\267", '\000' <repeats 24 times>, 
"({x\267\b\220\357\277\364Oz\267Б\357\277\247\363x\267\000\220s\267x)\000\000\003\000\000\000\062\000\000\000\377\377\377\377",
 '\000' <repeats 37 times>, 
"`\025\000\374^\025\000\374^\025\000\000\000\000\000\005\000\000\000\000p\025\000\000\240\025\000\234\231\025\000x\311\025\000\000`\025\000\003\000\000\000\201\335y\267",
 '\000' <repeats 20 times>"\201, 
\335y\267\364Oz\267\001\000\000\000r\002\000\000\\\220¥\336y\267\b\000\000\000\364Oz\267({x\267dZz\267t\220¥\336y\267\b\000\000\000({x\267dZz\267\030\032_\267TXz\267\230\220\357\277Pxy\267\030\032_\267Εx\267\364Oz\267<Uz\267\030\032_\267\024\223\357\277\024\001y\267\000\000\000\000"...
        dirname = <optimized out>
        root = 0xb77b360e ""
        kversion = 0xbfef97e8 "0\245", <incomplete sequence \357\277>
---Type <return> to continue, or q <return> to quit---
        use_all = 0
        do_remove = 0
        do_show_config = 0
        do_show_modversions = 0
        err = <optimized out>
#9  0xb77a8f16 in handle_kmod_compat_commands (argv=0xbfef97d4, argc=6) at 
../tools/kmod.c:152
        cmd = 0xbfefa4e1 "modprobe"
#10 main (argc=6, argv=0xbfef97d4) at ../tools/kmod.c:166
        binname = <optimized out>
        err = <optimized out>




Regards,
Witek


-- 
Witold Baryluk
JID: witold.baryluk // jabster.pl



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to