[Haifux] rpm segfault

2004-04-04 Thread Maor Meir
Hi,
  I am running mandrake 8.1, and practicly anything I do with rpm
ends in a segmentation fault. I have managed installing a few packages
with urpmi successfully but when I try installing external packages
with rpm I get a segmentation fault.
also when trying to remove packages rpm -e I get a seg-fault.
when installing/updating dependency checking and preperation of the
packages work fine and after that it fails.
I have tried rpm --rebuilddb which didn't do any good.
I have tried installing/removing several freeciv rpms and several mysql
rpms all had the same results. while urpmi still works fine.

what does urpmi do diffrently?
how does one debug rpm? (I would rather avoide compiling rpm with debug
symbols and debugging it as one of my own)

ideas are welcome.

  Meir



--
Haifa Linux Club Mailing List (http://www.haifux.org)
To unsub send an empty message to [EMAIL PROTECTED]




Re: [Haifux] rpm segfault

2004-04-04 Thread Tzafrir Cohen
On Sun, Apr 04, 2004 at 12:45:07PM +0200, Maor Meir wrote:
 Hi,
   I am running mandrake 8.1, and practicly anything I do with rpm
 ends in a segmentation fault. I have managed installing a few packages
 with urpmi successfully but when I try installing external packages
 with rpm I get a segmentation fault.

'rpm -q rpm' as a non-root user works?

What is the version of rpm and of glibc?

ls -l /var/lib/rpm

 also when trying to remove packages rpm -e I get a seg-fault.
 when installing/updating dependency checking and preperation of the
 packages work fine and after that it fails.
 I have tried rpm --rebuilddb which didn't do any good.
 I have tried installing/removing several freeciv rpms and several mysql
 rpms all had the same results. while urpmi still works fine.

Does it actually install? You should see progress bars, as it uses rpm
-[iU]vh to install packages.

 
 what does urpmi do diffrently?
 how does one debug rpm? (I would rather avoide compiling rpm with debug
 symbols and debugging it as one of my own)

Two useful tracing tools:

strace, rpm -vv

-- 
Tzafrir Cohen   +---+
http://www.technion.ac.il/~tzafrir/ |vim is a mutt's best friend|
mailto:[EMAIL PROTECTED]   +---+

--
Haifa Linux Club Mailing List (http://www.haifux.org)
To unsub send an empty message to [EMAIL PROTECTED]




Re: [Haifux] rpm segfault

2004-04-04 Thread Maor Meir


On Sun, 4 Apr 2004, Tzafrir Cohen wrote:

 On Sun, Apr 04, 2004 at 12:45:07PM +0200, Maor Meir wrote:
  Hi,
  I am running mandrake 8.1, and practicly anything I do with rpm
  ends in a segmentation fault. I have managed installing a few packages
  with urpmi successfully but when I try installing external packages
  with rpm I get a segmentation fault.

 'rpm -q rpm' as a non-root user works?

Yes rpm -q works fine:

 What is the version of rpm and of glibc?
rpm-4.0.4-19mdk
glibc-2.3.2-14mdk

 Does it actually install? You should see progress bars, as it uses rpm
 -[iU]vh to install packages.

  what does urpmi do diffrently?
  how does one debug rpm? (I would rather avoide compiling rpmwith debug
  symbols and debugging it as one of my own)

 Two useful tracing tools:

 strace, rpm -vv

strace I already tried before ddn't seem very usefull,
rpm -Uvvh MySQL-server-5.0.0-0.i386.rpm
gave the followinf output:
...snip...
D: closed   db index   /var/lib/rpm/Depends
D: == recording tsort relations
D: == tsorting packages (order, #predecessors, #succesors, tree,
depth)
D: 00100  MySQL-server-5.0.0-0
D: installing binary packages
Preparing...###
[100%]
D: Expected size: 12448671 = lead(96)+sigs(149)+pad(3)+data(12448423)
D:   Actual size: 12448671
D:   install: MySQL-server-5.0.0-0 has 164 files, test = 0
Segmentation fault (core dumped)


It doesn't seem to actually install anything, strace showed that,
and as a sample /usr/sbin/mysqld was untouched.

  Meir


--
Haifa Linux Club Mailing List (http://www.haifux.org)
To unsub send an empty message to [EMAIL PROTECTED]




Re: [Haifux] rpm segfault

2004-04-04 Thread Tzafrir Cohen
On Sun, Apr 04, 2004 at 05:53:42PM +0200, Maor Meir wrote:
 
 
 On Sun, 4 Apr 2004, Tzafrir Cohen wrote:
 
  On Sun, Apr 04, 2004 at 12:45:07PM +0200, Maor Meir wrote:
   Hi,
   I am running mandrake 8.1, and practicly anything I do with rpm
   ends in a segmentation fault. I have managed installing a few packages
   with urpmi successfully but when I try installing external packages
   with rpm I get a segmentation fault.
 
  'rpm -q rpm' as a non-root user works?
 
 Yes rpm -q works fine:
 
  What is the version of rpm and of glibc?
 rpm-4.0.4-19mdk

 glibc-2.3.2-14mdk

Where is it from? Any chance this version has NPTL support?

 
  Does it actually install? You should see progress bars, as it uses rpm
  -[iU]vh to install packages.
 
   what does urpmi do diffrently?
   how does one debug rpm? (I would rather avoide compiling rpmwith debug
   symbols and debugging it as one of my own)

If the above is true, check its environment for LD_ASSUME_KERNEL
(/proc/ID/env) . Though I figure this is not that.

 
  Two useful tracing tools:
 
  strace, rpm -vv
 
 strace I already tried before ddn't seem very usefull,
 rpm -Uvvh MySQL-server-5.0.0-0.i386.rpm
 gave the followinf output:
 ...snip...
 D: closed   db index   /var/lib/rpm/Depends
 D: == recording tsort relations
 D: == tsorting packages (order, #predecessors, #succesors, tree,
 depth)
 D: 00100  MySQL-server-5.0.0-0
 D: installing binary packages
 Preparing...###
 [100%]
 D: Expected size: 12448671 = lead(96)+sigs(149)+pad(3)+data(12448423)
 D:   Actual size: 12448671
 D:   install: MySQL-server-5.0.0-0 has 164 files, test = 0
 Segmentation fault (core dumped)

-- 
Tzafrir Cohen   +---+
http://www.technion.ac.il/~tzafrir/ |vim is a mutt's best friend|
mailto:[EMAIL PROTECTED]   +---+

--
Haifa Linux Club Mailing List (http://www.haifux.org)
To unsub send an empty message to [EMAIL PROTECTED]