This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TDA4VM: TDA4VM

Part Number: TDA4VM

Hi,

When I send a command for Symlinks(see below), I could see Infinite loops due to Semaphore.

J7EVM@QNX:/#find / -type l
find: Can't get stat. (/etc/ssh/ssh_known_hosts): No such file or directory
/usr/lib/libpam.so
/usr/lib/pam_ftpusers.so
/usr/lib/pam_rootok.so
/usr/lib/pam_qnx.so
/usr/lib/ldqnx-64.so.2
/usr/tmp
/var/etc/ssh
/var/lock
/var/run
/var/log
/tmp
/bin/sh
find: Cannot recurse into '/dev/sem' - filesystem forms an infinite loop.

This highlighted infinite loop is present with base BSP. Is it possible to remove this error..?

Could you please clarify me about this error..?

Thanks and Regards,

Jeeva M

  • Hi Jeeva,

    Please follow up with the QNX / Blackberry team on this query, and the behavior of the 'find' utility.

    Note there may be other options you can consider, where below may get you the information you need, along with some errors.

    ls -lR | grep '>'

    Regards,

    kb

  • Hi,

    Ok we will follow up with QNX team for this issue.

    Looking at the /dev/sem which has link count as 0. Is this expected? please clarify.

    J7EVM@QNX:/dev#ll
    total 549856954340
    crw-rw----   1 root      root         0,   1 Jan 01 22:40 bpf
    crw-rw----   1 root      root         0,   1 Jan 01 22:40 bpf0
    c-w--w--w-   1 root      root         0,   1 Jan 01 00:09 console
    brw-------   1 root      root         5,   0 Jan 01 00:00 emmc0
    brw-------   1 root      root         1,  10 Jan 01 00:00 emmc0t12
    brw-------   1 root      root         1,  11 Jan 01 00:00 emmc0t131
    brw-------   1 root      root         1,  12 Jan 01 00:00 emmc0t131.1
    brw-------   1 root      root         8,   0 Jan 01 00:00 hd0
    crw-rw----   1 root      root         0,   1 Jan 01 00:09 i2c0
    crw-rw----   1 root      root         0,   1 Jan 01 00:09 i2c1
    -rw-------   1 root      root      281474976710655 Jan 01 22:40 mem
    drwxrwxrwt   2 root      root              0 Jan 01 04:08 mq
    drwxrwxrwt   1 root      root              0 Jan 01 00:09 mqueue
    crw-rw-rw-   1 root      root         1,   0 Jan 01 22:40 null
    nrw-rw-rw-   1 root      root              1 Jan 01 04:17 pipe
    nrw-rw-rw-   1 root      root              0 Jan 01 00:22 profiler
    crw-rw-rw-   1 root      root         4, 512 Jan 01 22:40 ptyp0
    crw-rw-rw-   1 root      root         4, 513 Jan 01 07:17 ptyp1
    crw-rw-rw-   1 root      root         4, 514 Jan 01 04:17 ptyp2
    crw-rw-rw-   1 root      root         4, 515 Jan 01 00:09 ptyp3
    crw-rw-rw-   1 root      root         4, 516 Jan 01 00:09 ptyp4
    crw-rw-rw-   1 root      root         4, 517 Jan 01 00:09 ptyp5
    crw-rw-rw-   1 root      root         4, 518 Jan 01 00:09 ptyp6
    crw-rw-rw-   1 root      root         4, 519 Jan 01 00:09 ptyp7
    crw-rw-rw-   1 root      root         4, 520 Jan 01 00:09 ptyp8
    crw-rw-rw-   1 root      root         4, 521 Jan 01 00:09 ptyp9
    crw-rw-rw-   1 root      root         4, 522 Jan 01 00:09 ptypa
    crw-rw-rw-   1 root      root         4, 523 Jan 01 00:09 ptypb
    crw-rw-rw-   1 root      root         4, 524 Jan 01 00:09 ptypc
    crw-rw-rw-   1 root      root         4, 525 Jan 01 00:09 ptypd
    crw-rw-rw-   1 root      root         4, 526 Jan 01 00:09 ptype
    crw-rw-rw-   1 root      root         4, 527 Jan 01 00:09 ptypf
    brw-------   1 root      root         7,   0 Jan 01 00:00 ram0
    crw-rw-r--   1 root      root         0,   1 --- -- --:-- random
    brw-------   1 root      root         6,   0 Jan 01 00:00 sd0
    brw-------   1 root      root         1,  13 Jan 01 00:00 sd0t12
    brw-------   1 root      root         1,  14 Jan 01 00:00 sd0t131
    brw-------   1 root      root         1,  15 Jan 01 00:09 sd0t131.1
    drwxrwxrwx   0 root      root              6 Jan 01  1970 sem
    crw-rw-rw-   1 root      root         3,   1 Jan 01 00:09 ser1
    drwxrwxrwt   2 root      root              0 Jan 01 22:40 shmem
    nrwxrwxrwx   1 root      root              0 Jan 01 00:09 shmemallocator
    c-w--w--w-   1 root      root         0,   1 Jan 01 00:00 slog

  • Hi,

    QNX documentation links on semaphores are below. 

    Recommend creating a sample program, which makes use of a semaphore and check behavior of the "/dev/sem" directory.   The sem_open link has some information on expectation of the /dev/sem directory.

    Regards,

    kb

  • Hi,

    Thank you for your support. QNX has confirmed that is find utility issue with 7.1 release. So I will follow up with QNX for the same. I think we can close this issue as of now.

    Best Regards,

    Udhay.

  • Thank you, Udhay for the update.  Closing ticket.

    Regards,

    kb