Search Results: "ag"

20 July 2007

Russell Coker: unaligned access on IA64

I recently had some problems with unaligned access on IA64, messages about unaligned access were being logged via printk and I couldn’t determine the cause - or even how to track it down. To test what an unaligned access means (which wasn’t documented anywhere that a quick google search could find) I wrote the test program in the second half of this post. Below is the output of the test program which accesses an integer at various offsets. As you can see it’s addresses that are congruent to 5, 6, and 7 mod 8 that cause the errors. At the int is 4 bytes long it seems that the cause of an unaligned access error is an access to a data type that crosses an 8 byte boundary. So a pointer or long long would have to be aligned to an 8 byte boundary, an int has to be at an address that is congruent to 4 or less mod 8, and a character can be anywhere. Also if the sysctl /proc/sys/kernel/ignore-unaligned-usertrap is set to 1 then these messages will be disabled. But you really don’t want to do that, such errors apparently cause a significant performance loss so you want to file bug reports against programs that do this. # ./a.out
index: 0
index: 1
a.out(10393): unaligned access to 0×607fffffff34ee25, ip=0×4000000000000961
index: 2
a.out(10393): unaligned access to 0×607fffffff34ee26, ip=0×4000000000000961
index: 3
a.out(10393): unaligned access to 0×607fffffff34ee27, ip=0×4000000000000961
index: 4
index: 5
index: 6
index: 7
index: 8
index: 9
a.out(10393): unaligned access to 0×607fffffff34ee2d, ip=0×4000000000000961
index: 10
a.out(10393): unaligned access to 0×607fffffff34ee2e, ip=0×4000000000000961
index: 11
a.out(10393): unaligned access to 0×607fffffff34ee2f, ip=0×4000000000000961
index: 12
index: 13 Below is the test program I used:
(more…)

Thomas Girard: ACE+TAO 5.5.9+1.5.9

I've just uploaded ACE+TAO packages into experimental. The packages are now in NEW, but you can get them from there.

Evan Prodromou: 1 Thermidor CCXV

I'm working at the Palo Alto Coworking Space today for a few hours, since I'm in Palo Alto and since I'm interested in coworking. It's a great, open, airy space with a good WiFi connection and a lot of couches, windows, air and light. Good spot to work. It's also attached to the Socialtext office. Ross Mayfield just announced that they are seeking a new CEO, so I thought it'd be a good idea to throw my hat in the ring while I'm in the neighborhood anyways. Liz Henry caught me on virtual film. tags:

Thomas Girard: Frysk new upload

I've just uploaded a new version of frysk in experimental. Frysk is composed of a GUI and many command line tools. Here are a few of them: Please give frysk package a try!

Clint Adams: Nor is it Don Cheadle

Not quite right, but ominous nonetheless. [Not Don Cheadle at all]

Isaac Clerencia: eBox slated to be the official Ubuntu server management tool

According to the latest news from the Ubuntu camp, Gutsy Gibbon will ship with our beloved eBox, and according to the last post in this thread in the Ubuntu forums, it’s going to be the official configuration tool for services. I went to aKademy with eBox lead developer and workmate, Javier Uruen, and we had the chance to attend to Mark Shuttleworth’s keynote, where he argued about the benefits of having a six-months release cycle for the most popular open source projects (i.e., KDE, Gnome and OpenOffice). I think this release cycle would suit eBox quite well too, and if synced with Ubuntu releases, would make life easier for both eBox developers and packagers, besides enlarging the free software “pulse”. In any case, we’ll continue to provide Debian-based installers where the base system won’t change that often, for those who are not willing to update their servers each six months. Anyway, this is a big leap towards world domination for eBox :) We are quite happy that eBox made into Ubuntu and we’ll be eager to work with the maintainers to integrate their changes back into eBox. disclaimer: I’m not an “official” eBox developer, so don’t take my opinions as authoritative, they come mostly from pub-talk with Javier

Aigars Mahinovs: Almost a master

