#26 segmentation fault

open
nobody
None
5
2013-11-14
2008-07-16
Ittay Dror
No

I get a segmentation fault cause when extracting a file created with 'zip':

zip -v
Copyright (c) 1990-2006 Info-ZIP - Type 'zip "-L"' for software license.
This is Zip 2.32 (June 19th 2006), by Info-ZIP.

ruby call trace shows this:
["/work/research/buildr/lib/buildr/packaging/zip.rb", 534, "extract"]
["/work/research/buildr/lib/buildr/packaging/zip.rb", 629, "initialize"]
["/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb", 426, "to_s"]
["/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb", 468, "name"]
["/usr/lib/ruby/1.8/fileutils.rb", 195, "mkpath"]
["/usr/lib/ruby/1.8/fileutils.rb", 1435, "fu_check_options"]
["/usr/lib/ruby/1.8/fileutils.rb", 1387, "fu_list"]
["/usr/lib/ruby/1.8/fileutils.rb", 237, "fu_mkdir"]
["/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb", 426, "to_s"]
["/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb", 468, "name"]
["/usr/lib/ruby/gems/1.8/gems/rubyzip-0.9.1/lib/zip/zip.rb", 1378, "open"]
["/usr/lib/ruby/gems/1.8/gems/rubyzip-0.9.1/lib/zip/zip.rb", 1356, "initialize"]
["/usr/lib/ruby/gems/1.8/gems/rubyzip-0.9.1/lib/zip/zipfilesystem.rb", 39, "initialize"]
["/usr/lib/ruby/gems/1.8/gems/rubyzip-0.9.1/lib/zip/zipfilesystem.rb", 538, "initialize"]
["/usr/lib/ruby/gems/1.8/gems/rubyzip-0.9.1/lib/zip/zipfilesystem.rb", 423, "initialize"]
["/usr/lib/ruby/gems/1.8/gems/rubyzip-0.9.1/lib/zip/zipfilesystem.rb", 156, "initialize"]
["/usr/lib/ruby/gems/1.8/gems/rubyzip-0.9.1/lib/zip/zip.rb", 1228, "read_from_stream"]
["/usr/lib/ruby/gems/1.8/gems/rubyzip-0.9.1/lib/zip/zip.rb", 1203, "read_e_o_c_d"]
["/usr/lib/ruby/gems/1.8/gems/rubyzip-0.9.1/lib/zip/zip.rb", 1233, "get_e_o_c_d"]
["/usr/lib/ruby/gems/1.8/gems/rubyzip-0.9.1/lib/zip/zip.rb", 482, "read_zip_short"]
["/usr/lib/ruby/gems/1.8/gems/rubyzip-0.9.1/lib/zip/zip.rb", 1258, "read"]
["/usr/lib/ruby/gems/1.8/gems/rubyzip-0.9.1/lib/zip/zip.rb", 482, "read_zip_short"]
["/usr/lib/ruby/gems/1.8/gems/rubyzip-0.9.1/lib/zip/zip.rb", 1258, "read"]
["/usr/lib/ruby/gems/1.8/gems/rubyzip-0.9.1/lib/zip/zip.rb", 482, "read_zip_short"]
["/usr/lib/ruby/gems/1.8/gems/rubyzip-0.9.1/lib/zip/zip.rb", 1258, "read"]
["/usr/lib/ruby/gems/1.8/gems/rubyzip-0.9.1/lib/zip/zip.rb", 482, "read_zip_short"]
["/usr/lib/ruby/gems/1.8/gems/rubyzip-0.9.1/lib/zip/zip.rb", 1258, "read"]
["/usr/lib/ruby/gems/1.8/gems/rubyzip-0.9.1/lib/zip/zip.rb", 486, "read_zip_long"]
["/usr/lib/ruby/gems/1.8/gems/rubyzip-0.9.1/lib/zip/zip.rb", 1258, "read"]
["/usr/lib/ruby/gems/1.8/gems/rubyzip-0.9.1/lib/zip/zip.rb", 486, "read_zip_long"]
["/usr/lib/ruby/gems/1.8/gems/rubyzip-0.9.1/lib/zip/zip.rb", 1258, "read"]
["/usr/lib/ruby/gems/1.8/gems/rubyzip-0.9.1/lib/zip/zip.rb", 482, "read_zip_short"]
["/usr/lib/ruby/gems/1.8/gems/rubyzip-0.9.1/lib/zip/zip.rb", 1258, "read"]
["/usr/lib/ruby/gems/1.8/gems/rubyzip-0.9.1/lib/zip/zip.rb", 1258, "read"]
["/usr/lib/ruby/gems/1.8/gems/rubyzip-0.9.1/lib/zip/zip.rb", 1216, "read_central_directory_entries"]
["/usr/lib/ruby/gems/1.8/gems/rubyzip-0.9.1/lib/zip/zip.rb", 1098, "initialize"]
["/usr/lib/ruby/gems/1.8/gems/rubyzip-0.9.1/lib/zip/zip.rb", 631, "read_c_dir_entry"]
["/usr/lib/ruby/gems/1.8/gems/rubyzip-0.9.1/lib/zip/zip.rb", 355, "initialize"]
["/usr/lib/ruby/gems/1.8/gems/rubyzip-0.9.1/lib/zip/stdrubyext.rb", 36, "starts_with"]
["/usr/lib/ruby/gems/1.8/gems/rubyzip-0.9.1/lib/zip/zip.rb", 438, "name_is_directory?"]
["/usr/lib/ruby/gems/1.8/gems/rubyzip-0.9.1/lib/zip/zip.rb", 1761, "initialize"]
["/usr/lib/ruby/gems/1.8/gems/rubyzip-0.9.1/lib/zip/zip.rb", 1765, "merge"]
["/usr/lib/ruby/gems/1.8/gems/rubyzip-0.9.1/lib/zip/zip.rb", 564, "read_c_dir_entry"]
["/usr/lib/ruby/gems/1.8/gems/rubyzip-0.9.1/lib/zip/zip.rb", 824, "set_time"]
["/usr/lib/ruby/gems/1.8/gems/rubyzip-0.9.1/lib/zip/stdrubyext.rb", 85, "parse_binary_dos_format"]
["/usr/lib/ruby/gems/1.8/gems/rubyzip-0.9.1/lib/zip/zip.rb", 1761, "initialize"]
["/usr/lib/ruby/gems/1.8/gems/rubyzip-0.9.1/lib/zip/zip.rb", 1765, "merge"]

gdb on core dump doesn't reveal anything.

Discussion


Anonymous

Cancel  Add attachments





Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks