Skip to contentSkip to conversation

segmentation fault

DISCUSSION sai srinivas dharanikota 4 participants 8 messages Nov 19, 2004 – Nov 22, 2004

lore
Share & tools
lore
#0 lore raw

Hello,

I am trying to run a povray application on Domain 1. The execution breaks and outputs the error "segmentation fault".When I try to execute the same application on Domain 0 every thing works fine but I dont understand why the application is not executing on Domain 1. Any body has pointers to this problem.

Thanking you,
Sai

=====
Sai Srinivas Dharanikota
Master of Science INFOTECH
University of Stuttgart
Germany

Home:+49 711 9963590
Mobile:+49 179 9090669

__________________________________
Do you Yahoo!?
Meet the all-new My Yahoo! - Try it today!
http://my.yahoo.com

-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object and relational technologies, making it a perfect match for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8

#1 lore raw
Quoted 6 lines

I am trying to run a povray application on Domain 1. The execution breaks and outputs the error "segmentation fault".When I try to execute the same application on Domain 0 every thing works fine but I dont understand why the application is not executing on Domain 1. Any body has pointers to this problem.

are you using the same versions of libraries like glibc on dom0 and dom1?

j.

-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object and relational technologies, making it a perfect match for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8

#2 lore raw

Hello,

Quoted 3 lines

are you using the same versions of libraries like
glibc on dom0 and dom1?

I am using the same versions of libraries on dom0 and dom1.

Thanking you,
sai

=====
Sai Srinivas Dharanikota
Master of Science INFOTECH
University of Stuttgart
Germany

Home:+49 711 9963590
Mobile:+49 179 9090669

__________________________________
Do you Yahoo!?
The all-new My Yahoo! - Get yours free!
http://my.yahoo.com

-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object and relational technologies, making it a perfect match for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8

#3 lore raw
Quoted 9 lines

Hello,

Quoted 3 lines

are you using the same versions of libraries like
glibc on dom0 and dom1?

I am using the same versions of libraries on dom0 and dom1.

Have you got the same amount of memory and swap space configured in both domains?

Ian

-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object and relational technologies, making it a perfect match for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8

#4 lore raw
Quoted 9 lines · --- Ian Pratt
Quoted 4 lines

Hello,

Quoted 1 line

are you using the same versions of libraries

like

Quoted 4 lines
Quoted 2 lines

glibc on dom0 and dom1?

I am using the same versions of libraries on dom0

Quoted 9 lines

and

Quoted 1 line

dom1.

Have you got the same amount of memory and swap
space configured
in both domains?

Ian

I am alloting 256MB of memory for both the domains.

when I see the statistics using top command for domain 0:
Tasks: 41 total, 1 running, 40 sleeping, 0
stopped, 0 zombie
Cpu(s): 0.0% us, 0.0% sy, 0.0% ni, 100.0% id, 0.0% wa, 0.0% hi, 0.0% si
Mem: 257040k total, 252628k used, 4412k free,
63880k buffers
Swap: 3071992k total, 0k used, 3071992k free,
32384k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM
TIME+ COMMAND

46 root 15 0 0 0 0 S 0.0 0.0
0:00.01 kjournald

631 root 16 0 1676 752 1496 S 0.0 0.3
0:00.01 syslogd

635 root 16 0 1404 428 1244 S 0.0 0.2
0:00.00 klogd

656 rpc 16 0 1540 604 1372 S 0.0 0.2
0:01.15 portmap

676 rpcuser 17 0 1680 832 1504 S 0.0 0.3
0:00.00 rpc.statd

724 root 15 0 0 0 0 S 0.0 0.0
0:00.00 rpciod

726 root 16 0 0 0 0 S 0.0 0.0
0:00.00 lockd

748 root 16 0 20188 956 3608 S 0.0 0.4
0:00.00 ypbind

I took a loopback device loop2 and configured the swap space. I am using "swapon -a" command to enable swapping after domain 1 is booted. I still see some amount of memory left during the execution of the application.

The statistics for domain 0 using top command.

top - 09:57:03 up 2 days, 17:57, 2 users, load
average: 0.00, 0.00, 0.00
Tasks: 64 total, 2 running, 62 sleeping, 0
stopped, 0 zombie
Cpu(s): 0.3% us, 0.0% sy, 0.0% ni, 99.7% id, 0.0% wa, 0.0% hi, 0.0% si
Mem: 255468k total, 252680k used, 2788k free,
30732k buffers
Swap: 2040244k total, 0k used, 2040244k free,
75672k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM
TIME+ COMMAND

    1 root      16   0  1472  480 1316 S  0.0  0.2  
0:05.84 init               
    2 root      34  19     0    0    0 S  0.0  0.0  
0:00.02 ksoftirqd/0        
    3 root       5 -10     0    0    0 S  0.0  0.0  
0:00.01 events/0           
    4 root      12 -10     0    0    0 S  0.0  0.0  