On Wednesday I had a viva for my Master by Research thesis on “Text classification by quality”. After a 15 minute presentation and almost two hours of questions from two of my examiners, I was told that I will receive my Masters degree (after minor corrections to the thesis). It is a great relief and a great reason to celebrate! In order of celebration I will embrace consumerism and get me two things: World of Warcraft: Burning Crusade expansion and a cat. Next week I will be going around animal shelters and cat owners in Riga in a search for a 1-2 months old black, male kitten. It has been my dream to have a cat again since my last cat died of old age 3 years ago. Unfortunately I lived in dormitories where they did not allow pets or in UK. But now, I can finally get one. I am very exited about that :)

Adrian von Bidder: sparc32 project infrastructure

The recent announcement that sparc32 is to be retired seems to be regretted by many. Various suggestions on what should or could be done have been put forth. Here's mine: let's at least create some minimal project infrastructure for a (hypothetical) sparc32 port. So, there now exists a sparc32 Wiki page and a sparc32 mailing list. All that remains is people who actually do stuff.

Gerfried Fuchs: msgmerge --previous and poedit

Since quite a while gettext has support for a feature which I was waiting for since ages: --previous. It means that when a string gets marked fuzzy it adds the previous original string as a comment so one is able to see the difference which led to the fuzzy marking. This makes translation of po files much much more comfortable because one can easily find out now what has changed. Let me give you a reallife example:
#: data/core/help.cfg:331
#, fuzzy
#  msgid "race^Mechanical"
msgid "trait^Mechanical"
msgstr "Kriegsgerät"
With out the previous string (in the "# " line) you would propably be puzzled about what has changed because the string gets stripped off the everything before the ^ for displaying it in this case. Though, not all translation tools behave correctly. One of them is unfortunately poedit. It moves the previous string to a wrong place and thus breaks the parsing of the file. A bugreport has been filed about it—but unfortunately it also means that upstream projects that already support (like Wesnoth) it are considering disabling it again because of this. So I wrote quickly a perl script that is able to fix that for you: pofix.pl. It's quite simple, reads from stdin and writes to stdout.
Go and support --previous before your competitors do it and hijack all your translators! ;)

Evan Prodromou: 30 Messidor CCXV

Maj, Amita June and I had a long day on airplanes today, heading to San Francisco. My brother Ted and his partner Nabil have decided to have a commitment ceremony, which is I guess one way of saying "get married". It's casual and fun, just like Ted and Nabil themselves, but Ted means too much to us for us to miss this event. So we spent some miles, dropped everything, and headed out west. Amita's still young enough (under 2) that we can sit with her on our lap. Not only that, but if we get her a seat, we have to bring along a car seat -- more of a hassle than having her on our laps. Still, on a crowded flight it can be kind of hard. Maj is really good at packing for the plane -- putting together food, toys, books and other distractions to get AJ through a long flight. But today tested her skills to the limit -- we had a 2 -hour flight to Dulles, then another 6 hours out to SFO. That's too much for any grown-up, much less a 22-month-old. AJ had a hard time going to sleep at naptime, and we had some crying -- some loud crying. Otherwise, the flight was survivable. I picked up JPod, the last novel from Douglas Coupland, at the airport before we took off. It's a great read -- difficult, exposed, referential, glib. A good read. My dad -- Amita calls him "Pappou", Greek for "grandfather" -- met us at the airport. Amita's usually pretty standoffish with any adult who isn't me or Maj, but she's really comfortable with Pappou. She told him stories about flying while we waited for our bags. "Tita... Airplane! Tita... Raisins! Draw! Stickers!" She got a lot of time to do it, because our luggage took a long time coming off the plane, and two of our bags never came. But it was nice comin' home to my parents' house, who've built a big backyard patio since we were last here. We had pasta and salad on the lanai, and then AJ went down for an easy night's sleep. Soon for me, too. tags:

DemoCampMontreal3 DemoCampMontreal3 is next Tuesday, July 24th, at the SAT. I'm excited about the event, since Niko and I will be showing our new project in public for the first time. It looks like there will be a pretty good line-up, and I love going to SAT for DemoCamps. Of course, I'm flying into Montreal at 5AM that morning, but it'll be good nonetheless. tags:

