Project Home
Project Home
Source Code
Source Code
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - QNXSP1 and glib2 problem: (4 Items)
   
QNXSP1 and glib2 problem  
Under SP1 appeared serious problems with the library glib2.
Each programme, which is using glib2 shall be suspended.
As far as i found a problem with inducing g _ new0 (Memory Allocation ) which causes the suspension of the programme.
Maybe someone knows the solution to this problem?
Re: QNXSP1 and glib2 problem  
I haven't heard of or run into this.  I also don't
really understand your description.  Can you elaborate?

Regards,

-seanb

On Fri, Jul 06, 2012 at 04:29:53AM -0400, bogdan celer wrote:
> Under SP1 appeared serious problems with the library glib2.
> Each programme, which is using glib2 shall be suspended.
> As far as i found a problem with inducing g _ new0 (Memory Allocation ) which causes the suspension of the programme.
> Maybe someone knows the solution to this problem?
> 
> 
> 
> 
> _______________________________________________
> 
> PkgInfo
> http://community.qnx.com/sf/go/post94113
> To cancel your subscription to this discussion, please e-mail pkginfo-pkgsrc-unsubscribe@community.qnx.com
Re: QNXSP1 and glib2 problem  
Sean excuse me, I know my English isn't too good. 
In QNX I use mc.  I compile and I test the Gnome software.
# mc --version
GNU Midnight Commander 4.6.2-pre1
Virtual File System: tarfs, extfs, cpiofs, ftpfs, fish
With builtin Editor
Using included S-Lang library with terminfo database
With subshell support as default
With support for background operations
With mouse support on xterm
With internationalization support
Data types: char 8 int 32 long 32 void * 32 off_t 64 ecs_char 8
# ldd mc
./mc:
        libintl.so.8 => /usr/pkg/lib/libintl.so.8.1.1 (0xb8200000)
        libiconv.so.7 => /usr/local/lib/libiconv.so.7.5.0 (0xb8211000)
        libc.so.3 => /usr/lib/ldqnx.so.2 (0xb0300000)
        libglib-2.0.so.0 => /usr/pkg/lib/libglib-2.0.so.0.3000.2 (0xb82f1000)
        librpc.so.2 => /usr/lib/librpc.so.2 (0xb83d4000)
        libsocket.so.2 => /lib/libsocket.so.2 (0xb83ec000)
        libiconv.so.2 => /usr/pkg/lib/libiconv.so.2.5.1 (0xb841b000)
        libpcre.so.0 => /usr/pkg/lib/libpcre.so.0.0.1 (0xb8500000)
        libnbutil.so.1 => /usr/lib/libnbutil.so.1 (0xb853f000)
        libsocket.so.3 => /lib/libsocket.so.3 (0xb8547000)
# 
And I don't have such problems which turned up at the moment of SP1 installing. 
1.Before the SP1 installation.
mc working wery well and  I don't have problems with the compilation and testing the Gnome software  
Tests from /src/HEAD_650/pkgsrc/devel/glib-2.30.2/work/glib-2.30.2/glib/tests/.libs
working
2. After the SP1 installation 
mc not working:
# mc
     pid tid name               STATE        start time  thread start sutime
 3776561   1 usr/bin/mc         RUNNING     Jul 07 23:22 Jul 07 23:22 13.881
#
And mc still is in the STATE RUNNING and nothing appears on the screen.

# cd /src/HEAD_650/pkgsrc/devel/glib-2.30.2/work/glib-2.30.2/glib/tests/.libs
# ls
.                          keyfile                    lt-unix                    sequence
..                         list                       lt-unix-nothreads          shell
........ 
testing                  ....date     ....string 
................................
# ./testing
     pid tid name               STATE        start time  thread start sutime
 2388019   1 ./testing          RUNNING     Jul 07 23:11 Jul 07 23:11 38.664
STATE RUNNING all time
# ldd testing
./testing:
        libglib-2.0.so.0 => /usr/pkg/lib/libglib-2.0.so.0.3000.2 (0xb8200000)
        libpcre.so.0 => /usr/pkg/lib/libpcre.so.0.0.1 (0xb82e3000)
        libintl.so.8 => /usr/pkg/lib/libintl.so.8.1.1 (0xb8322000)
        libiconv.so.2 => /usr/pkg/lib/libiconv.so.2.5.1 (0xb8333000)
        libc.so.3 => /usr/lib/ldqnx.so.2 (0xb0300000)
        libnbutil.so.1 => /usr/lib/libnbutil.so.1 (0xb8418000)
        libsocket.so.3 => /lib/libsocket.so.3 (0xb8420000)
#
# ./date
     pid tid name               STATE        start time  thread start sutime
 3051569   1 ./date             RUNNING     Jul 07 23:13 Jul 07 23:13 41.900
STATE RUNNING all time
#
# ./string
      pid tid name               STATE        start time  thread start sutime
 3190833   1 ./string           RUNNING     Jul 07 23:14 Jul 07 23:14 74.769
