From owner-freebsd-ports@FreeBSD.ORG Tue May 7 12:22:14 2013 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 2957DA8D for ; Tue, 7 May 2013 12:22:14 +0000 (UTC) (envelope-from samm@os2.kiev.ua) Received: from s1.sdv.com.ua (unknown [IPv6:2a01:d0:81f8::2]) by mx1.freebsd.org (Postfix) with ESMTP id BBA3D2F7 for ; Tue, 7 May 2013 12:22:13 +0000 (UTC) Received: from fw3.webprint.nl ([87.249.103.70] helo=[10.14.122.119]) by s1.sdv.com.ua with esmtpsa (TLSv1:DHE-RSA-CAMELLIA256-SHA:256) (Exim 4.80.1 (FreeBSD)) (envelope-from ) id 1UZgu8-000Lgz-Gc; Tue, 07 May 2013 15:22:03 +0300 Message-ID: <5188F1E2.6020805@os2.kiev.ua> Date: Tue, 07 May 2013 14:21:54 +0200 From: Alex Samorukov User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130329 Thunderbird/17.0.5 MIME-Version: 1.0 To: Andrea Venturoli Subject: Re: smartd dumps core References: <5188E6A0.20003@netfence.it> In-Reply-To: <5188E6A0.20003@netfence.it> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-SA-Score: -2.9 Cc: freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 May 2013 12:22:14 -0000 Hi. You should at least specify version of the smartmontools :) On 05/07/2013 01:33 PM, Andrea Venturoli wrote: > Hello. > > I've installed smartmontools on several machines, both i386 and amd64, > 8.3 or 9.1. > > On one box in particular, though, it dumps core. > There are two SCSI and four SATA HDs here. > > The stacktrace: >> # gdb smartd >> GNU gdb 6.1.1 [FreeBSD] >> Copyright 2004 Free Software Foundation, Inc. >> GDB is free software, covered by the GNU General Public License, and >> you are >> welcome to change it and/or distribute copies of it under certain >> conditions. >> Type "show copying" to see the conditions. >> There is absolutely no warranty for GDB. Type "show warranty" for >> details. >> This GDB was configured as "amd64-marcel-freebsd"... >> (gdb) r >> Starting program: /usr/local/sbin/smartd >> [New LWP 100131] >> [New Thread 802007400 (LWP 100131/smartd)] >> >> Program received signal SIGSEGV, Segmentation fault. >> [Switching to Thread 802007400 (LWP 100131/smartd)] >> 0x00000008015044f5 in memcpy () from /lib/libc.so.7 >> (gdb) bt >> #0 0x00000008015044f5 in memcpy () from /lib/libc.so.7 >> #1 0x0000000000000000 in ?? () >> #2 0x0000000000000000 in ?? () >> #3 0x0000000000000000 in ?? () >> #4 0x0000000000000000 in ?? () >> #5 0x0000000000000000 in ?? () >> #6 0x0000000000000000 in ?? () >> #7 0x0000000000000000 in ?? () >> #8 0x0000000000000000 in ?? () >> #9 0x0000000000000000 in ?? () >> #10 0x0000000000000000 in ?? () >> #11 0x0000000000000000 in ?? () >> #12 0x0000000000000000 in ?? () >> #13 0x0000000000000000 in ?? () >> #14 0x0000000000000000 in ?? () >> #15 0x0000000000000000 in ?? () >> #16 0x0000000000000000 in ?? () >> #17 0x0000000000000000 in ?? () >> #18 0x0000000000000000 in ?? () >> #19 0x0000000802077300 in ?? () >> #20 0x0000000000000036 in ?? () >> #21 0x00000008020d6100 in ?? () >> #22 0x0000000000000036 in ?? () >> #23 0x000000080147d731 in _pthread_mutex_init_calloc_cb () from >> /lib/libc.so.7 >> #24 0x0000000000000006 in ?? () >> #25 0x0000000000000001 in ?? () >> #26 0x00007fffffffa520 in ?? () >> #27 0x00000000000001fc in ?? () >> #28 0x00007fffffffa4b0 in ?? () >> #29 0x0000000000000020 in ?? () >> #30 0x0000000000000014 in ?? () >> #31 0xffffffffffffff36 in ?? () >> #32 0x0000000000000000 in ?? () >> #33 0x0000000000677f70 in ?? () >> #34 0x00000000000000d6 in ?? () >> #35 0x0000000802000000 in ?? () >> #36 0x0000000000677990 in ?? () >> #37 0x000000fc01000112 in ?? () >> #38 0x0000000802000000 in ?? () >> #39 0x0000000000677f70 in ?? () >> #40 0x000000080148012e in _malloc_postfork () from /lib/libc.so.7 >> #41 0x0000000802082780 in ?? () >> #42 0x0000000000000000 in ?? () >> #43 0x0000000000000000 in ?? () >> #44 0x0000000000000000 in ?? () >> #45 0x0000000000000000 in ?? () >> #46 0x0000000000000000 in ?? () >> #47 0x0000000000000000 in ?? () >> #48 0x0000000000000000 in ?? () >> #49 0x0000000000000000 in ?? () >> #50 0x0000000000000000 in ?? () >> #51 0x0000000000000000 in ?? () >> #52 0x0000000000000000 in ?? () >> #53 0x0000000000000000 in ?? () >> #54 0x0000000000000000 in ?? () >> #55 0x0000000000000000 in ?? () >> #56 0x0000000000000000 in ?? () >> #57 0x0000000000000000 in ?? () >> #58 0x0000000000000000 in ?? () >> #59 0x0000000000000000 in ?? () >> #60 0x0000000000000000 in ?? () >> #61 0x0000000000000000 in ?? () >> #62 0x0000000000000000 in ?? () >> #63 0x0000000000000000 in ?? () >> #64 0x0000000000000000 in ?? () >> #65 0x0000000000000000 in ?? () >> #66 0x0000000000000000 in ?? () >> ---Type to continue, or q to quit--- >> #67 0x0000000000000000 in ?? () >> #68 0x0000000000000000 in ?? () >> #69 0x0000000000000000 in ?? () >> #70 0x0000000000000000 in ?? () >> #71 0x0000000000000000 in ?? () >> #72 0x0000000000000000 in ?? () >> #73 0x0000000000000000 in ?? () >> #74 0x0000000000000000 in ?? () >> #75 0x0000000000000000 in ?? () >> #76 0x0000000000000000 in ?? () >> #77 0x0000000000000000 in ?? () >> #78 0x0000000000000000 in ?? () >> #79 0x0000000000000000 in ?? () >> #80 0x0000000000000000 in ?? () >> #81 0x0000000000000000 in ?? () >> #82 0x0000000000000000 in ?? () >> #83 0x0000000000000000 in ?? () >> #84 0x0000000000000000 in ?? () >> #85 0x0000000000000000 in ?? () >> #86 0x0000000000000000 in ?? () >> #87 0x0000000000000000 in ?? () >> #88 0x0000000000000000 in ?? () >> #89 0x0000000000000000 in ?? () >> #90 0x0000000000000000 in ?? () >> #91 0x0000000000000000 in ?? () >> #92 0x0000000000000000 in ?? () >> #93 0x0000000000000000 in ?? () >> #94 0x0000000000000000 in ?? () >> #95 0x0000000000000000 in ?? () >> #96 0x0000000000000000 in ?? () >> #97 0x0000000000000000 in ?? () >> #98 0x0000000000000000 in ?? () >> #99 0x0000000000000000 in ?? () >> #100 0x0000000000000000 in ?? () >> #101 0x0000000000000000 in ?? () >> #102 0x0000000000000000 in ?? () >> #103 0x0000000000000000 in ?? () >> #104 0x0000000000000000 in ?? () >> #105 0x0000000000000000 in ?? () >> #106 0x00007fffffffac80 in ?? () >> #107 0x000000000041025d in SCSIDeviceScan (cfg=@0x801b81eb0, >> state=@0x801b81ea0, scsidev=0x801b82080) at smartd.cpp:2203 >> Previous frame inner to this frame (corrupt stack?) > > > > From what I can get, the crash happens when a SCSI HD is queried. > In fact, "smartctl -a" works fine for SATA drives, but will dump core > too with SCSI HDs. > Again, here's the stack: >> # gdb smartd >> GNU gdb 6.1.1 [FreeBSD] >> Copyright 2004 Free Software Foundation, Inc. >> GDB is free software, covered by the GNU General Public License, and >> you are >> welcome to change it and/or distribute copies of it under certain >> conditions. >> Type "show copying" to see the conditions. >> There is absolutely no warranty for GDB. Type "show warranty" for >> details. >> This GDB was configured as "amd64-marcel-freebsd"... >> (gdb) r >> Starting program: /usr/local/sbin/smartd >> [New LWP 100131] >> [New Thread 802007400 (LWP 100131/smartd)] >> >> Program received signal SIGSEGV, Segmentation fault. >> [Switching to Thread 802007400 (LWP 100131/smartd)] >> 0x00000008015044f5 in memcpy () from /lib/libc.so.7 >> (gdb) bt >> #0 0x00000008015044f5 in memcpy () from /lib/libc.so.7 >> #1 0x0000000000000000 in ?? () >> #2 0x0000000000000000 in ?? () >> #3 0x0000000000000000 in ?? () >> #4 0x0000000000000000 in ?? () >> #5 0x0000000000000000 in ?? () >> #6 0x0000000000000000 in ?? () >> #7 0x0000000000000000 in ?? () >> #8 0x0000000000000000 in ?? () >> #9 0x0000000000000000 in ?? () >> #10 0x0000000000000000 in ?? () >> #11 0x0000000000000000 in ?? () >> #12 0x0000000000000000 in ?? () >> #13 0x0000000000000000 in ?? () >> #14 0x0000000000000000 in ?? () >> #15 0x0000000000000000 in ?? () >> #16 0x0000000000000000 in ?? () >> #17 0x0000000000000000 in ?? () >> #18 0x0000000000000000 in ?? () >> #19 0x0000000802077300 in ?? () >> #20 0x0000000000000036 in ?? () >> #21 0x00000008020d6100 in ?? () >> #22 0x0000000000000036 in ?? () >> #23 0x000000080147d731 in _pthread_mutex_init_calloc_cb () from >> /lib/libc.so.7 >> #24 0x0000000000000006 in ?? () >> #25 0x0000000000000001 in ?? () >> #26 0x00007fffffffa520 in ?? () >> #27 0x00000000000001fc in ?? () >> #28 0x00007fffffffa4b0 in ?? () >> #29 0x0000000000000020 in ?? () >> #30 0x0000000000000014 in ?? () >> #31 0xffffffffffffff36 in ?? () >> #32 0x0000000000000000 in ?? () >> #33 0x0000000000677f70 in ?? () >> #34 0x00000000000000d6 in ?? () >> #35 0x0000000802000000 in ?? () >> #36 0x0000000000677990 in ?? () >> #37 0x000000fc01000112 in ?? () >> #38 0x0000000802000000 in ?? () >> #39 0x0000000000677f70 in ?? () >> #40 0x000000080148012e in _malloc_postfork () from /lib/libc.so.7 >> #41 0x0000000802082780 in ?? () >> #42 0x0000000000000000 in ?? () >> #43 0x0000000000000000 in ?? () >> #44 0x0000000000000000 in ?? () >> #45 0x0000000000000000 in ?? () >> #46 0x0000000000000000 in ?? () >> #47 0x0000000000000000 in ?? () >> #48 0x0000000000000000 in ?? () >> #49 0x0000000000000000 in ?? () >> #50 0x0000000000000000 in ?? () >> #51 0x0000000000000000 in ?? () >> #52 0x0000000000000000 in ?? () >> #53 0x0000000000000000 in ?? () >> #54 0x0000000000000000 in ?? () >> #55 0x0000000000000000 in ?? () >> #56 0x0000000000000000 in ?? () >> #57 0x0000000000000000 in ?? () >> #58 0x0000000000000000 in ?? () >> #59 0x0000000000000000 in ?? () >> #60 0x0000000000000000 in ?? () >> #61 0x0000000000000000 in ?? () >> #62 0x0000000000000000 in ?? () >> #63 0x0000000000000000 in ?? () >> #64 0x0000000000000000 in ?? () >> #65 0x0000000000000000 in ?? () >> #66 0x0000000000000000 in ?? () >> ---Type to continue, or q to quit--- >> #67 0x0000000000000000 in ?? () >> #68 0x0000000000000000 in ?? () >> #69 0x0000000000000000 in ?? () >> #70 0x0000000000000000 in ?? () >> #71 0x0000000000000000 in ?? () >> #72 0x0000000000000000 in ?? () >> #73 0x0000000000000000 in ?? () >> #74 0x0000000000000000 in ?? () >> #75 0x0000000000000000 in ?? () >> #76 0x0000000000000000 in ?? () >> #77 0x0000000000000000 in ?? () >> #78 0x0000000000000000 in ?? () >> #79 0x0000000000000000 in ?? () >> #80 0x0000000000000000 in ?? () >> #81 0x0000000000000000 in ?? () >> #82 0x0000000000000000 in ?? () >> #83 0x0000000000000000 in ?? () >> #84 0x0000000000000000 in ?? () >> #85 0x0000000000000000 in ?? () >> #86 0x0000000000000000 in ?? () >> #87 0x0000000000000000 in ?? () >> #88 0x0000000000000000 in ?? () >> #89 0x0000000000000000 in ?? () >> #90 0x0000000000000000 in ?? () >> #91 0x0000000000000000 in ?? () >> #92 0x0000000000000000 in ?? () >> #93 0x0000000000000000 in ?? () >> #94 0x0000000000000000 in ?? () >> #95 0x0000000000000000 in ?? () >> #96 0x0000000000000000 in ?? () >> #97 0x0000000000000000 in ?? () >> #98 0x0000000000000000 in ?? () >> #99 0x0000000000000000 in ?? () >> #100 0x0000000000000000 in ?? () >> #101 0x0000000000000000 in ?? () >> #102 0x0000000000000000 in ?? () >> #103 0x0000000000000000 in ?? () >> #104 0x0000000000000000 in ?? () >> #105 0x0000000000000000 in ?? () >> #106 0x00007fffffffac80 in ?? () >> #107 0x000000000041025d in SCSIDeviceScan (cfg=@0x801b81eb0, >> state=@0x801b81ea0, scsidev=0x801b82080) at smartd.cpp:2203 >> Previous frame inner to this frame (corrupt stack?) > > > > Is there something I can try? > Should I report upstream? > > > > bye & Thanks > av. >