0:00.00 khelper            
    5 root       5 -10     0    0    0 S  0.0  0.0  

0:03.05 kblockd/0
31 root 15 0 0 0 0 S 0.0 0.0
0:00.00 pdflush
32 root 15 0 0 0 0 S 0.0 0.0
0:00.03 pdflush
34 root 15 -10 0 0 0 S 0.0 0.0
0:00.00 aio/0
33 root 16 0 0 0 0 S 0.0 0.0
0:01.46 kswapd0
260 root 15 0 0 0 0 S 0.0 0.0
0:00.34 xenblkd
268 root 6 -10 0 0 0 S 0.0 0.0
0:00.00 ata/0
271 root 16 0 0 0 0 S 0.0 0.0
0:00.00 kseriod
276 root 6 -10 0 0 0 S 0.0 0.0
0:00.00 kmirrord/0
278 root 15 0 0 0 0 S 0.0 0.0
0:00.10 kjournald
964 root 15 0 0 0 0 S 0.0 0.0
0:00.00 kjournald
1378 root 16 0 1460 612 1296 S 0.0 0.2
0:00.00 syslogd
1382 root 15 0 1404 428 1244 S 0.0 0.2
0:00.01 klogd
1403 rpc 16 0 1540 612 1372 S 0.0 0.2
0:01.89 portmap

Thanking you,
Sai

=====
Sai Srinivas Dharanikota
Master of Science INFOTECH
University of Stuttgart
Germany

Home:+49 711 9963590
Mobile:+49 179 9090669

__________________________________
Do you Yahoo!?
The all-new My Yahoo! - Get yours free!
http://my.yahoo.com

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/

#5 lore raw
In reply to sai srinivas dharanikota

Which version of Xen and XenLinux are you using? Did you build it yourself or download a binary tarball? Sending us the output of Xen botoing would be useful (either grab from serial line, or use 'xm dmesg' in domain 0). The banner text that is printed when Xen starts is particularly useful as it tells us what precise of verison of Xen you are running.

-- Keir

Quoted 31 lines

Hello,

I am trying to run a povray application on Domain 1. The execution breaks and outputs the error "segmentation fault".When I try to execute the same application on Domain 0 every thing works fine but I dont understand why the application is not executing on Domain 1. Any body has pointers to this problem.

Thanking you,
Sai

=====
Sai Srinivas Dharanikota
Master of Science INFOTECH
University of Stuttgart
Germany

Home:+49 711 9963590
Mobile:+49 179 9090669

__________________________________
Do you Yahoo!?
Meet the all-new My Yahoo! - Try it today!
http://my.yahoo.com

Quoted 9 lines

-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object and relational technologies, making it a perfect match for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xen-devel

-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object and relational technologies, making it a perfect match for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8

#6 lore raw
Quoted 3 lines · --- Keir Fraser

Which version of Xen and XenLinux are you using? Did you build it

I am using xen 2.0 beta version.

Quoted 1 line

yourself or download a binary tarball?

I took the sources and built.

Quoted 9 lines

Sending us
the output of Xen
botoing would be useful (either grab from serial
line, or use
'xm dmesg' in domain 0). The banner text that is
printed when Xen
starts is particularly useful as it tells us what
precise of verison
of Xen you are running.

__ __ ____ ___ _ _

\ \/ /___ _ __ |___ \ / _ \ | |__ ___| |_ __ _

