OpenVZ Forum


Home » General » Support » Segmentation fault. Bug?
Segmentation fault. Bug? [message #13303] Thu, 24 May 2007 13:55 Go to next message
3molo is currently offline  3molo
Messages: 13
Registered: April 2007
Junior Member
some:/backup# vzctl start 110
Starting VE ...
VE is mounted
Adding IP address(es): 192.168.0.100
Running VE script: /etc/vz/dists/scripts/debian-add_ip.sh
Setting CPU units: 1000
Configure meminfo: 49152
Set hostname: somehost
Running VE script: /etc/vz/dists/scripts/debian-set_hostname.sh
Running VE script: /etc/vz/dists/scripts/set_dns.sh
File resolv.conf was modified
Setting quota ugidlimit: 3000
Running VE script: /etc/vz/dists/scripts/set_ugid_quota.sh
Segmentation fault

A quick strace from set_ugid_quota.sh gives:

write(1, "Running VE script: /etc/vz/dists"..., 59Running VE script: /etc/vz/dists/scripts/set_ugid_quota.sh
) = 59
time(NULL) = 1180014632
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=675, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=675, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=675, ...}) = 0
write(3, "2007-05-24T15:50:32+0200 vzctl :"..., 101) = 101
ioctl(4, 0x400c2e05, 0xbfa22090) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb7d92928) = 2356
waitpid(2356, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0) = 2356
--- SIGCHLD (Child exited) @ 0 (0) ---
stat64("/usr/sbin/vzquota", {st_mode=S_IFREG|0755, st_size=52328, ...}) = 0
rt_sigaction(SIGCHLD, NULL, {SIG_DFL}, Cool = 0
rt_sigaction(SIGCHLD, {SIG_DFL}, NULL, Cool = 0
time(NULL) = 1180014632
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=675, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=675, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=675, ...}) = 0
write(3, "2007-05-24T15:50:32+0200 vzctl :"..., 82) = 82
pipe([7, 10]) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb7d92928) = 2367
waitpid(2367, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0) = 2367
--- SIGCHLD (Child exited) @ 0 (0) ---
rt_sigaction(SIGCHLD, {SIG_DFL}, NULL, Cool = 0
stat64("/usr/sbin/vzquota", {st_mode=S_IFREG|0755, st_size=52328, ...}) = 0
rt_sigaction(SIGCHLD, NULL, {SIG_DFL}, Cool = 0
rt_sigaction(SIGCHLD, {SIG_DFL}, NULL, Cool = 0
time(NULL) = 1180014632
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=675, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=675, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=675, ...}) = 0
write(3, "2007-05-24T15:50:32+0200 vzctl :"..., 85) = 85
pipe([11, 12]) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb7d92928) = 2368
waitpid(2368, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0) = 2368
--- SIGCHLD (Child exited) @ 0 (0) ---
rt_sigaction(SIGCHLD, {SIG_DFL}, NULL, Cool = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
Process 2308 detached

The VE is brought up, works. b0rk b0rk. A real oops or is there an easy explaination?

[Updated on: Thu, 24 May 2007 13:55]

Report message to a moderator

Re: Segmentation fault. Bug? [message #13304 is a reply to message #13303] Thu, 24 May 2007 13:58 Go to previous messageGo to next message
rickb is currently offline  rickb
Messages: 368
Registered: October 2006
Senior Member
hi, did you use "-ff" when you ran strace?



-------------
Common Terms I post with: http://wiki.openvz.org/Category:Definitions

UBC. Learn it, love it, live it: http://wiki.openvz.org/Proc/user_beancounters
Re: Segmentation fault. Bug? [message #13363 is a reply to message #13303] Fri, 25 May 2007 09:23 Go to previous messageGo to next message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
Hello,

is there something in dmesg?

Thanks,
Vasily.
Re: Segmentation fault. Bug? [message #13370 is a reply to message #13363] Fri, 25 May 2007 10:19 Go to previous messageGo to next message
3molo is currently offline  3molo
Messages: 13
Registered: April 2007
Junior Member
Oh, yes. My bad.

VZ QUOTA: disk softlimit exceeded for id=110
VZ QUOTA: disk quota softlimit expired for id=110

Self-explanatory Smile.
Thanks
Re: Segmentation fault. Bug? [message #13374 is a reply to message #13370] Fri, 25 May 2007 10:54 Go to previous message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
Thank you for the answer, but actually it isn't "Self-explanatory" for me! Wink If there is no more space, all tools should handle this situation properly: without segmentation fault. Wink

So I want to know is some OpenVZ tool (vzquota, vzctl, ...) or some usual Linux tool guilty. Can you, please, strace the script with `-f` flag please?

Thank you,
Vasily.
Previous Topic: *SOLVED* 2.6.18 crash w/ kernel log :: oom-killer
Next Topic: *SOLVED* 2.6.20: read-only bind mounts
Goto Forum:
  


Current Time: Tue Sep 10 05:39:04 GMT 2024

Total time taken to generate the page: 0.05879 seconds