Hi,

Thanks for your response once agian. I did the same. I am getting a 
segmentation fault.

Here the output on the gdb xterm
Program received signal SIGSEGV, Segmentation fault.
0x0 in ?? ()
(gdb) bt
#0  0x0 in ?? ()
#1  0xefb4b070 in _resetsig ()
#2  0xefb4a934 in _sigon ()
#3  0xefb4620c in _ti_cond_timedwait ()
#4  0xefa17f9c in condvarTimedWait ()
#5  0xefa15ddc in sysMonitorWait ()
#6  0xefa02534 in monitorWait ()
#7  0xefa0a930 in threadSleep ()
#8  0xef9de7bc in Java_java_lang_Thread_sleep_stub ()
#9  0xef9dc69c in invokeNativeMethod ()
#10 0xefa19ed8 in notJavaInvocation ()
#11 0xef9ee3ec in do_execute_java_method_vararg ()
#12 0xef9eda90 in execute_java_dynamic_method ()
#13 0xefa09f1c in ThreadRT0 ()
#14 0xefa164dc in _start ()


Some more information I have to give you.
1. this problem does not occur when I run tclblend1.2.5 and tcl8.0 on a 
solaris 2.5.1 machine with jdk1.1.8

2. This problem does not occur when I run tclblend1.2.5 and tcl8.0 on a 
solaris 2.6 machine with jdk1.1.8

but when I use tcl8.0.5 on solaris 2.6 I am getting this error (I did not 
try with tcl8.0.5 and solaris 2.5.1)

I appreciate your help
thanks
Suvarna


>From: Moses DeJong <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: [Tcl Java] Re: [Tcl Java] tclblend -segmentation fault
>Date: Tue, 23 Nov 1999 18:37:32 -0600 (CST)
>
>On Tue, 23 Nov 1999, Suvarna Ayyagari wrote:
>
> > I do the following operations in jtclsh. The phonetest is one of our
> > applications which we have written.
> >
> >
> > set res [java::new phonetest.ResManager]
>
>This is really just a style issue, but you can use String instead
>of java.lang.String. That might make you code a little shorter.
>All classes in the java.lang package are imported automatically
>and you can import new classes with the java::import command.
>
> > set object1 [java::new java.lang.String "phonetest.phone.gsm.GSMPhone"]
> > set interface1 [java::new java.lang.String "EMMI"]
> > set socket1 [java::new java.lang.String "socket 136.182.32.237 7020"]
> > set config [java::new java.util.Properties]
> > $config put $interface1 $socket1
> > set phone [$res createPTFObject 1 $object1 $config]
> > set phone [java::cast phonetest.phone.gsm.GSMPhone $phone]
> > $phone open $config
> >
> > Uptill this point, everything works fine
> >
> > It is on this line that I get the crash
> > $phone close
>
>The JVM is using SIGUSER1 here to send signals between
>threads. This is not a crash. You should set gdb to
>ignore this signal and just deliver it to the application.
>
>You can query the signals settings using the "info signals"
>command in gdb.
>
>You should be able to set gdb to send SIGUSR1 to the
>program with the following command.
>
>handle SIGHUP pass noprint nostop
>
>Try that and see if you get a crash.
>
>Mo DeJong
>
> > At this point in the gdb window, I get the following
> > Program received signal SIGUSR1, User defined signal 1.
> > 0xefb534d4 in __sigprocmask ()
>
>----------------------------------------------------------------
>The TclJava mailing list is sponsored by Scriptics Corporation.
>To subscribe:    send mail to [EMAIL PROTECTED]
>                  with the word SUBSCRIBE as the subject.
>To unsubscribe:  send mail to [EMAIL PROTECTED]
>                  with the word UNSUBSCRIBE as the subject.
>To send to the list, send email to '[EMAIL PROTECTED]'.
>

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com

----------------------------------------------------------------
The TclJava mailing list is sponsored by Scriptics Corporation.
To subscribe:    send mail to [EMAIL PROTECTED]  
                 with the word SUBSCRIBE as the subject.
To unsubscribe:  send mail to [EMAIL PROTECTED] 
                 with the word UNSUBSCRIBE as the subject.
To send to the list, send email to '[EMAIL PROTECTED]'. 

Reply via email to