Package: dmidecode Version: 2.12-3 Severity: normal Dear Maintainer,
running dmidecode on the extracted smbios file from a thinkpad T450s causes a crash. The way we extracted the smbios works with other laptops. While the file may be corrupt, dmidecode should not crash in any case. Backtrace is below (on an amd64 jessie system). I can probably send the file to you if necessary, but I don't want to put it into the public bts. Cheers, Stefan $ gdb --args /usr/sbin/dmidecode -d smbios.thinkpad.img GNU gdb (Debian 7.7.1+dfsg-5) 7.7.1 Copyright (C) 2014 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 "x86_64-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>. Find the GDB manual and other documentation resources online at: <http://www.gnu.org/software/gdb/documentation/>. For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from /usr/sbin/dmidecode...Reading symbols from /usr/lib/debug/.build-id/8a/3aed0a8c9faebcb07ca6a3cef59133e8d1c812.debug...done. done. (gdb) run Starting program: /usr/sbin/dmidecode -d smbios.thinkpad.img # dmidecode 2.12 SMBIOS 2.7 present. 66 structures occupying 3201 bytes. Table at 0xBCBFD000. Program received signal SIGBUS, Bus error. 0x000055555556200d in memcpy (__len=3201, __src=0x7ffff7ff4000, __dest=0x55555577d020) at /usr/include/x86_64-linux-gnu/bits/string3.h:51 warning: Source file is more recent than executable. 51 return __builtin___memcpy_chk (__dest, __src, __len, __bos0 (__dest)); (gdb) bt full #0 0x000055555556200d in memcpy (__len=3201, __src=0x7ffff7ff4000, __dest=0x55555577d020) at /usr/include/x86_64-linux-gnu/bits/string3.h:51 No locals. #1 mem_chunk (base=3166687232, len=3201, devmem=0x7fffffffe72e "smbios.thinkpad.img") at util.c:131 p = 0x55555577d020 mmoffset = 0 mmp = 0x7ffff7ff4000 #2 0x000055555555c49c in dmi_table (base=3166687232, len=3201, num=66, ver=519, devmem=0x7fffffffe72e "smbios.thinkpad.img") at dmidecode.c:4356 buf = <optimized out> data = <optimized out> i = 0 #3 0x0000555555561682 in smbios_decode (buf=0x55555576d0f0 "_SM_e\037\002\a\024\001", devmem=0x7fffffffe72e "smbios.thinkpad.img") at dmidecode.c:4493 ver = 519 devmem = 0x7fffffffe72e "smbios.thinkpad.img" buf = 0x55555576d0f0 "_SM_e\037\002\a\024\001" #4 0x000055555555b3eb in main (argc=<optimized out>, argv=<optimized out>) at dmidecode.c:4682 ret = 0 found = 0 fp = 224 buf = 0x55555576d010 "Phoenix SCT" (gdb) q

