[CentOS] Can't see register value in crash vmcore

2017-12-27 Thread wuzhouhui
OS: CentOS 6.5
Crash: crash-7.1.0-6.el6.x86_64
Kdump: kexec-tools-2.0.0-273.el6.x86_64
GDB: gdb-7.2-60.el6_4.1.x86_64
/etc/kdump.conf: core_collector makedumpfile -c --message-level 1 -d 31

Kernel crashed by panic("string"), but I can't see any register in vmcore:

crash> bt
PID: 53331  TASK: 880c523ed540  CPU: 2   COMMAND: "bw_sd-ar-7-0_2"
 #0 [880c4f12f978] machine_kexec at 81038ed9
 #1 [880c4f12f9d8] crash_kexec at 810c5a82
 #2 [880c4f12faa8] panic at 815113b2
 #3 [880c4f12fb28] sd_submit_bio at a0747a02 [sd]
 #4 [880c4f12fb68] submit_clone_bio at a0747d2b [sd]
 #5 [880c4f12fb78] split_and_submit_bio_for_cbd at a0747ec9 [sd]
 #6 [880c4f12fbf8] sd_make_request at a074c812 [sd]
 #7 [880c4f12fc68] sdu_make_request at a074ca41 [sd]
 #8 [880c4f12fc88] generic_make_request at 81264d70
 #9 [880c4f12fd68] submit_bio at 81265140
#10 [880c4f12fdb8] submit_area_bio at a04ade20 [scst_vdisk]
#11 [880c4f12fde8] bwraid_submit_bio at a04b03b2 [scst_vdisk]
#12 [880c4f12fe38] worker_thread at 81094c50
#13 [880c4f12fee8] kthread at 8109ae26
#14 [880c4f12ff48] kernel_thread at 8100c20a
crash> 

Is it normal?

Thanks.
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] An rpmbuild spec question

2017-12-27 Thread Kenneth Porter

On 12/27/2017 3:09 PM, m.r...@5-cent.us wrote:

My current issue, that I keep falling back to, is the install
*INSISTS*  that it has to add a - after version.


You're missing the spec file header that includes lots of meta 
information. The dash is to separate the version from the package 
release string. You should have a Release: header to fill that in.



  install -m 744 -d %{buildroot}/%{name}-%{version}
No need to set the mode here. Do that in the %files section with the 
defattrs tag.

%files
%{buildroot}/%{name}
Use the final absolute install path in %files. Don't include the 
buildroot. So just /opt/%{name}.

What I see from the rpmbuild is
+ cd /usr//local//src//rpmbuild/BUILD
Don't build as root. I create a special user to build packages from. 
Install the rpmdevtools package and run rpmdev-setuptree as your build user.


http://www.g-loaded.eu/2006/04/05/how-to-build-rpm-packages-on-fedora/
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] An rpmbuild spec question

2017-12-27 Thread m . roth
Stephen John Smoogen wrote:
> On Wed, Dec 27, 2017 at 3:41 PM  wrote:
>
>> I'm trying to build a package to create a directory and install some
>> files. My rpmbuild keeps failing, unable to cd into the directory, "no
>> such". Now, in the tmpfile, I *see* it cd'ing into BUILD/opt, and the
>> source was unzipped and untared into BUILD/opt/smipmicfg-1.27.0. In the
>> spec file, I've even added a cd $RPM_BUILD_ROOT/opt, and I see it cd to
>> there... and then it says it fails cd'ing into the directory under it.
>>
>> I've been doing a lot of googling, but nothing seems to fix this. Anyone
>> got a clue?
>>
> Can you post any of the rpm spec file OR the tmp file? Without that it is
> very hard to know what you are trying to do and what it is actually doing
> instead.
>
Sure. I think I'm closer, but I'm also at the point where I'm just trying
things. My current issue, that I keep falling back to, is the install
*INSISTS* that it has to add a - after version.

%prep

%install
mkdir $RPM_BUILD_DIR/opt/smipmicfg-%{version}
 install -m 744 -d %{buildroot}/%{name}-%{version}

