test program



Hi

I am not sure is it right place to send this e-mail. please correct me if it is
not.


I am compiling glib-1.2.7 on HPUX 10.20.

As you may know, There is no "thread" header file or libraries on HPUX version
10.20 (there are on HPUX version 11.00), because of that I am using "GNU's 
pthread" (pth-1.3.3).


The program compiles ok, but it fails when i run the "testgthread" in "gthread"
directory.

Below is the result of "testgthread" and the backtrace of gdb.

Any help is appreciated.

		__Mehdi

 This is the result:

Mehdi<584> ./testgthread
allocating data for the thread 4001db70.
allocating data for the thread 4002dd70.
allocating data for the thread 4003df70.
allocating data for the thread 4004e170.
allocating data for the thread 4005e370.
allocating data for the thread 4006e570.
allocating data for the thread 4007e770.
allocating data for the thread 4008e970.
allocating data for the thread 4009eb70.
freeing data for the thread 4001db70.
freeing data for the thread 4002dd70.
freeing data for the thread 4003df70.
freeing data for the thread 4004e170.
freeing data for the thread 4005e370.
freeing data for the thread 4006e570.
freeing data for the thread 4007e770.
freeing data for the thread 4008e970.
freeing data for the thread 4009eb70.

TestGLib v1.2.7 (i:7 b:7)
cwd: /tmp_mnt/home/demo/workexp/lavasani/glib-1.2.7/gthread
Memory fault(coredump)
/users/workexp/lavasani/glib-1.2.7/gthread  
Mehdi<585> 





  Result of gdb:

(gdb) r
Starting program: /tmp_mnt/home/demo/workexp/lavasani/glib-1.2.7/gthread/.libs/./testgthread 
warning: Unable to find __d_pid symbol in object file.
warning: Suggest linking with /usr/lib/end.o.
warning: GDB will be unable to track shl_load/shl_unload calls

Program received signal SIGUSR1, User defined signal 1.
0x7affc298 in sigsuspend ()
(gdb) bt
#0  0x7affc298 in sigsuspend ()
#1  0x7ae8be84 in g_int_hash ()
#2  0x7ae8f25c in g_int_hash ()
#3  0x7ae8e938 in g_int_hash ()
#4  0x7ae88294 in g_int_hash ()
#5  0x7ae9a3a4 in g_private_new_posix_impl (
    destructor=0x7b03ac40 <setlocale_r+118528>) at gthread-posix.c:151
#6  0x7ae68208 in g_mutex_init () at gmutex.c:87
#7  0x7ae9a6e0 in g_thread_init (init=0x4000d490) at gthread.c:102
#8  0xa84c in main () at testgthread.c:209
(gdb) 
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]