> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf
> Of Luis Lavena
> Sent: Tuesday, March 18, 2008 6:12 PM
> To: RubyGems Developers (ML)
> Subject: [Rubygems-developers] trunk segfault on Windows
>
> Hello fellow ruby developers!,
>
> Been away a few weeks (work and vacations) and didn't notice
> until today that my CI for several Ruby OSS projects was
> down. Switching it on again showed a few issues with latest Rubygems.
>
> It seems that the changes introduced in trunk (related to tar
> handling) are generating some segmentation faults in Windows:
>
> (in D:/Users/Luis/projects/oss/rubygems/rubygems-trunk)
> Loaded suite
> C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake/rake_test_loader
> Started
> ...E....E........../lib/rubygems/package/tar_header.rb:211: warning:
> Zlib::GzipWriter object must be closed explicitly.
> ./lib/rubygems/package/tar_writer.rb:40: [BUG] Segmentation
> fault ruby 1.8.6 (2007-09-24) [i386-mswin32]
>
>
> This application has requested the Runtime to terminate it in
> an unusual way.
> Please contact the application's support team for more information.
> rake aborted!
> Command failed with status (3): [C:/Ruby/bin/ruby -w -Ilib
> "C:/Ruby/lib/rub...]
>
> (See full trace by running task with --trace)
>
> Ruby used:
> ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32] (this
> is x86-mswin32-60) Windows XP SP2
Here's the code in question from zlib.c:
static void
gzfile_free(gz)
struct gzfile *gz;
{
struct zstream *z = &gz->z;
if (ZSTREAM_IS_READY(z)) {
if (z->func == &deflate_funcs) {
finalizer_warn("Zlib::GzipWriter object must be closed
explicitly.");
}
zstream_finalize(z);
}
free(gz);
}
static void
finalizer_warn(msg)
const char *msg;
{
fprintf(stderr, "zlib(finalizer): %s\n", msg);
}
static void
zstream_finalize(z)
struct zstream *z;
{
int err = z->func->end(&z->stream);
if (err == Z_STREAM_ERROR)
finalizer_warn("the stream state was inconsistent.");
if (err == Z_DATA_ERROR)
finalizer_warn("the stream was freed prematurely.");
}
Nothing jumps out at me at the moment. Anyone else?
Regards,
Dan
This communication is the property of Qwest and may contain confidential or
privileged information. Unauthorized use of this communication is strictly
prohibited and may be unlawful. If you have received this communication
in error, please immediately notify the sender by reply e-mail and destroy
all copies of the communication and any attachments.
_______________________________________________
Rubygems-developers mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rubygems-developers