Blog reactions I was glad to see that Creative Commons had a nice response to my essay about Paying wiki contributors. I've had a few people give me private responses, and I think it's an interesting issue that's important for people thinking about wiki, and wiki commercialization, today. tags:

MJ Ray: Sat.1 starts Tour coverage. ZDF promises to drop football.

For part of Stage 11, I watched the new Tour live coverage on Sat.1 who bought the German rights. When Sat.1 is busy, Pro7 will cover it. The two stations are owned by the same company, along with Kabel1, N24 and 9Live. The coverage was OK - the same French pictures as everyone else, but fewer extra features than ARD/ZDF. Commentary was a bit pedestrian, but that's like ZDF. I like Eurosport's commentary much more. International Herald Tribune reports that Eurosport's ratings tripled for stage 10 which is unsurprising. Eurosport and Sat.1 both seem to be on the same ~30% of German DVB-T as well as DVB-S. In comments on my last post about this, Thomas asked:
"You don't read German papers, do you?"
No. I've not even tried to buy one since moving to this village.
"I do, and I'm neither outraged nor surprised. It is a fairly logical step in light of the debate and the public reception of the tour, cycling pros, and Team T-Mobile in particular."
Is it public reception? Around 50% of those polled by ZDF disagreed with the decision (according to the IHT link above). Given all the ZDF spin on this, that's shockingly low. Is this driven by the silly debate of Bundestag members, rather than public opinion? (I've still not forgiven them for booting Eurosport off of ZDFvision. CDU seem to like messing ARD/ZDF about.) Are German papers in a feeding frenzy? In some days, they'll move onto football or boxing or something else. Get this in context: it's not like the old scandals where we had pro teams or wives being caught with car boots full of drug kits.
"I'd also bet that T-Mobile will quit as a sponsor."
It didn't seem like that from TV interviews, but I guess they wouldn't say yet. I think if they were going to jump ship, they would have done it after last year's worse problems. AIUI, their contract expires 2010 anyway and I wonder whether all the good publicity from their tour outing in England will help them stay until then.
"Some things belong in pharmacology textbooks and not on TV screens."
Does this mean drugs or incomplete drug tests? ;-)
"If I paid German TV fees, I'd be outraged that this comes that late. But then, I know better and don't have a TV in the first place."
Oh, well! Then I guess nothing would convince you to watch the tour! Philipp Kern commented:
"they did not threaten for a year actually. After the big doping scandal some months ago they explicitly announced that they will drop the Tour de France if a new doping case pops up. Granted, the person in question did dope before the Tour."
We don't know that yet - only one sample has been tested so far and even then, this test is controversial and has been successfully appealed against before. It's only a case. Also, maybe it wasn't the TdF, but here's a comment about ARD in 2006 threatening to drop cycling (scroll to 25.10.).
"The argumentation is that the Tour should not be a contest of the best doping substances like it could have been the last years. But I am probably biased because I don't watch the Tour, or sports in general."
No more biased than ARD/ZDF's producers, it seems. In an interview on itv4, a ZDF producer said they would drop any sporting event with a doping problem like cycling. So, if ZDF have dropped cycling for 1 in 189 participants being accused of doping, then if any footballer is accused of drugs offences, they cannot show any matches involving them. If you want to take football off ZDF, you know what to do... Thijs Kinkhorst reports in "Too much testosterone" that NOS also continues coverage, like our itv. Good on them. Let's applaud any drug cheats getting caught and punished, after we're reasonably sure.

Uwe Hermann: Retiring the sparc32 Debian port... or not?

