/srv/irclogs.ubuntu.com/2009/05/07/#ubuntu-kernel.txt

=== mcasadevall is now known as NCOmmander
=== NCOmmander is now known as NCommander
=== lamont` is now known as lamont
=== maco_ is now known as maco
=== cooloney is now known as cooloney-lunch
apwsmb this thinkpad brightness/volume thing is all over the map ... most processes seems to get a hand in the handling of a simple screen update ... 08:52
smbThat was to be feared08:53
apwi think it has reached a level of complexity that a wiki page is required to contain the information08:53
smbSo the entry is the key event, who comes next? hal probably08:53
apwwell the key is generated by hal as its a fake key08:53
smbHm, this sounds definitely like an asset08:53
apwthen it goes to either power-manager or settings-daemon depending which it is08:54
apwthen that talks to hal to change things and also send out a notification08:54
smbI assume power-manager for brightness and settings-daemon for sound08:56
apwyeah08:56
apwnow brightness does have a passive mode already though it doesn't seem to work quite right08:56
smbThose are those things that would benefit from a picture...08:56
apw(passive being a 'just display the currentlt level on keypress')08:56
smbOk, that is one step. So _whenever_ that works, something similar would be required for sound08:57
apwvolume does nto as yet08:57
apwyeah ... something like that08:57
apwand that is basically what the maintainer is talking about ... sort of08:57
apwi guess i need to just dump it all out08:57
smbYeah, that would be helpful, then print it and confront the right people at UDS08:58
apwheh yeah08:59
apwbah have spent too much time thinking about this on my own11:25
apwhttps://wiki.ubuntu.com/ThinkpadBrightnessVolume11:25
ckingapw: wassup?11:38
apwjust getting sucked into overanalysis of a problem11:39
apwwas slapping self to get it documented and move on11:39
ckinggood wiki page by the way11:39
ograjust send a mail to evolution on each event ... then you get a mail notification at least :P11:41
* ogra agress its a very good research 11:42
ogra*agrees11:42
ograapw, are you sure we will even use the alsamixer in karmic ? i would suspect us to migrate to pavucontrol at some point anyway (so it would completely be in software and on the highest level)11:45
apwogra, no idea really.  if so someone else can figure out how to make pulse work with a hardware mixer :)11:46
ograyou cant, but you could do the same you do for brightness more easily with it i think11:46
Riddelllinux dudes: what have you done with /usr/include/asm/errno.h from linux-libc-dev ?13:05
amitkRiddell: karmic?13:05
Riddellyes13:05
* amitk looks at rtg ^13:06
Riddellkde4libs not happy "/usr/include/linux/errno.h:4:23: error: asm/errno.h: No such file or directory"13:06
rtgRiddell: start a bug and assign me to it. I've a conf call coming up in a bit, so I won't get a chance to look at it until after that.13:08
Riddellbug 37321413:19
ubot3Malone bug 373214 in linux "errno.h missing" [Undecided,New] https://launchpad.net/bugs/37321413:19
elmoRiddell: which architecture(s)?13:22
Riddellelmo: i386 and amd64 build failures have arrived in my inbox so far13:23
NCommanderrtg, /usr/include/asm/* is missing (we ran into this problem on powerpc; obviously this isn't a ports specific issue anymore :-/)13:30
rtgapw or amitk: do you have time to look at bug 373214? I'm booked for the next bit, and it appears to be causing wide spread panic.13:31
ubot3Malone bug 373214 in linux "errno.h missing" [Undecided,New] https://launchpad.net/bugs/37321413:31
rtgNCommander: if its the same bug, its affecting kde4libs as well.13:33
amitkrtg: looking it up now..13:36
NCommanderrtg, well, the problem is /usr/include/asm is empty which breaks anything trying to use kernel headers13:36
NCommanderrtg, it looked like something managed the package in the buildd (neither myself nor TheMuso have successfully reproduced this issue, nor could we in a jaunty PPA)13:37
rtgNCommander: which would certainly explain '/usr/include/asm/error.h is missing from linux-libc-dev in linux_2.6.30-3.4' as described in the bug report.13:37
NCommanderrtg, I just checked all the architecture linux-libc-dev13:37
NCommanderits empty on i386, amd64, lpia, armel, and powerpc13:37
NCommanderia64 and hppa are ok, SPARC is current FTBFS13:38
NCommander*currently13:38
amitkrtg: so you just uploaded meta yesterday and the karmic kernel started becoming available?13:39
amitk...in the archive, that is13:40
rtgamitk: yep, -2 is the first ABI that is referenced by linux-meta, but I uploaded -3 yesterday13:40
NCommanderrtg, the broken header packages make it impossible to build linux and linux-ports in a karmic chroot ...13:55
amitkNCommander: could you put all the info in bug 37321413:56
ubot3Malone bug 373214 in linux-ports "/usr/include/asm/* is not present in linux-libc-dev" [Critical,In progress] https://launchpad.net/bugs/37321413:56
NCommanderamitk, already there13:56
NCommanderamitk, I'm pulling the buildd chroot, and fudge it as necessary to get the kernel building again to see if I can see what went wrong13:56
amitkhmm.. after all the headers moves in .28 and .29, there is no include/asm-x86 14:03
amitkor rather all asm-<arch> has been moved14:03
amitkrtg: all include/asm-<arch> was moved to arch/<arch>/include/asm14:05
amitkNCommander: ^14:06
amitkessentially all include/asm-<arch> was 'moved' to arch/<arch>/include/asm14:07
amitkbut arch/<arch>/include/asm is quite a bit larger than what include/asm used to be, so I am still studying it14:08
NCommanderamitk, but isn't that how it was for 28 as well? (I have a include/asm here)14:08
NCommanderamitk, I need to run to the DMV, I'll be back in ~45-60 minutes to continue debugging this w/ you14:09
amitkNCommander: it was partly done for .28. If you notice there is no include/asm-x86 in 2.6.28. I am checking if something was being fudged in the scripts14:09
NCommanderamitk, not to my knowledge, but I may have overlooked something14:10
cjwatsonshouldn't 'make headers_install' just work despite the rearrangements though?14:11
cjwatsonthe build log says 'INSTALL include/asm (52 files)'14:11
ikepanhcsmb: ask a question, if I need the bug reporter to help me test the patch, shall I add some extra version string when make kernel package?14:17
cjwatsonhmm, that's interesting, 'fakeroot debian/rules install-arch-headers' on jaunty seems to install a reasonable include/asm/14:19
cjwatsonamitk: ^-14:19
amitkcjwatson: on the karmic tree?14:20
* amitk tries it14:21
amitkcjwatson: curious indeed14:23
cjwatsonamitk: yeah14:23
cjwatsonhmm, and even in a karmic chroot14:24
cjwatsonmaybe that test is inadequate somehow14:24
* cjwatson bootstraps his own chroot rather than using ronne's14:26
amitkhmm.. why is the i386 build passing ARCH=x86_64?14:29
amitkcjwatson: I don't get it. The buildds are not behaving like my local machine. fakeroot debian/rules binary-arch-headers works perfectly here...15:01
cjwatsonjust to save time, it's astonishingly rare for problems to actually be due to a genuine difference on the buildds15:02
cjwatsonit does happen but not typically in the *middle* of a build like this ...15:02
cjwatsonmight be worth trying to match up package versions with those in the -3.4 build log?15:03
cafetiereapw switches to another machine for testing15:06
=== Nicke_ is now known as Nicke
cjwatsonamitk: no dice for me in a chroot with linux-libc-dev 2.6.30-2.3 either15:21
amitkcjwatson: I'm doing a full build here15:24
* cjwatson tries downgrading gcc and friends to the versions in the build log15:24
NCommanderamitk, any headway? (I see you confirmed that local builds do work correctly)15:26
cjwatsonhas anyone tried a PPA build?15:26
NCommandercjwatson, yes, on ports, works fine in the jaunty series15:26
NCommanderno karmic PPAs yet15:26
cjwatsonoh, of course, it breaks due to the new linux-libc-dev anyway15:26
NCommandercjwatson, I have a buildd amd64 chroot now, so I'm seeing if I can find what's causing the package to explode15:27
cjwatsonthis is weirding me the hell out15:28
* NCommander notes this doesn't seem possible.15:28
rtgawe: sent email re: Broadcom update. I think I've got the 2 patches you mentioned. It at least builds correctly.15:44
awertg: thanks... i'll look at it in a little while.  i'm fighting to get voip configured so i can have a conf call w/asac.15:46
awertg: no more hp for me for now.  ;)15:46
awertg: i'm working as part of desktop for karmic.15:46
awertg: although i'll still work with y'all wrt to the oem kernel15:47
rtgawe: do you want me to ripple the BCM update up through Intrepid/Jaunty ?15:47
awertg: nah, i'll do it.  it's good practice for moi15:47
rtgawe: k15:47
awecourse i may ask you to endorse my ubuntu-contributors MOTO app page in return.  ;)15:49
rtgawe: np15:50
awecool15:50
awei've worked more with y'all then anyone else to date...15:50
cjwatsonamitk: how did the full build go?16:05
amitkcjwatson: still building. :-/ I don't have the fastest machine...16:06
* NCommander waits for his build to complete16:06
rtgamitk: what package are you building?16:07
calcso the linux-libc-dev headers issue will be fixed tomorrow?16:09
amitkrtg: the kernel16:10
* calc thinks it may be the cause of some of his OOo build failures atm16:10
amitkcalc: we are looking at it16:10
calcok16:10
amitkrtg: local builds seem to do the right thing (fakeroot debian/rules binary-arch-headers), I am trying a full build.16:11
rtgamitk: do the right thing with respect to what? I unpacked linux-libc-dev_2.6.30-3.4_amd64.deb and indeed there is nothing in the asm directory. Looks like errno.h got moved to asm-generic16:12
cjwatsonrtg: userspace expects <asm/errno.h> to exist16:14
rtgcjwatson: so, this worked until I published linux-meta?16:14
cjwatsonno, linux-libc-dev 2.6.30-3.4 inexplicably broke it16:14
cjwatson-2.3 had <asm/*.h> as one might expect16:15
cjwatsonBTW errno.h was always in asm-generic as well (or at least for ages)16:15
cjwatsonso not a move, it's just that asm/ vanished inexplicably16:15
rtgcjwatson: how is that so? There were no build rule changes between 2.3 and 3.4, nor were there any core linux updates.16:15
cjwatsonthat's what we'd all like to know too16:16
cjwatsonnevertheless, it is true :-(16:16
amitkrtg: right thing meaning it has the .h files under include/asm16:16
rtghmm, I'll rebuild -2.3 from scratch. should only take a few minutes16:16
cjwatsonthere's quite a bit of real stuff under asm/ BTW - errno.h is a bad example because it's just a shim16:17
cjwatsonrtg: the build log is very strange - it says "INSTALL include/asm (52 files)" but then the verbose output from cpio -pvd says that there's nothing in include/asm/16:18
amitkright, and if you do it locally, it all works.16:19
* cjwatson tries diffing the build logs16:19
rtgamitk: I don't get that. my asm directory is empty16:20
cjwatsonooh, you can reproduce it16:20
cjwatsondon't suppose you could try with V=1 added to hmake?16:20
amitkrtg: with 'fdr binary-arch-headers'?16:20
rtgcjwatson: I think something changed from Linus tree that I missed. I'm pretty sure there was a rebase somewhere between 2.3 and 3.4.16:21
cjwatsonrtg: I'm not entirely sure I believe that this is a kernel change16:21
cjwatsonI'm wondering if it's collateral damage from something else16:22
cjwatsonrtg: did you reproduce it with -2.3 or with -3.4?16:22
amitkrtg: the move of all arch headers from include/asm-<arch> to arch/<arch>/include/asm has been going on since 2.6.28. I believe it is now complete. But 'make headers_install' basically shields us from the underlying changes. (Or does it?)16:23
cjwatsonthe build log diff shows newer versions of coreutils, findutils, login and passwd, gcc-4.4 and friends, libselinux1, libsepol1, libvolume-id1, and cpio, as well as a bunch of other build-deps further up the tree16:24
rtgamitk: using 3.4, the asm directory _does_ have all of the headers when built locally using 'debian/rules binary-arch-headers'. But I just unpacked the result of 'debuild -b' and saw that it did _not_ have stuff in the asm directory. lemme rebuild from scratch just to confirm.16:24
cjwatsonyou'll need linux-libc-dev <= 2.6.30-2.3 installed in order to rebuild successfully obviously :-)16:25
rtgcjwatson: not if I'm building the kernel 'cause it produces linux-libc-dev16:26
cjwatsonthe kernel build builds some host binaries as part of its build process, no?16:26
rtgcjwatson: uh, yeah. seems kind of circular.16:27
NCommandercjwatson, indeed :-/16:27
cjwatsonNCommander said it failed at scripts/basic/fixdep16:27
cjwatsonso downgrade, then test16:27
rtgand in fact my build is borked after updating my chroot.16:27
NCommandercjwatson, any idea how we're going to unbreak the archive?16:27
cjwatsonNCommander: infinity, or in his absence another sysadmin, can do manual builds)16:28
cjwatsonwe've done this in the past16:28
cjwatsonthis is not the first time that the process of bootstrapping a new release has left the entire world unbuildable :-)16:28
cjwatsonno obvious sign of trouble in the build log diff16:30
NCommandercjwatson, indeed, although this is the first time I've ever seen a kernel upload break so oddly 16:30
cjwatsonthis is doing well at being truly weird, but nothing much really surprises me any more :-)16:32
NCommandercjwatson, well, I dumped a buildd chroot into sbuild, so if its something funny with pkgbinmangler or something else there, this will shake it out16:32
NCommanderI just wish I had a faster machine16:32
rtgcjwatson: I downgraded to linux-libc-dev_2.6.28-12.43 and things are at least building now. it'll be done in 10 minutes or so.16:33
cjwatsonNCommander: nothing's impossible, but I'd be truly astonished if any of the pkg* things were capable of affecting this. They just don't hook in at the relevant levels16:34
NCommanderrtg, you can build a kernel in 10 minutes? 16:34
rtgNCommander: one arch16:34
NCommanderrtg, I envy your build rig16:34
NCommandercjwatson, well, I'm not sure what else it could be. We built the same package with ports overlay, and only broke powerpc16:34
cjwatsonNCommander: it's obviously something weird, but I bet you 10 euros (collectable at UDS) that it isn't pkg-create-dbgsym or pkgbinarymangler16:35
NCommanderI'll take that bet :-)16:35
NCommandercjwatson, thanks, you just reminded me I need to turn some USD into Euros 16:36
NCommander(and to set aside 10 euros for when I loose this bet)16:36
rtgI thought it was clear this issue is cause by linux-libc-dev_2.6.30-2.3 ? am I confused ?16:36
cjwatsonrtg: how? :-)16:37
rtgcjwatson: empty asm directory?16:37
cjwatsonlinux-libc-dev_2.6.30-3.4 is the one with the empty asm directory16:37
cjwatsonbut the question is *why* it has an empty asm directory16:37
cjwatsonthe evidence from the build log suggests that it is trying to install those files, but getting lost somewhere along the way16:38
rtgah, then I was a little confused16:38
cjwatsonsince when people build the same source package locally, it seems to come out with /usr/include/asm/ populated as normal16:39
NCommandercjwatson, as a counter example, I just built it in pbuilder in a fresh chroot, I got the /usr/include/asm folder normally16:39
NCommanderOh16:39
NCommander:-)16:39
cjwatson  perl /home/cjwatson/src/ubuntu/linux/ubuntu/scripts/headers_install.pl /home/cjwatson/src/ubuntu/linux/ubuntu/arch/x86/include/asm /home/cjwatson/src/ubuntu/linux/ubuntu/debian/tmp-headers/install/include/asm x86 a.out.h auxvec.h boot.h bootparam.h byteorder.h debugreg.h e820.h errno.h fcntl.h ioctl.h ioctls.h ipcbuf.h ist.h kvm.h ldt.h mce.h mman.h msgbuf.h msr-index.h msr.h mtrr.h param.h poll.h posix_types.h ...16:40
cjwatson... posix_types_32.h posix_types_64.h prctl.h processor-flags.h ptrace-abi.h ptrace.h resource.h sembuf.h setup.h shmbuf.h sigcontext.h sigcontext32.h siginfo.h signal.h socket.h sockios.h stat.h statfs.h swab.h termbits.h termios.h types.h ucontext.h unistd.h unistd_32.h unistd_64.h vm86.h vsyscall.h; perl /home/cjwatson/src/ubuntu/linux/ubuntu/scripts/headers_install.pl ...16:41
cjwatson... /home/cjwatson/src/ubuntu/linux/ubuntu/debian/tmp-headers/arch/x86/include/asm /home/cjwatson/src/ubuntu/linux/ubuntu/debian/tmp-headers/install/include/asm x86 ; touch /home/cjwatson/src/ubuntu/linux/ubuntu/debian/tmp-headers/install/include/asm/.install16:41
cjwatsonis the relevant install command - which is clearly getting run at least with the correct number of arguments16:41
cjwatson("clearly" due to "52 files" in the build log)16:41
amitklocal build finished successfully with include/asm populated16:45
cjwatsonNCommander: where did the broken powerpc build happen?16:45
NCommandercjwatson, on the buildds. Same issue. The same package built in jaunty had no issue16:45
cjwatsonthis is almost seeming like a transient bug in find or cpio16:45
cjwatsonanyway, dinner16:45
rtgcjwatson: well, we just found one in 'sort' a couple of days ago16:45
rtgamitk: I just synced my chroot 4 hours ago and my local build exhibits the problem.16:48
rtgdamn, I wish I'd have made a full log of the build. guess I'll have to do it again.16:49
amitki haven't synced by chroot yet, I will do so after dinner17:00
rtgamitk: I'm thinking this a perl problem. 'perl /home/rtg/kern/karmic/kern-64/ubuntu-karmic/scripts/headers_install.pl' appears to be doing the right thing, and that script hasn't been touched since Dec 2008.17:19
NCommanderrtg, that script takes an input directory and copies it somewhere else removing compiler.h definitions17:26
NCommanderrtg, I don't think it was affected by headers moving around :-/17:26
NCommander(nor does it explain why we only get funny failures on the buildds)17:27
rtgNCommander: I'm getting failures locally.17:27
NCommanderrtg, you are?17:27
NCommanderHow?17:27
rtgsync your mirror17:27
NCommanderrtg, you mean update my chroot?17:28
rtgyes17:28
NCommanderrtg, I get the normal build failure because of the bad linux-libc-dev, but so far, I can build a good package17:28
rtgdowngrade linux-libc-dev to -2.3, then try to build the install-arch-headers target for the kernel17:29
rtgNCommander: hmm, actually the issue is with 'find'17:33
NCommanderrtg, ?17:34
NCommanderfind was merged May 4th17:37
NCommander2.6.30-3.4 was uploaded on the 1st17:38
rtgNCommander: I updated the bug report17:38
NCommanderlinux-ports 2.6.30-1.1 was uploaded yesterday; same issue17:38
rtgNCommander: so the timing makes sense17:40
NCommanderrtg, er, the kernel upload was before find was updated17:40
NCommanderVery, very odd17:40
NCommanderand TheMuso reported he built in a karmic chroot and reproduced the issue17:40
NCommanderBut this is the best candiate I've seen thus far.17:40
NCommandercjwatson, I owe you 10 dollars.17:41
NCommanders/dollars/euros17:41
=== awe is now known as awe-lunch
rtgNCommander: the upload date for linux-libc-dev_2.6.30-2.3 in LP doesn't make sense. I created the Ubuntu-2.6.30-2.3 log entry on April 30, and I'm positive I uploaded the same day.18:02
calcdon't forget the archive was frozen up until some point18:02
rtgwhich would explain by 2.3 built correctly and 3.4 did not (because it was after findutils was synced)18:03
calcah that was apr 28 when it opened18:03
NCommanderrtg, but we have kernel builds on ia64 and hppa which happened after the sync18:03
NCommander(I suspect the find bug is our issue, but its damn odd)18:03
rtgNCommander: dunno, perhaps there was race with findutils18:04
NCommanderrtg, checked the upload dates, didn't seem so18:04
rtgwas a*18:04
rtgNCommander: well, at any rate, I can absolutely reproduce the problem by hand.18:04
calcmake sure you check build times of eg findutils vs the kernels since there were buildd backlogs too18:04
NCommanderrtg, I'm still waiting for my kernel build to finish18:04
NCommandercalc, I check the time of upload fromt he buildds18:05
calciirc the buildd queues were fairly large at one point18:05
calcok18:05
NCommandercalc, find is Priority: required, so it will go fairly fast18:05
NCommanderer18:05
NCommanderOr is it important18:05
calcrequired18:06
calcdo packages on buildds automatically get updated that are eg required?18:08
calcor only if something build-dep against a specific version (iow could some of the buildds still had the older working findutils)18:09
calc^ that wrt the comment NCommander made about hppa/ia6418:10
NCommandercalc, it just has to be in main18:10
rtgNCommander: if I downgrade to findutils_4.4.0-2ubuntu4 then all works as expected.18:10
rtgseems fairly conclusive.18:10
calcNCommander: so ubuntu buildds automatically do an upgrade daily (or something like that?)18:11
NCommandercalc, I think dist-upgrade is run as part of sbuild, but thats a voodo that I know not18:11
NCommanderrtg, indeed, now we need to rundown what broke in find18:11
rtgcalc: IIRC the xen instances are created from scratch for every package18:11
* NCommander wonders how you can break find :-/18:11
NCommanderrtg, xen only done for PPAs18:11
calcrtg: oh18:11
rtgNCommander: and buildds18:11
NCommanderrtg, Xen doesn't exist for powerpc, armel, ia64, hppa :-/18:12
NCommanderThat's why devirtualized PPAs are reserved for Canonical employees only18:12
* NCommander would love xen for any of those archs so then we could get PPAs for them18:12
rtgbut xen is used for x86, which is all _I_ care about most days.18:12
calcarmel is the only really useful arch without xen support ;-)18:16
calcthe rest are dead or dying18:16
cjwatsonNCommander: result18:17
=== awe-lunch is now known as awe
calcso anyone know what is broken about find now?18:17
cjwatsonthough still need a patch; let me try diving into findutils if nobody else already is18:17
calcoh ok18:17
NCommandercjwatson, still building, but I think I owe you money now18:18
cjwatsonrtg: what was the sort bug you found?18:18
cjwatsonthis is interesting, though; the findutils bug does not manifest for me18:19
rtgcjwatson: yeah, I've been poking at it but can't figure out why it hates the asm directory18:19
cjwatsonI wonder if it has something to do with path length or similar18:19
rtgSteve L. fixed the sort bug in coreutils.18:20
cjwatsonthe changelog is quite short18:20
NCommandercjwatson, a path length bug is unlikely; linux is longer than asm18:20
* NCommander wonders/hopes upstream is git18:20
cjwatsonI didn't say it was necessarily longer paths that caused the bug :-)18:21
NCommanderIts a git repo18:21
NCommanderWe could just bisect 18:21
* cjwatson remembers a bug in HP-UX somethingorother that manifested when the argument was a multiple of 16 characters long18:21
NCommandercjwatson, ........18:21
NCommandercjwatson, thanks, you just caused my brain to ABEND with SIGILL18:21
NCommander/usr/bin/pkgsanitychecks: inconsistent /CurrentlyBuilding file, Package: value is  (should be linux)18:25
NCommander:-/18:25
cjwatsonrtg: what architecture is this?18:25
cjwatsonI tried recreating your directory structure precisely, and the asm files show up as one would expect18:26
rtgcjwatson: amd6418:26
cjwatson(we know it happens on i386 too, of course)18:27
cjwatsonrtg: could you get an strace -tt -s 1024 of that find command?18:28
rtgcjwatson: one sec.18:28
cjwatsonthere really aren't many relevant changes to find itself, but there's a gnulib update in there too18:31
rtgcjwatson: chinstrap.canonical.com:~rtg/log.txt18:33
cjwatsonNCommander: if it's a bug in imported gnulib files, git bisect won't help, since the findutils maintainers don't commit gnulib files to git18:33
NCommandercjwatson, *grumble :-/* This will be fun.18:34
cjwatsonrtg: thanks, working on that18:34
cjwatsonhmm18:37
cjwatsonI have a hypothesis, which MAY BE WRONG18:38
rtgisn't that why its a hypothesis?18:38
cjwatsonI'm betting that the newer code in gnulib is attempting to rely on features (specifically some of the *at functions) not present, or perhaps not reliable, in the kernel running on the buildds18:39
cjwatsonrtg: what kernel version is running on your test system?18:39
rtg2.6.30-3-server18:39
cjwatsondrat.18:39
NCommanderso much for that hypothesis18:39
cjwatsonnot clearly disproven yet, it could just be that Tim is running into yet a different problem from the buildds ;-)18:40
rtgthe buildds are typically 2.6.24, right?18:40
cjwatsonI forget, something like that18:40
cjwatsonrtg: also, what filesystem?18:40
rtgext418:41
NCommandercjwatson, powerpc is a dapper (.18 kernel), the rest are hardy18:41
cjwatsondapper was .15, but whatever ...18:42
NCommanderoh, man, my memory going18:42
cjwatson.8 .10 .12 .15 .17 .20 .22 .24 .27 .28 .30. IIRC.18:43
* NCommander envies cjwatson's memory18:44
alex_joniNCommander: he probably remembers the hash18:44
rtgcjwatson: don't get too comfortable with .30, that may yet change.18:44
NCommanderalex_joni, that would be scary18:45
cjwatsonrtg: yeah :)18:45
cjwatsonNCommander: nah, just if you work with something for six months at a time it tends to settle in long-term memory18:45
NCommandercjwatson, my kernel build is finishing, I'll have another datapoint for you on this18:45
* NCommander is trying to determine what powerpc, armel, amd64, i386 and lpia have in common that ia64 and hppa don't.18:46
NCommanderbbiab, lunch18:54
cjwatsonsorry, I have a fractious baby here and I think I'll need to feed her before attempting to dig into findutils any more18:55
cjwatsonrtg: could you try this to get a bit more information out of find?  strace -tt -s 1024 find -D tree,search,stat,rates,opt,exec ...19:19
cjwatson(I'm just hitting it with a bigger hammer in the hope of extracting something useful about its logic)19:19
rtgcjwatson: one sec19:23
rtgcjwatson: chinstrap.canonical.com:~rtg/log2.txt19:27
cjwatsonrtg: thanks. argh. no visible difference between asm (breaks) and drm (works).19:33
cjwatsonrtg: I don't suppose I could get an account on this system?19:33
cjwatsonI'm going to need to gdb this19:33
rtgcjwatson: gimme a bit, its pretty well buried behind a firewall.19:34
cjwatsonphew, baby is asleep, touch wood19:43
cjwatsonrtg: ok, now I'm *really* confused19:54
rtgcjwatson: dchroot -c karmic-amd64 ?19:55
cjwatsoncjwatson@tyler-b:/home/rtg/kern/karmic/kern-64/ubuntu-karmic/debian/tmp-headers/install/include$ find . -name . -o -name .\* -prune -o -print | grep asm/19:55
cjwatson./asm/bootparam.h19:55
cjwatsonoh, whoops :-)19:55
rtgits a Jaunty box by default19:55
cjwatsonI have no user in the chroot, but maybe that doesn't matter19:56
rtgcjwatson: do it as root, though I think chroots are bind mounted to /home19:56
cjwatsonok19:57
cjwatsonreproduced, anyway - going to build myself a test findutils19:57
cjwatsoninstalling gdb in the chroot19:59
cjwatsonaha, the bug is governed by the presence of the file ..install.cmd20:09
cjwatsonnow to determine *why*, although the form of that name permits a good guess20:09
rtgcjwatson: kind of a strange file name. I din't think it was even legal20:12
cjwatsonfile names can contain anything except \020:13
cjwatson(yes, even \n, though expect a lot of breakage if you do that!)20:14
rtgcjwatson: are you thinking the '..' is suspicious?20:14
cjwatsonyes, I'm thinking that find is misinterpreting it as a change of directory level20:14
cjwatsonfind is pretty twisty though so it's going to take me a little while to find out exactly where20:14
rtgcjwatson: why just that directory? there are a bunch of those file names.20:14
rtgthough we might not even notice if those other directories didn't get copied20:15
cjwatsonmaybe it needs to be at the top level or something? I'm not sure yet20:15
cjwatsonagain, just a hypothesis so far20:16
cjwatsonbut I can reproduce the bug on my own system if I touch include/..install.cmd20:16
cjwatsonSo. What's happening is that ..install.cmd matches .* and therefore triggers the -prune action. Now, normally -prune is a no-op for files. Unfortunately, in this case the stat buffer find is using is undefined (because it uses FTS_NOSTAT as an optimisation) and so happens to contain stat information from the previous thing it touched, which happened to be a directory; it therefore gets confused and thinks ..install.cmd ...20:39
cjwatson... is a directory so sets the "stop_at_current_level" flag. This doesn't get cleared until the next time it exits a directory on its walk, which happens to be when it exits asm.20:39
cjwatsonI'll take this up with upstream, but should be able to construct a band-aid20:41
rtgcjwatson: I have to wonder why anyone is messing with find to begin with. its so dang old that you'd think all of the bugs had been wrung out of  it. why fix what ain't broken?20:41
cjwatson'cos all software still has bugs :-)20:43
rtgcjwatson: are you done with my server? I normally power it off when not in use as it is kinda noisy.20:43
cjwatsonyeah, thanks20:43
rtgnp20:43
cjwatsonI'll have a go at constructing a minimal test case for findutils upstream20:44
cjwatsonone of the bits of software I work on in my spare time (ho ho) is man-db. man is also ancient. When I took it on it was a buggy pile of shite ...20:44
cjwatsonI think this will fix it but will obviously test:21:37
cjwatsonhttp://paste.ubuntu.com/166326/21:38
cjwatsonrtg: can I suggest that we should reopen 373214 against the kernel? even though it isn't actually a bug in the kernel, the bug won't in practice be fixed until the kernel is reuploaded21:55
NCommandercjwatson, I managed to reproduce it, I can give you a shell on my laptop22:05
=== maco_ is now known as maco
cjwatsonNCommander: no need, I've got it all now :)22:18
NCommandercjwatson, +1, and +10 euros to you at UDS22:20
cjwatsonrtg,NCommander: can you guys upload new linux/linux-ports, please, so that it can build against the new findutils when lamont is ready? it might fail to build first time round but don't worry about that22:23
cjwatsons/might/will/ I guess22:23
NCommandercjwatson, I need a sponsor22:23
cjwatsonrtg: can you sponsor NCommander? I need to crash ...22:24
* TheMuso is around22:24
NCommanderTheMuso, oh, cool. I need a SPARC patch to go in to fix that FTBFS, but I need to go poof until about 00-01 UTC22:24
TheMusoNCommander: right22:25
lamontNCommander: (et al) if you do the upload, pretty please make it build-depend the new findutils22:29
lamontI don't care if it fails to build, but I'll make you upload again if it succeeds and doesn't have include/asm :-)22:30
cjwatsonerr, I think it's just a Build-Conflicts22:30
cjwatsonBuild-Conflicts: findutils (= 4.4.1-1ubuntu1)22:30
cjwatsonfor anyone who's interested, http://launchpadlibrarian.net/26447089/findutils_4.4.1-1ubuntu1_4.4.1-1ubuntu2.diff.gz is the basic fix; a more complete patch with a test case is on its way upstream22:39

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!