**** BEGIN LOGGING AT Wed Apr 18 02:59:56 2007 Apr 18 03:41:39 anyone running debian LE (i.e., cyrius install)? Can someone run a test for me? Apr 18 03:41:50 type (as root) "swapoff /dev/sda2; apt-get install memtester" then "free", then do "memtest 32M 1". assuming /dev/sda2 is your swap partition. Apr 18 05:36:07 Hello all. I seem to be getting a funny error when compiling stuff, I was wondering if someone could help me out. This is what I'm getting: root@Pan:~# gcc test.c Apr 18 05:36:07 gcc: Internal error: Segmentation fault (program cc1) Apr 18 05:50:22 bkero_: 1) try "gcc --version" to verify it's the correct binary; 2) make sure you have enough RAM + swap Apr 18 05:51:29 512mb of swap Apr 18 05:51:40 and gcc 3.4.4, is that correct? Apr 18 05:59:08 strace: http://pastebin.osuosl.org/1195 Apr 18 06:07:41 Got it down more: open("/etc/ld.so.preload", O_RDONLY) = 3 Apr 18 06:07:41 fstat64(3, {st_mode=S_IFREG|0777, st_size=0, ...}) = 0 Apr 18 06:07:41 close(3) = 0 Apr 18 06:07:41 --- SIGSEGV (Segmentation fault) @ 0 (0) --- Apr 18 06:14:08 which firmware and how did you get that gcc? Apr 18 06:14:25 openslug 3.10 beta, and ipkg install gcc Apr 18 06:37:48 Anything? :/ Apr 18 08:37:42 join #nslu2-general Apr 18 08:37:48 sorry Apr 18 14:19:12 <[g2]> RobNC, hey this week has been a little busier than anticipated Apr 18 16:04:39 03bzhou * r5944 10optware/trunk/make/libnxml.mk: libnxml: 0.17.1 -> 0.17.2 Apr 18 16:08:56 03bzhou * r5945 10optware/trunk/make/snort.mk: snort: 2.6.1.2 -> 2.6.1.4 Apr 18 19:41:16 is the right place to ask about Synology DS101j ? Apr 18 19:41:38 I'm trying to debug someone's else problem with smartmontools on this hardware Apr 18 19:47:31 I assume you're running optware? Apr 18 19:47:53 I started ds101-linux a long time ago. I don't have a synology any longer though.. Apr 18 19:52:42 I don't have access to synology Apr 18 19:52:55 but can ask the owner to do things :) Apr 18 19:53:12 what appears to be the problem? Apr 18 19:53:55 the problem is: smartmontools uses HDIO_DRIVE_CMD to issue SMART commands to hard disk Apr 18 19:54:13 and returned data is in wrong byte order Apr 18 19:55:02 in detail: Apr 18 19:55:28 first, IDENTIFY DEVICE command is sent Apr 18 19:55:50 it returns 1 sector (512 bytes) of data Apr 18 19:56:10 these data are to be treated as 16-bit words Apr 18 19:56:20 aha Apr 18 19:56:34 so you've basically identified the fault, and need it fixed ;) Apr 18 19:56:44 eno: ping? Got an idea on the above? Apr 18 19:56:44 I'm not sure where the fault is, actually Apr 18 19:57:25 There are multiple reports of this problem from owners of Synology Apr 18 19:57:49 ok Apr 18 19:57:54 all appear to use binary packages from 'optware', which are cross-compiled Apr 18 19:57:58 yup Apr 18 19:58:10 the master of optware is eno ;) Apr 18 19:58:21 there is 1 report from armv5l-...-linux, which is fine Apr 18 19:58:33 yeah, that's little-endian Apr 18 19:58:37 all others are from armv5b-..., which fail Apr 18 19:59:01 I'm not sure what was that armv5l- hardware. Apr 18 20:00:12 ah, a 'Thecus n2100' Apr 18 20:00:22 ah Apr 18 20:00:29 I've got one of those Apr 18 20:00:33 brilliant hardware ;) Apr 18 20:02:02 smartmontools code assumes that IDENTIFY data are to be treated as LE words Apr 18 20:02:33 so it checks for big-endian platform at runtime and then swaps everything it needs Apr 18 20:02:43 as i recall, this is fixed in a later version of smartmontools. Apr 18 20:03:18 no Apr 18 20:03:45 there were fixes for NetBSD, wheren IDENTIFY data is specially treated by kernel (always returned in host order) Apr 18 20:04:32 but I could not find any info on Linux... Apr 18 20:04:48 so the s..s code could very well be wrong Apr 18 20:07:55 http://pastebin.ca/447023 <- debug output Apr 18 20:27:45 shattered: do you have optware cross build env? Apr 18 20:29:27 there're two places in smartmontools code with "ifndef __NetBSD__" Apr 18 20:30:15 the logic seems to be: if not netbsd, detect endian at runtime, swap bytes if big-endian Apr 18 20:32:33 a good experiment is to change "#ifndef __NetBSD__" to "#if 0" Apr 18 20:32:37 no, no cross env Apr 18 20:33:45 I know the NetBSD part well (wrote os_netbsd.*), but Linux code puzzles me Apr 18 20:34:07 the problem should be reproducible on unslung or slugosbe as well, right? Apr 18 20:34:22 if Linux indeed returns IDENTIFY data in host order, then I'll change #ifdef Apr 18 20:35:28 eno: can't say, I'm trying to debug this w/o access to actual hardware :) Apr 18 20:35:32 ok, so the key is to find out "if *Linux* returns IDENTIFY data in host order" Apr 18 20:35:39 right Apr 18 20:36:22 I looked around in linux source (using lxr) Apr 18 20:36:32 but couldn't definitely answer this question Apr 18 20:37:01 this could even be a port- or ucLinux-specific problem Apr 18 20:38:24 on NetBSD, I can easily see when driver receives data from device in host order, or receieves a byte stream Apr 18 20:39:27 sorry, i'm not a linux kernel guy at all Apr 18 20:41:31 So what command would one issue to dump information that might determine if this problem exists or not? Apr 18 20:41:49 (smartmontools seems to work fine for my purposes on SlugOS/BE) Apr 18 20:42:04 smartctl -r ioctl,2 -i /dev/... Apr 18 20:42:41 496-511: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ae a5 Apr 18 20:42:41 ===== [IDENTIFY DEVICE] DATA END (512 Bytes) ===== Apr 18 20:42:57 if last byte if 0xa5, you've got BE data already Apr 18 20:44:24 496-511: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 a5 e2 Apr 18 20:44:44 this is LE, on netbsd/i386 Apr 18 20:48:46 I get many pages of data, I presume you mean the last line of the several that match the pattern? Apr 18 20:48:57 496-511: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 e3 Apr 18 20:49:09 no, from the first block of data Apr 18 20:50:25 496-511: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 a5 96 Apr 18 20:50:42 That's from the "IDENTIFY DEVICE" data block then Apr 18 20:50:42 interesting Apr 18 20:50:52 that's LE. Apr 18 20:51:44 mwester_: please post last 5 lines of 'smartctl -V' output Apr 18 20:53:14 http://pastebin.ca/447114 Apr 18 20:54:51 ви Apr 18 20:54:53 hm. Apr 18 20:55:15 you have armeb-..., they have armv5b-... Apr 18 21:22:03 mwester_ is using smartmontools from slugosbe feed, not optware/slugosbe Apr 18 21:24:28 plot thickens ;-) Apr 18 21:29:44 shattered: am I supposed to use /dev/sda on slug? Apr 18 21:30:46 when i use /dev/sda, both slugosbe and unslung said "Device does not support SMART [unsupported field in scsi command] Apr 18 21:31:14 that's SATA disk? Apr 18 21:31:31 pass '-d ata' option then Apr 18 21:31:46 no, ATA external connected to USB Apr 18 21:31:51 oh Apr 18 21:32:12 there's slight chance that '-d sat' will work Apr 18 21:32:45 but generally, usb<>ata bridges don't pass SMART commands Apr 18 21:34:39 no, neither -d ata nor -d sat works, data all 00 Apr 18 21:57:47 03bzhou * r5946 10optware/trunk/make/git-core.mk: git: 1.5.0.7 -> 1.5.1.1 Apr 18 22:23:42 hi **** ENDING LOGGING AT Thu Apr 19 02:59:56 2007