PDA

View Full Version : segfault on apt


piscue
12-16-2004, 10:10 AM
Hi,

This is my first post

Sometimes, not always, I have segfaults installing with apt:

# apt-get install cowsay
Reading Package Lists... Done
Building Dependency Tree... Done
The following NEW packages will be installed:
cowsay
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 17.4kB of archives.
After unpacking 79.9kB of additional disk space will be used.
Get:1 http://http.us.debian.org testing/main cowsay 3.03-6 [17.4kB]
Fetched 17.4kB in 1s (14.7kB/s)
E: Sub-process /usr/bin/dpkg received a segmentation fault.

Someone knows why? I'm using sarge on MataiVPS1

piscue
12-16-2004, 03:28 PM
Someone knows why? I'm using sarge on MataiVPS1

I've seen that i can't "mount" swap on boot and later manually...

ubd7: Can't open "/dev/shm2/tmp/us.piscue.com/swapfs.swp": errno = 2

^^ it's appears on startup...

retep
12-16-2004, 09:24 PM
apt segfaulting (and other programs to boot) is typically caused by an out of memory condition. You can check by looking for the out of memory error messages in /var/log/messages per http://rimuhosting.com/howto/memory.jsp

And the out of memory issue is probably related to your swap file not being available. I'm not sure why. We create it at the start of each VPS boot up.

I've just restarted your VPS and the swap is there now.

BTW, if you have problem that you think will need our support help, I recommend you put in a support ticket.

These forums are intended for dialogues between customers. e.g. "what would you recommend for doing xxx"; "how have you found yyy"; "anyone know how to zzzz". You may or may not get a response. And the response may or may not be timely.

Anyway, I hope the correct swap setup makes things work a bit better on your VPS. Enjoy.

piscue
12-16-2004, 10:47 PM
Well, Thanks for reply.

At first sight, i've though, that could be an error for upgrading to sarge.. and maybe other peopple have the same trouble... missing to installl a package or something.

All are right now, Thanks!