\ // _ \ '_ \ __) || | | |__| '_ \ / _ \ __/ _`
|
/ \ __/ | | | / __/ | |_| |__| |_) | __/ || (_|
|
/_/\_\___|_| |_| |_____(_)___/ |_.__/
\___|\__\__,_|

http://www.cl.cam.ac.uk/netos/xen
University of Cambridge Computer Laboratory

Xen version 2.0-beta (root@localdomain) (gcc version
3.3.3 20040412 (Red Hat Linux 3.3.3-7)) Fri Oct 29 16:12:03 CEST 2004

(XEN) Initialised 1023MB memory (262000 pages) on a 1023MB machine
(XEN) Xen heap size is 10780KB
(XEN) CPU0: Before vendor init, caps: bfebfbff 00000000 00000000, vendor = 0
(XEN) CPU caps: afebfbff 00000000 00000000 00000000 (XEN) found SMP MP-table at 000f64e0
(XEN) Memory Reservation 0xf64e0, 4096 bytes (XEN) Memory Reservation 0x9fd70, 4096 bytes (XEN) Intel MultiProcessor Specification v1.4
(XEN) Virtual Wire compatibility mode.
(XEN) OEM ID: IBM Product ID: THINKCEN APIC at:
0xFEE00000
(XEN) Processor #0 Pentium 4(tm) XEON(tm) APIC version 20
(XEN) I/O APIC #1 Version 32 at 0xFEC00000. (XEN) Enabling APIC mode: Flat. Using 1 I/O APICs (XEN) Processors: 1
(XEN) Using scheduler: Borrowed Virtual Time (bvt) (XEN) Initializing CPU#0
(XEN) Detected 2992.539 MHz processor.
(XEN) CPU0: Before vendor init, caps: bfebfbff 00000000 00000000, vendor = 0
(XEN) CPU caps: afebfbff 00000000 00000000 00000000 (XEN) CPU0 booted
(XEN) enabled ExtINT on CPU#0
(XEN) ESR value before enabling vector: 00000000 (XEN) ESR value after enabling vector: 00000000 (XEN) Error: only one processor found.
(XEN) ENABLING IO-APIC IRQs
(XEN) Setting 1 in the phys_id_present_map (XEN) ...changing IO-APIC physical APIC ID to 1 ... ok.
(XEN) init IO_APIC IRQs
(XEN) ..TIMER: vector=0x41 pin1=-1 pin2=0 (XEN) ...trying to set up timer (IRQ0) through the 8259A ...
(XEN) ..... (found pin 0) ...works.
(XEN) Using local APIC timer interrupts. (XEN) Calibrating APIC timer for CPU0... (XEN) ..... CPU speed is 2992.5755 MHz.
(XEN) ..... Bus speed is 199.5049 MHz.
(XEN) ..... bus_scale = 0x0000CC4F
(XEN) Time init:
(XEN) .... System Time: 12313308ns

(XEN) .... cpu_freq:    00000000:B25E8820
(XEN) .... scale:       00000001:562F2C30
(XEN) .... Wall Clock:  1100879971s 150000us

(XEN) Testing NMI watchdog --- CPU#0 okay.
(XEN) PCI: PCI BIOS revision 2.10 entry at 0xfd98d,
last bus=3
(XEN) PCI: Using configuration type 1
(XEN) PCI: Probing PCI hardware
(XEN) PCI: Probing PCI hardware (bus 00)
(XEN) PCI: Ignoring BAR0-3 of IDE controller 00:1f.1
(XEN) Transparent bridge - PCI device 8086:244e
(XEN) PCI: Using IRQ router PIIX/ICH [8086/24d0] at
00:1f.0
(XEN) PCI->APIC IRQ transform: (B0,I29,P0) -> 16
(XEN) PCI->APIC IRQ transform: (B0,I29,P1) -> 19
(XEN) PCI->APIC IRQ transform: (B0,I29,P2) -> 18
(XEN) PCI->APIC IRQ transform: (B0,I29,P0) -> 16
(XEN) PCI->APIC IRQ transform: (B0,I29,P3) -> 23
(XEN) PCI->APIC IRQ transform: (B0,I31,P0) -> 16
(XEN) PCI->APIC IRQ transform: (B0,I31,P1) -> 17
(XEN) PCI->APIC IRQ transform: (B0,I31,P1) -> 17
(XEN) PCI->APIC IRQ transform: (B1,I0,P0) -> 16
(XEN) PCI->APIC IRQ transform: (B3,I11,P0) -> 16
(XEN) *** LOADING DOMAIN 0 ***
(XEN) Xen-ELF header found:
'GUEST_OS=linux,GUEST_VER=2.6,XEN_VER=2.0,VIRT_BASE=0xC0000000,LOADER=generic,PT_MODE_WRITABLE' (XEN) PHYSICAL MEMORY ARRANGEMENT:

(XEN)  Kernel image:  02800000->02bbdf08
(XEN)  Initrd image:  00000000->00000000
(XEN)  Dom0 alloc.:   02c00000->12c00000
(XEN) VIRTUAL MEMORY ARRANGEMENT:
(XEN)  Loaded kernel: c0100000->c04eeb44
(XEN)  Init. ramdisk: c04ef000->c04ef000
(XEN)  Phys-Mach map: c04ef000->c052f000
(XEN)  Page tables:   c052f000->c0532000
(XEN)  Start info:    c0532000->c0533000
(XEN)  Boot stack:    c0533000->c0534000
(XEN)  TOTAL:         c0000000->c0800000
(XEN)  ENTRY ADDRESS: c0100000

(XEN) *** Serial input -> DOM0 (type 'CTRL-a' three times to switch input to Xen).

Thanking you
Sai

=====
Sai Srinivas Dharanikota
Master of Science INFOTECH
University of Stuttgart
Germany

Home:+49 711 9963590
Mobile:+49 179 9090669

__________________________________
Do you Yahoo!?
The all-new My Yahoo! - Get yours free!
http://my.yahoo.com

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/

#7 lore raw
Quoted 10 lines
Quoted 3 lines · --- Keir Fraser

Which version of Xen and XenLinux are you using? Did you build it

I am using xen 2.0 beta version.

Quoted 1 line

yourself or download a binary tarball?

I took the sources and built.

Please can you upgrade to the latest stable version (2.0.1) -- there's been a number of bug fixes since the beta.

Ian

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/