sh -c "/etc/system/sysinit" --> Signal 11, memo

Hi All,

I hope this is the proper group for this message.

I am running into a small problem while embedding QNX. My buildfile is listed below. When the last line of the bootscript is executed (the sh -c", if fails with a signal 11, it coredumps but doesn’t leave a .core file. The filesytem is already mounted and available. I don’t have a clue what is going wrong. Is there someone who has an answer to this problem?

TIA,
Freddy

–BUILDFILE–
[virtual=x86,bios +compress] .bootstrap = {
startup-bios
PATH=/proc/boot:/bin:/sbin:/usr/bin:/usr/sbin LD_LIBRARY_PATH=/proc/boot:/lib:/lib/dll:/usr/lib procnto
}

[+script] .script = {
procmgr_symlink …/…/proc/boot/libc.so.2 /usr/lib/ldqnx.so.2

Start up some consoles

devc-con -n4 &
reopen /dev/con1

Start serial port drivers

devc-ser8250 -b115200 -e -u1 3f8,4 &

Send console messages to the serial port

waitfor /dev/ser1 10
reopen /dev/ser1

Start the pci server

pci-bios &
waitfor /dev/pci 10

Start the EIDE driver.

devb-eide blk auto=partition,automount=hd0t77:/:qnx4 cam quiet dos exe=all &

Wait for a bin for the rest of the commands (up to 60 secs)

waitfor /dev/hd0 10

waitfor /etc/system/sysinit 10

sh -c /etc/system/sysinit &

}

Redirect console messages

[type=link] /dev/console=/dev/ser1

Cheat and make the /tmp point to the shared memory area…

[type=link] /tmp=/dev/shmem

Programs require the runtime linker (ldqnx.so) to be at a fixed location

[type=link] /usr/lib/ldqnx.so.2=/proc/boot/libc.so

[type=link] /bin/sh=/proc/boot/ksh

We use the “c” shared lib (which also contains the runtime linker)

libc.so

Include the disk files so we can access files on DiskOnChip

libcam.so
io-blk.so

QNX4 filesystem required shared libs

cam-disk.so
fs-qnx4.so

The files above this line can be shared by mutiple processes

[code=uip data=copy perms=+r,+x]

Include EIDE driver

devb-eide

pci-bios
uname
devc-ser8250
devc-con
ksh

you need to run dumper dude

Fixed the problem. It was a fubarred filesystem.

Freddy