You are not logged in.

#1 2005-03-16 02:51:37

intrinsic
Member
Registered: 2004-03-16
Posts: 21

pacman segfault

# pacman -Syu
:: Synchronizing package databases...
:: current is up to date
extra                    [################] 100%     196K    24.6K/s  00:00:07
Segmentation fault

doesn't give any other information but the segfault so i don't even know where to start.

Offline

#2 2005-03-16 04:21:15

kill
Member
Registered: 2004-09-30
Posts: 126

Re: pacman segfault

Start by running memtest86.

Offline

#3 2005-03-16 05:47:16

intrinsic
Member
Registered: 2004-03-16
Posts: 21

Re: pacman segfault

uhmm...
i'm not quite getting why i would want to run memtest.
i've been running arch for quite some time now.
i've been dual booting even longer.
believe me i don't have bad ram.
it is some other problem with pacman and maybe some conflict with the newest pacman i downloaded after a system upgrade and some other package maybe...

Offline

#4 2005-03-16 21:13:52

kill
Member
Registered: 2004-09-30
Posts: 126

Re: pacman segfault

Ram can go bad it doesn't have to start that way.  Segmentation faults are when either an application trys to access memory it does not have access or trys to do thing it can't with that memory.  Poorly written applications (pacman is not) and bad ram are the primary caues of segfaults.  Like you said yourself you've been running arch for quite some time which leds to beleive there is not a problem with pacman but with your ram going bad.  Run memtest86.

Offline

#5 2005-03-16 21:36:32

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: pacman segfault

You could run strace on pacman to see what calls are being made just before the segfault.  Might indicate something.

Dusty

Offline

#6 2005-03-16 22:01:26

IceRAM
Member
From: Bucharest, Romania
Registered: 2004-03-04
Posts: 772
Website

Re: pacman segfault

Hmm.. got a segfault too today, after upgrading loads of packages (KDE, kernel, nvidia & others)...
... and I've got 999 months guarantee for my RAM.

I got the segfault exactly after upgrading the last package in the list (which was wine), most likely on exit pacman tried to free some pointers. I believe it installed fine. Running pacman afterwards didn't create a segfault.

I usually run programs that segfault with debug symbols in valgrind to get more information. Unfortunately, I can't find this segfault reproduceable.

Offline

#7 2005-03-16 23:07:03

Eugenia
Member
From: Bay Area, CA, USA
Registered: 2005-03-08
Posts: 74
Website

Re: pacman segfault

The same segfault happened to me. I had to restart pacman and the second time it went through.

Offline

#8 2005-03-16 23:40:16

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: pacman segfault

Hmm, I recall a similar event happening a few releases back. Nobody's had any trouble in recent weeks, however. The question is, Is this the same problem or a new one?

If no bug report exists, one should be filed. I haven't had any trouble with it.

The work around, as suggested, is to run pacman a second time to complete the update.

Dusty

Offline

#9 2005-03-17 05:37:51

Eugenia
Member
From: Bay Area, CA, USA
Registered: 2005-03-08
Posts: 74
Website

Re: pacman segfault

I just had a few more segfaults with pacman tonight. It usually happens when scrollkeeper updates its index.

Offline

#10 2005-03-17 16:45:16

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: pacman segfault

Definately file a bug report then. If its happening more than once a day its a bug. :-D

Offline

#11 2005-03-17 18:23:49

intrinsic
Member
Registered: 2004-03-16
Posts: 21

Re: pacman segfault

yup no matter how many times i run pacman -Syu i keep gettin a segfault.
since my last upgrade jus seems to be permanently broke for me.

Offline

#12 2005-03-17 20:36:53

xerxes2
Member
From: Malmoe, Sweden
Registered: 2004-04-23
Posts: 1,249
Website

Re: pacman segfault

you can try # pacman.static -Syu


arch + gentoo + initng + python = enlisy

Offline

#13 2005-03-18 13:55:46

FoPref
Member
From: Erlangen / Germany
Registered: 2004-03-24
Posts: 96
Website

Re: pacman segfault

intrinsic: you could install valgrind (not using pacman) and run
valgrind pacman <stuff>

it is a very good debugger for such problems. It will show at which position pacman (if it does) happen to violate something (and how). This often shows problems that occur some steps _before_ the segfault, which is indirectly caused.

In your situation I would use the fact that you can reproduce it to find out the reason.

I had some segfaults my self which all were unreproducable hmm


cu
Ford Prefect

Offline

#14 2005-03-18 17:51:54

orelien
Forum Fellow
From: France
Registered: 2002-12-05
Posts: 220
Website

Re: pacman segfault

To help troubleshooting such crashes, we need:
- pacman version
- the core file resulting of the crash
- a tarball of the directory /var/lib/pacman
- a copy of /etc/pacman.conf

To get a useful core dump, pacman needs to be compiled in debug mode:
- rebuild pacman package with the --nostrip option
- run "ulimit -c unlimited" to allow the core file creation
- run pacman to reproduce the crash (better with pacman.static)
- put the expected files somewhere where we can retrieve them, or try attaching them to a bug report (think to "gzip -9"!)

Thanks!

Offline

Board footer

Powered by FluxBB