According to Jurij Smakov's announcement, the Debian port for 32bit SPARC machines is about to be retired. This is really sad in my opinion, as we should rather support more architectures instead of less architectures. After all, Debian is "The Universal Operating System" [1]. Now, I know that my opinion doesn't matter much in this case, but many other people who own sparc32 boxes seem to feel the same, judging from the thread which was started by the announcement. Also, I do realize that nobody wants to retire the port just for fun. To my understanding there is one major problem which needs to be sorted out in order to "save" the sparc32 support in Debian (and also in Linux!): There is no Linux kernel maintainer for the sparc32 Linux code at the moment! This seems to be the root of the whole problem. It makes maintaining a Debian port for sparc32 really hard, as you can surely imagine. Also, there seem to be too few people who actively work on the surrounding toolchain stuff (gcc, binutils, etc) which is also very important. My suggestion would be to not drop the Debian support for now, but rather set the status to "needs help" or something and actively search for contributors and/or maintainers. Heck, list it on Unmaintained Free Software, or write a "call for help" Slashdot article, post the issue on all Linux-/Debian-/SPARC-related mailing lists etc. etc. (or write funny blog posts, heh). I guess if two or three experienced SPARC developers would step up and take care of the kernel and toolchain maintenance for sparc32, there would be no reason to drop it anytime soon. Anyone?

MJ Ray: Comment on the netpbm/debian-netpbm split

Daniel Martin commented:
"Often, dustups like these are the result of upstream not caring about one or more of the following: 1) Licenses. Many people will release code with no license attached to it at all, which means (Thanks to the wonders of the Berne convention) that no one else can distribute it. 2) Patent restrictions (the gif patent issue is now dead, but there's still patents on some other graphic formats) 3) Restrictions against selling the software for commercial gain, using the software in the military, in biotech, etc. The netpbm copyright file seems to include instances of each of these. I don't know how it escalated into being unable to build based on upstream."
Thanks for the info. I'm still surprised debian doesn't keep a (maybe big) patchset rather than a fork on this one. I don't remember what put me off it, but maybe imagemagick isn't so bad...

Gustavo R. Montesino: bug-triage Debian Packages

Thanks to the timely efforts of Lo c Minier, a more usable (even though still featureless) bug-triage version (0.1-2) has found its way to the Debian Archive, alongside with the shining new btsutils 0.2-1. Now it does return something on queries...

The development is also progressing, the current version in git can already show the upstream bugs for a given Debian package whose upstream uses bugzilla.

19 July 2007

Adam Rosi-Kessel: Ponens-Tollens

My nomination for the best use of the phrase “a retarded ponens/tollens showdown”:
Here is what you do not do. You do not start with a mystifying conditional like If the universe is only physical (or whatever), then there is no free will, because how do you know that? You don t. But you may think you do and so you get caught in a retarded ponens/tollens showdown: the universe is physical, ergo no free will, or free will, so the universe is not physical. But, again, through what method of divination do we validate this conditional? None. Because we already know it is false.

Eddy Petrișor: How to build rrdtool with soft-float for a debian arm machine (which uses hard float)

Being a good Debian user

Notes: the bulk of this article was written on the 17th; updates were added in later; this article is really long, you might want to read it in more sessions

Debian's arm port uses hardfloat. This means that apps like rrdtool (graph function) take ages to run because there is no floating point unit. In order to make this faster you'll want to use soft-float emulation. But this support needs to be present in all depended upon libs, including libc, which is an ABI incompatible change which would break all binaries. I can't use the yet-in-development-and-unofficial armel port since the machine has to be up and running almost 24/7 and I can't afford downtime.

So what to do?

Well, obviously use another soft-float enable libc, like uclibc, in parallel withe the hrad-float enabled libc. Debian Sid contains uclibc development libs, but building the whole toolchain is a pain. There is no real support in the distro itself and building on the arm machine is kind of out of the question. I tried a little in a debootstrapped chroot on the native machine, but this was a pain and I was stuck tring to figure out how to disable whitles and bells for rrdtool since I didn't needed any of the perl, tcl or python support. So I stopped, went to bed and decided I'll continue the next day (the day I wrote the biggest part of this article). The future looked dark, trying to build a softfloat uclibc rrdtool on a system that wasn't prepared for that and from which softfloat was pulled away somewhere during etch's development stage....

Deciding to go with the competition - native building

From link to link I found out that gentoo has arm-softfloat-linux-uclibc port, among others, so I decided to use that on the target machine (a NSLU2) in a chroot. Well I stumbled on the low computing power, when I tryed to emerge sync the tree. I gave up un that and tried to use emerge-websync. It looked better, but I didn't got too far with this either since the machine ended up being overloaded, with figures varying from 3 to 8 for the load average (all of them).

