I wonder if the cryptsetup issue is also related to this:
From the changelog: Quote:
I'm not very comfortable with this somewhat 'pragmatic' approach of just removing the offending static binary. If as it now seems there's a wider issue at work here with the static libraries then one can't have confidence that the system is going to be a solid foundation to build on. I hope the devs take an interest in this. I'd hate to have to revert to the 32bit version now. |
The static cryptsetup binary segfaulted on x86_64... and for certain commands only. This also happened on other distros, even the bigger ones, no one found out why, and the static binary has been dropped from all distros. I think we were the last to drop the static cryptsetup.
If you can find why a 64-bit binary crashes when returning from a signal handler then I'll gladly look at your patch. If not, then there is not going to be any change to Slackware64. You are on top of this problem and it'll be easier for you (as software developers or at least savvy with debuggers) to find the bug than any of the Slackware team. We are simply to small a team to be bothered with bugs like these, unless someone writes the patch to fix it. Eric |
Quote:
Quote:
Quote:
Note that I took the liberty to ask to Patrick ("The One" :) ), and he was kind to answer me, but couldn't help at that time: Quote:
Anyway I should be able to find the problem, but I'm lacking of too many infos here, and so few time, so I'd "just" need some help/clues from some dudes that could handle that. Moreover I really want to promote Slackware as a dev os, and I'd be happy to be able to showcase 64bit demos ;). Cheers. |
Quote:
I know Garry said Ubuntu doesn't suffer this same problem so I'm wondering what version of glibc that's running. If we can identify this as library version specific rather than slackware specific, that would give us something to go on and maybe even getting upstream to take an interest. Anyone running any other 64bit distro that use glibc 2.11 and demonstrates this same issue, or not? |
Quote:
I've also tried glibc-help mailing list (my first call for help in fact), I first tried to explain the crash, the only answer I had was an ask for a test case, which I wrote, but no more answer. Then on the LQ's programming forum, it seems to me I had more answers on "basics concepts" than on the "real deal". We need someone who understand glibc/kernel calls/64bit and who take us seriously :). But again, I should be able to track this down, if I can have some 'contextual infos' or pointers to helpful docs. I've seen other "64bit segfault" stuff around the web but not related to that bug OR too old to be still alive in nowadays glibc (like early 2Ks). Segfaults are so common (associated with ret/q) that it's hard to pinpoint the same context on google searches. BTW, of course I get frustrated because of this bug, but THANK YOU to the Slackware Team, we all appreciate your work and efforts. Bests. |
If ubuntu doesn't show the same behaviour, I'd get a copy of the deb/ubuntu quilt-patch for glibc and apply it to the sources. Then, cd into the debian/patches folder inside and grep for the offending function call. If it's a glibc issue something should show up in the patches.
|
I haven't a clue what the solution is, but I was interested, and had some free space and a Ubuntu 9.04 amd64 CD, so I thought I'd check it out. Slackware 13.0 and Ubuntu 9.04 have the same gcc and glibc versions: 4.3.3 and 2.9. All the programs, Gazl's and NoStressHQ's, static and shared, worked OK with no segmentation fault.
|
Quote:
So it seems it's really a slackbuild/patch somehow. That 'diff' option sounds good but I don't know ubuntu at all. gnashley seems to have some expertise with it. Do you have time to try that ? Or what do I need to do, if I need to do it (I mean where are stored the install/patch scripts of ubuntu, sorry if this sounds stupid, but I'm quite uncomfortable with unbuntu hahaha). Btw, Slack 13.1 beta has come, great news :) Cheers |
I haven't any experience of dealing with patches and .diff files. I got Ubuntu's glibc source, and I'm on Slack now with Ubuntu mounted on /mnt/tmp. In (Ubuntu's) /usr/src/glibc/glibc-2.9/debian/patches, there's a list of all the patches. I've had a glance at some, but I don't really know what to look for. Here's the edited list:
Code:
amd64/local-biarch.diff |
I've been looking through the ubuntu diff here:
https://launchpad.net/ubuntu/+source/glibc/2.9-9ubuntu2 Signals get mentioned quite a few times. Identifying which may be relevant is the hard part. Searching for restore_rt finds quite a few hits too. edit: Actually that restore_rt stuff appears to be specific to a motorola port (m32r), so I don't think that one is relevant. |
Hey thanks brianL and GazL, I've looked the diffs in the links you sent, I note some things 'close', but I think nothing is related to our case. Yeah the rt_restore patch is for another arch (but maybe the same behavior happened on the motorola ?)
Anyway I'd be happy to apply ubuntu diff-patch on the glibc and diff both versions with a 'slack patched glibc'... But I have a little issue: slack-current glibc has become 2.11.1 while the ubuntu diff was targeted to 2.9. So the diff between the two versions might be bloated or irrelevant. Maybe if I get an older version of slack's glibc (a 2.9) it will fit ? I give a try with slackware 13.0 one which seems to be matching. Cheers. |
It would help relative newbies (or slow, lazy learners :) ) like me, if they gave patches obvious names like stops_static_programs_segfaulting_when_shared_versions_run_ok.diff. :)
|
Quote:
|
Quote:
I too have downloaded the Ubuntu source and am finding the patch structure more than a little bewildering. Not to mention running into the library calls and such like with a debugger is not the easiest debugging task. Personally I find it quite frustrating when things like this go unfixed in some versions but not others. Not being too familiar with FOSS development models I could be missing something here but, at first sight, it looks like the Ubuntu patches, if their benefit is somewhat universal, should be passed upstream so all library users may benefit. Anyway, enough ranting on something I'm certainly no expert in. @NoStressHQ - Good luck with this - it would be interesting to see what fix you settle for with this and it's performance. |
I don't think it's in those Ubuntu specific patches, but in those /any/*.diffs.
|
All times are GMT -5. The time now is 02:24 AM. |