STATE RUNNING all time
# 
And so on with other tests
For the test I compiled mc from pkgsrc mc64 with -g and with gdb I found, that mc entered the STATE RUNNIG at using  
g_new0().   
But now I am not sure whether the problem isn't in other place. 
At present I decided: 
1. install new QNX 6.5.0 
2. install QNXSP1 
3. compile the Gnome software and needed other libraries 
4. make a tests
 
Re: QNXSP1 and glib2 problem  
I. I installed QNX 6.5.0 anew from qnxsdp-6.5.0-201007091524.
# uname -a
QNX localhost 6.5.0 2010/07/09-14:44:03EDT x86pc x86
#
And I installed only mc4.6.2-pre1.  It is this version which I use from QNX 6.4.1 to QNX 6.5.0. 

# cd /usr/bin
# ldd mc
./mc:
        libintl.so.8 => /usr/local/lib/libintl.so.8.0.2 (0xb8200000)
        libiconv.so.7 => /usr/local/lib/libiconv.so.7.5.0 (0xb820f000)
        libc.so.3 => /usr/lib/ldqnx.so.2 (0xb0300000)
        libglib-2.0.so.2000 => /usr/local/lib/libglib-2.0.so.0 (0xb82ef000)
        librpc.so.2 => /usr/lib/librpc.so.2 (0xb83c2000)
        libsocket.so.2 => /lib/libsocket.so.2 (0xb83da000)
        libiconv.so.7 => /usr/local/lib/libiconv.so.7.5.0 (0xb8409000)
        libsocket.so.3 => /lib/libsocket.so.3 (0xb84e9000)
# mc --version
GNU Midnight Commander 4.6.2-pre1
Virtual File System: tarfs, extfs, cpiofs, ftpfs, fish
With builtin Editor
Using included S-Lang library with terminfo database
With subshell support as default
With support for background operations
With mouse support on xterm
With internationalization support
Data types: char 8 int 32 long 32 void * 32 off_t 64 ecs_char 8
#
# ls -l /usr/local/lib
total 6579
drwxrwxr-x  2 root      root           1024 May 01  2009 .
drwxrwxr-x  4 root      root           1024 Jul 09 17:42 ..
-rwxr-xr-x  1 root      root        2020328 Mar 22  2009 libglib-2.0.so.0
lrwxrwxrwx  1 root      root             17 Jul 09 17:38 libiconv.so -> libiconv.so.7.5.0
lrwxrwxrwx  1 root      root             17 Jul 09 17:38 libiconv.so.2 -> libiconv.so.7.5.0
lrwxrwxrwx  1 root      root             17 Jul 09 17:38 libiconv.so.6 -> libiconv.so.7.5.0
lrwxrwxrwx  1 root      root             17 Jul 09 17:38 libiconv.so.7 -> libiconv.so.7.5.0
-rwxr-xr-x  1 root      root        1170324 Apr 30  2009 libiconv.so.7.5.0
lrwxrwxrwx  1 root      root             16 Jul 09 17:38 libintl.so -> libintl.so.8.0.2
lrwxrwxrwx  1 root      root             16 Jul 09 17:38 libintl.so.8 -> libintl.so.8.0.2
-rwxr-xr-x  1 root      root         172375 Apr 30  2009 libintl.so.8.0.2
#
# cd /usr/local/bin
# cat Pidin
#!/bin/sh
clear
echo -------------------------------------------------------------
echo                              Start
echo -------------------------------------------------------------
echo
while true; do
pidin -p $1 -fmbIJlpK
sleep 1
#clear
done
# Pidin mc
-------------------------------------------------------------
Start
-------------------------------------------------------------
       stack tid pid-tid     STATE       cpu prio kernel call
  28K(516K)*   1   528430-01 SIGWAITINFO   2  10r signal_waitinfo
       stack tid pid-tid     STATE       cpu prio kernel call
  28K(516K)*   1   528430-01 SIGWAITINFO   2  10r signal_waitinfo
       stack tid pid-tid     STATE       cpu prio kernel call
#
# cat Pidin1
#!/bin/sh
echo -------------------------------------------------------------
echo                              Start
echo -------------------------------------------------------------
echo
#clear
while true; do
pidin -p $1 -fmbIJlpKR times
sleep 1
#clear
done
#
# Pidin1 mc
-------------------------------------------------------------
Start
-------------------------------------------------------------
     pid name                   sid  start time   utime  stime cutime cstime
  528430 usr/bin/mc          528429 Jul 09 22:01  0.171  0.018  0.031  0.000
     pid name                   sid  start time   utime  stime cutime cstime
  528430 usr/bin/mc          528429 Jul 09 22:01  0.171  0.018  0.031  0.000
#
# cat Pidin2
#!/bin/sh
clear
echo -------------------------------------------------------------
echo                              Start
echo -------------------------------------------------------------
echo
while true; do
pidin -p $1 -fmbIJlpK ttimes
sleep 1
#clear
done
# Pidin2...
View Full Message