%clean
rm -rf %{buildroot}

%files
%{buildroot}/%{name}

All I want to build is a package to create /opt/smipmicfg-1.20.0, and copy
files into it.

What I see from the rpmbuild is
+ cd /usr//local//src//rpmbuild/BUILD
+ '['
/usr/local/src/rpmbuild/BUILDROOT/smipmicfg-1.27.0-.el7.centos.x86_64 '!='
/ ']'
And you see that "-" after the name/version

 mark

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] An rpmbuild spec question

2017-12-27 Thread Jonathan Billings
On Dec 27, 2017, at 15:40, m.r...@5-cent.us wrote:
> 
> I'm trying to build a package to create a directory and install some
> files. My rpmbuild keeps failing, unable to cd into the directory, "no
> such". Now, in the tmpfile, I *see* it cd'ing into BUILD/opt, and the
> source was unzipped and untared into BUILD/opt/smipmicfg-1.27.0. In the
> spec file, I've even added a cd $RPM_BUILD_ROOT/opt, and I see it cd to
> there... and then it says it fails cd'ing into the directory under it.
> 
> I've been doing a lot of googling, but nothing seems to fix this. Anyone
> got a clue?


If you’re using %setup to untar your source, it needs to expand in with the 
directory name %name-%version in the %buildroot directory, unless you give 
%setup a -n parameter with what it is t expect. Not sure why you have a opt/ 
sub directory, the is the build root not the install root. I’m honestly not 
sure you can say %setup -n opt/smipmicfg-1.27.0.  Are you building a package 
that doesn’t need to be compiled?  
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] An rpmbuild spec question

2017-12-27 Thread Stephen John Smoogen
On Wed, Dec 27, 2017 at 3:41 PM  wrote:

> I'm trying to build a package to create a directory and install some
> files. My rpmbuild keeps failing, unable to cd into the directory, "no
> such". Now, in the tmpfile, I *see* it cd'ing into BUILD/opt, and the
> source was unzipped and untared into BUILD/opt/smipmicfg-1.27.0. In the
> spec file, I've even added a cd $RPM_BUILD_ROOT/opt, and I see it cd to
> there... and then it says it fails cd'ing into the directory under it.
>
> I've been doing a lot of googling, but nothing seems to fix this. Anyone
> got a clue?
>


Can you post any of the rpm spec file OR the tmp file? Without that it is
very hard to know what you are trying to do and what it is actually doing
instead.



>  mark
>
> ___
> CentOS mailing list
> CentOS@centos.org
> https://lists.centos.org/mailman/listinfo/centos
>
-- 
Stephen J Smoogen.
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


[CentOS] An rpmbuild spec question

2017-12-27 Thread m . roth
I'm trying to build a package to create a directory and install some
files. My rpmbuild keeps failing, unable to cd into the directory, "no
such". Now, in the tmpfile, I *see* it cd'ing into BUILD/opt, and the
source was unzipped and untared into BUILD/opt/smipmicfg-1.27.0. In the
spec file, I've even added a cd $RPM_BUILD_ROOT/opt, and I see it cd to
there... and then it says it fails cd'ing into the directory under it.

I've been doing a lot of googling, but nothing seems to fix this. Anyone
got a clue?

 mark

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


[CentOS] (Dovecot) Package repository now available (fwd)

2017-12-27 Thread Kenneth Porter
If you use CentOS as a mail server, you can now get the latest version of 
Dovecot (the IMAP and POP3 server) at the new Dovecot repo.


 Forwarded Message 
Date: Wednesday, December 27, 2017 5:00 PM +0200
From: aki.tu...@dovecot.fi
To: dove...@dovecot.org, dovecot-n...@dovecot.org
Subject: Package repository now available

Dovecot now has package repository for Debian, CentOS and Ubuntu available
at https://repo.dovecot.org/

Packages are provided for 2.3 series and forward. Please let us know if you
run into any trouble with these.

---
Aki Tuomi
Dovecot oy

-- End Forwarded Message --




___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos