Pacman

Historical bug tracker for the Pacman package manager.

The pacman bug tracker has moved to gitlab:
https://gitlab.archlinux.org/pacman/pacman/-/issues

This tracker remains open for interaction with historical bugs during the transition period. Any new bugs reports will be closed without further action.
Tasklist

FS#24307 - Pacman Seg fault and local db NULL

Attached to Project: Pacman
Opened by carlos sosa (csosa) - Monday, 16 May 2011, 16:16 GMT
Last edited by Dan McGee (toofishes) - Thursday, 02 June 2011, 12:55 GMT
Task Type Bug Report
Category General
Status Closed
Assigned To No-one
Architecture x86_64
Severity High
Priority Normal
Reported Version 3.5.2
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Summary and Info:
Pacman segmentation fault. (Trimmed) output of "sudo pacman -S pacman --debug":

debug: config: finished parsing /etc/pacman.d/mirrorlist
debug: config: finished parsing /etc/pacman.conf
debug: loading package cache for repository 'local'
error: database path is undefined
debug: returning error 11 from _alpm_db_path : could not open database
debug: returning error 11 from local_db_populate : could not open database
debug: failed to load package cache for repository 'local'
debug: warning: pkgcache is NULL for db 'local'
debug: warning: failed to get 'pacman' from NULL pkgcache
error: segmentation fault
Internal pacman error: Segmentation fault.
Please submit a full bug report with --debug if appropriate.

Steps to Reproduce:
sudo pacman -S pacman --debug
This task depends upon

Closed by  Dan McGee (toofishes)
Thursday, 02 June 2011, 12:55 GMT
Reason for closing:  Won't fix
Additional comments about closing:  Might already be fixed with  FS#24292 , but otherwise no reproducible platform
Comment by Dan McGee (toofishes) - Monday, 16 May 2011, 16:47 GMT
Can you attach your pacman.conf please?
Comment by carlos sosa (csosa) - Monday, 16 May 2011, 17:39 GMT
My pleasure. Many of the repos are commented out to make the --debug report smaller.

If it helps, this happened after my laptop battery fell out and my /var partition began to be mounted in /media/usbhd, and I couldn't boot. I fixed that by deleting that folder with the arch live cd.
Comment by Dan McGee (toofishes) - Monday, 16 May 2011, 18:21 GMT
When you say "deleting that folder", what exact path are you referring to?

Can you post the above type output again but using --verbose as well?
Comment by Dan McGee (toofishes) - Wednesday, 01 June 2011, 21:40 GMT
Closing if I get no more feedback here in then next week or so.
Comment by carlos sosa (csosa) - Thursday, 02 June 2011, 06:52 GMT
Sorry for the delay.

I deleted /media/usbhd-1. This was where my /var partition was being mounted, incorrectly and randomly. The partition was reported as unmounted before I deleted that folder but apparently it was still mounted because I lost the whole cache, pacman log, everything. I had to install Arch again. I don't think this was a bug in pacman, just a unique case where random /var files got deleted.

This isn't even the first time something like this happens (unrelated to pacman):
https://bbs.archlinux.org/viewtopic.php?id=115407
https://bbs.archlinux.org/viewtopic.php?pid=699732#p699732

Regards
Comment by Dan McGee (toofishes) - Thursday, 02 June 2011, 12:55 GMT
There is a good chance this was the same as  FS#24292 , but I can't be certain. Once thing I do know is that we likely aren't going to make further progress here as the original system it was reproducible on no longer exists.

Loading...