Deciding to go with the competition - cross building

It was time to bring in the big guns and I decided I was going to crossbuild those binaries, probably statically since it meant lower risk for things to break on the target machine.


Since I observed that gentoo has a nice tool called crossdev which actually uses emerge (the equivalent of dpkg+apt in Debian world) to make the cross chain tool and saw that they have some really good documentation and a development version of an arm-softfloat-linux-uclibc, I decided I could .

So I went on and downloaded the latest stage3 tarball for x86 (so I can have a gentoo system to start with), made all the necessary things and created a gentoo chroot. I emerge sync-ed, updated portage, installed crossdev (following the nice instructions on the gentoo embedded site about the subject). This took a while, but it went like a breeze. I made the necessary arangements to be able to cross build packages (setting SYSROOT, making that nice xmerge script).

As my goal was to make an arm-softfloat-linux-uclibc binary for rrdtool I tried directly to xmerge rrdtool (of course, first just pretended -p).

Finding bugs in the packages

First bug

All went fine until I found freetype which for some weird reason detected the i486-pc-linux-gnu-gcc compiler as i486-pc-linux-gnu (observe the missing trailing -gcc). I looked over the logs and determined that the CC_BUILD environment variable was not set. So exported CC_BUILD=i486-pc-linux-gnu-gcc and xmerged the library.

