FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Crash Utility

 
 
LinkBack Thread Tools
 
Old 01-01-1970, 01:00 AM
HATAYAMA Daisuke
 
Default Two small issues in is_compressed_kernel()

When I was using crash 5.1.4, I found two small issues in
is_compressed_kernel().

1) For vmlinux compressed with bzip2, is_compressed_kernel() is
forgetting to use basename() to a given file name before comparing it
with "vmlinux", due to which specifying vmlinux by relative or
absolute path lets a given vmlinux unintensionally interpreted as an
unsuported format. See an attached patch, though it's very obvious.

2) is_compressed_kernel() is assuming gunzip and bunzip2 are located
in /usr/bin/, but on Ubuntu they are located in /bin/, so
uncompression fails on Ubuntu due to No such file error. Could you add
a static or dynamic processing of detecting where binaries are
located?

Thanks.
HATAYAMA, Daisuke
--
Crash-utility mailing list
Crash-utility@redhat.com
https://www.redhat.com/mailman/listinfo/crash-utility
 
Old 04-04-2011, 01:30 PM
Dave Anderson
 
Default Two small issues in is_compressed_kernel()

----- Original Message -----
> When I was using crash 5.1.4, I found two small issues in
> is_compressed_kernel().
>
> 1) For vmlinux compressed with bzip2, is_compressed_kernel() is
> forgetting to use basename() to a given file name before comparing it
> with "vmlinux", due to which specifying vmlinux by relative or
> absolute path lets a given vmlinux unintensionally interpreted as an
> unsuported format. See an attached patch, though it's very obvious.

Yes it sure is -- queued for the next release. Thanks!

> 2) is_compressed_kernel() is assuming gunzip and bunzip2 are located
> in /usr/bin/, but on Ubuntu they are located in /bin/, so
> uncompression fails on Ubuntu due to No such file error. Could you add
> a static or dynamic processing of detecting where binaries are located?

Sure -- I'll fix that in the next release.

Thanks,
Dave
--
Crash-utility mailing list
Crash-utility@redhat.com
https://www.redhat.com/mailman/listinfo/crash-utility
 

Thread Tools




All times are GMT. The time now is 10:10 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org