join utility segfults

2009-04-23 Thread Roman Kirillov

Hi guys,

Probably found a bug in 'join':

[kiril...@chiark py-src]$ join s1.txt s2.txt
Segmentation fault

files: http://sigizmund.info/upload/s12.tgz (28 mb)


--
Roman Kirillov
Yahoo! GeoInformatics Group

Y!Im: roman.kirillov | kiril...@yahoo-inc.com | +44(0)2071311384



___
Bug-coreutils mailing list
Bug-coreutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-coreutils


Re: join utility segfults

2009-04-24 Thread Roman Kirillov

Chaps,

Adding Vartika from our Linux support team to the chain – he's got  
some questions to ask. In the meanwhile, he's a contact person at Y!  
regarding this.


R

--
Roman Kirillov
Yahoo! GeoInformatics Group

Y!Im: roman.kirillov | kiril...@yahoo-inc.com | +44(0)2071311384

On 24 Apr 2009, at 11:59, Ondřej Vašík wrote:


Ondřej Vašík wrote:

Pádraig Brady wrote:

Roman Kirillov wrote:

[kiril...@chiark py-src]$ join s1.txt s2.txt
Segmentation fault
files: http://sigizmund.info/upload/s12.tgz (28 mb)


This issue seems related to the i18n patch applied by your distro

Just would like to add that it's already fixed in Fedora rawhide
package, so I'll fix it in next Fedora coreutils update for F-9/F-10.
In F-8 not, it's already EOL.


To keep the list informed about the conclusion...
It turned out that it was not really fixed in rawhide at the time of  
my

reply. Just due to "better memory management" change in join.c done by
Bo Borgerson between 6.12 and 7.0 was the occurance chance of the
segfault reduced from 100% to ~10%. After investigation of the problem
the culprit is now known. Multibyte patch was checking for exact
equality/non-equality with the limit of the file, so the limit was
skipped(and therefore SIGSEGV occured). Problem was fixed and built in
koji (Rawhide branch) as
http://koji.fedoraproject.org/koji/buildinfo?buildID=99330 and  
reported

against RHEL-5 as https://bugzilla.redhat.com/show_bug.cgi?id=497368 .
Patch to fix the issue could be found in that bugzilla, should work  
for
affected Fedora's and RHEL (or derived Distros). Additionally the  
issue
could be easily workarounded by using singlebyte locales (e.g.  
LC_ALL=C

join).

Greetings,
Ondřej Vašík




___
Bug-coreutils mailing list
Bug-coreutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-coreutils