(While trying to fix this issue I entered #gentoo-embedded on freenode and actually met Yuri Vasilev, whom I had met in Edinburgh, at DebConf. Look for the video about Ligusk if you are interested about his project to make a Debian like distribution based on Gentoo. It was nice to meet a friendly "face" - as much you can say that online.)


I reported the bug (already there is a patch, I haven't tested, but looks ok) and the workaround in the gentoo bugzilla... after creating an account, since I never used that BTS before.

Second bug

Next pain was libart_lgpl whose upstream, for some comfortability reason chose to detect the target type sizes (and basically ignoring inttypes.h) with a small program which was built with the cross compiler which later was supposed to be ran on the host. I don't think is necessary to say that i failed, of course, since the binary was an ARM binary, while the host was an x86 machine. Yupee! not.

Ok, two bugs, no softfloat rrdtool yet. I reported this second bug and tried to work around the issue. Since I didn't really used too much a gentoo system, I wanted to know details and what possibilities I had. I got some really nice tips from "solar" (aka Ned Ludd) on #gentoo-embedded. He pointed out that while building a package one can press CTRL+z, do some stuff, like altering the Makefile.in file in the build directory and then fg back. Ok, cool.

All I need now is somebody with direct access to an arm machine that can compile and run for me the program in question. seanius on #debian-devel was kind enough to do this for me and, to my surprize, I got the same output header file as I got in the host x86 chroot. But that detail is not important, let's just compile that rrdtool. Well, first libart_lgpl...

Ok, I CTRL+Z-ed the build process just after the configure stage ended, cd-ed into the build directory, I tampered with the Makefile.in file and changed that line from

./gen_art_config > gen_art_config.h

into

cp /gen_art_config.h.arm gen_art_config.h

Haha! In your face! Ok, nasty did was done so I fg-ed and went on confident that I will get my hands on that rrdtool very soon. The package build ended succesfully, without any other suprizes, so I went for the graal!


xmerging rrdtool, the bugs don't stop

xmerge -v rrdtool

Bla, bla, bla.... bla, bla, bla, what do you know, there are a few IEEE math function tests in the configuration script of rrdtool. They failed. I don't know why, but I have a feeling that this should be happening on softfloat or even maybe the rrdtool source is not that cross compile aware. I didn't care that much, so I did what I knew best, tampering with an ongoing build.

This time is was a little bit harder to catch since I had to wait for the source to unpack (well, there is a larger frame, but that is the rough timing) and at that moment CTRL+Z the build.

I didn't had much time to waste, so after looking shortly over the tests I realized I should just ignore the error and look for the "failing command" that was interrupting my beloved build. Muhahah!

Thank God for verbose error messages, I could find the place fast and chaged the two "exit 1" statements into two harmless 'echo "Ignoring IEEE math errors"', sic. I had to do this a few times since I got the timping wrong, at some point I got the syntax wrong (at which point I remembered the cp trick I did earlier and saved the modified file in /configure.rrdtool )...

xmerging rrdtool and the 4th bug

After passing past this stage, I got a compilation error which, judging from the command, meant that the linker tried to link the target (arm) binary against the host (x86) libraries.

Oooook, this is not going to stop me! I look at the Makefile.in to try understand why this happened and then realized it wasn't worth it for me to try to fix it the right way. So I cheated once again! Muhaha, I just ran some useful commands which I'll let you feast your eyes to:

ln -sf /usr/arm-softfloat-linux-uclibc/usr/lib/libart_lgpl_2.so /usr/lib/
ln -sf /usr/arm-softfloat-linux-uclibc/usr/lib/libpng12.a /usr/lib/
ln -sf /usr/arm-softfloat-linux-uclibc/usr/lib/libfreetype.so /usr/lib/

Ok, good to go. Of course, I had to stop again the build to copy the "fixed" configure script that ignored IEEE math errors, but that is already history.

And, believe it or not, actually the build succeded. I had a cross built rrdtool using shared libraries built against softfloat ucllibc. No guarantees about its correctness, but it built!

This is when I decided to start writing this article.

Still there are things to do

I will have to do a few things before being happy about the victory:

Mike Hommey: One not so great thing about free software developers

… is that more than one are likely to have the same crazy ideas. When I started to play with xulrunner, which according to my oldest post in the xulrunner category would be near 2 years ago, I had this crazy idea (and here, when I say crazy, I almost think dumb) that it would be neat to have a window manager based on libxul, being able to display both “native” windows and XUL or HTML windows. Indeed, it would be neat, as in web-2.0-hype or i-can-use-gmail-directly. But that would be so much impossible to secure, and introduce so many different new ways to compromise users… Guess what… It now exists. Update: Waw, the GUADEC keynote slides are really full of crap. My favorite ones are about “The Fox” : Good engineering practices and Small, extensible core.

Wouter Verhelst: I suck

It's good if you bring out a maintenance release of a certain specific software package that you maintain, if it segfaults on startup when a new feature is used. It's pretty silly if that new version still segfaults if and only if that very same feature is used. What do you mean, testing? Anyway, today I released NBD 2.9.6 that fixes those issues. And I extended the tests that are ran as part of 'make distcheck' so that it won't be segfaulting on startup anymore next time I do a release. Silly me.

Martin F. Krafft: Chinese charity sought

Remember the free laptop I got, which I wanted to sell and donate the proceeds to a Chinese charity? Well, I finally managed to get off my butt and contact interested buyers and it looks like I'll be able to get rid of it for around 1000 (if you would pay more, let me know). Now I am looking for a Chinese organisation that is dedicated to protecting the environment in China. It should be small and effective such that the money can be put to good use. If you have any idea or even better, direct contacts to an organisation, please get in touch with me. I found a list of NGOs in China lists a number of NGOs in China I will consider, but having a direct contact would be better, especially to help me figure out how to get the money there. Also, if you know of forums or people who could help, please point them to this post. NP: Amorphis: Far from the Sun Update: I have enquired contact information for this group of students. Obviously, if you know those people or are involved with them, let me know.

Jesus Climent: Donating laptops

Not so long ago i posted a plea for people to donate their old hardware. Following my own advice, i donated one laptop which ended up in good hands, i believe ;) Unfortunately i got some people putting comments in my blog asking for a donation to be sent to places like India and Pakistan. And i say unfortunately because i cannot do that: i dont have any more laptops to donate, and even if i had, probably the cost of sending them would be similar to the price one would pay to purchase the same hardware in the country of destination. So No Can Do. I received a proposal to coordinate some donations, but so far i had not had the time to think about it. Too occupied with other things.

Next.

Previous.