Hi,

when developing I try to load code changes into a remote GST instance and if I
think the change is good I would like to create a new image. I am using the
above code to force a snapshot. What happens is that gst-remote is terminating.

I have attached the output of the gst-remove --server when it terminates. So I
assume that one of the 'changed:' calls makes the FileDescr close all open
files. From what I see this should only happen with #aboutToQuit. I am not not
sure where this is coming from (i created the b in invoke_hook_smalltalk).

Is this a 'known feature'?



Breakpoint 3, invoke_hook_smalltalk (hook=GST_ABOUT_TO_SNAPSHOT) at comp.c:453
453       if (!_gst_kernel_initialized)
(gdb)
Continuing.

Breakpoint 3, invoke_hook_smalltalk (hook=GST_FINISHED_SNAPSHOT) at comp.c:453
453       if (!_gst_kernel_initialized)
(gdb) c
Continuing.

Breakpoint 3, invoke_hook_smalltalk (hook=GST_AFTER_EVAL) at comp.c:453
453       if (!_gst_kernel_initialized)
(gdb) c
Continuing.

Breakpoint 3, invoke_hook_smalltalk (hook=GST_ABOUT_TO_QUIT) at comp.c:453
453       if (!_gst_kernel_initialized)
(gdb) bt
#0  invoke_hook_smalltalk (hook=GST_ABOUT_TO_QUIT) at comp.c:453
#1  0x0014717c in _gst_invoke_hook (hook=GST_ABOUT_TO_QUIT) at comp.c:496
#2  0x0013682d in gst_invoke_hook (hook=GST_ABOUT_TO_QUIT) at gstpub.c:138
#3  0x08049880 in main (argc=2, argv=0xbffff934) at gst-tool.c:549
bject: File error: Bad file descriptor
SystemExceptions.FileError(Exception)>>pass (ExcHandling.st:385)
optimized [] in UndefinedObject>>executeStatements 
(../../../install/gst/share/smalltalk/scripts/Remote.st:244)
SystemExceptions.FileError(Exception)>>activateHandler: (ExcHandling.st:516)
SystemExceptions.FileError(Exception)>>signal (ExcHandling.st:254)
SystemExceptions.FileError class(Exception class)>>signal: (ExcHandling.st:161)
File class>>checkError: (File.st:84)
optimized [] in Sockets.AbstractSocketImpl>>ensureReadable 
(Sockets.star#VFS.ZipFile/AbstractSocketImpl.st:442)
BlockClosure>>ensure: (BlkClosure.st:269)
optimized [] in Sockets.AbstractSocketImpl>>ensureReadable 
(Sockets.star#VFS.ZipFile/AbstractSocketImpl.st:428)
Sockets.TCPSocketImpl(Sockets.AbstractSocketImpl)>>fileOp:with:ifFail: 
(Sockets.star#VFS.ZipFile/AbstractSocketImpl.st:151)
Sockets.TCPSocketImpl(Sockets.AbstractSocketImpl)>>ensureReadable 
(Sockets.star#VFS.ZipFile/AbstractSocketImpl.st:441)
Sockets.ServerSocket>>waitForConnection 
(Sockets.star#VFS.ZipFile/Sockets.st:980)
optimized [] in UndefinedObject>>executeStatements 
(../../../install/gst/share/smalltalk/scripts/Remote.st:214)
BlockClosure>>repeat (BlkClosure.st:318)
optimized [] in UndefinedObject>>executeStatements 
(../../../install/gst/share/smalltalk/scripts/Remote.st:203)
BlockClosure>>on:do: (BlkClosure.st:193)
optimized [] in UndefinedObject>>executeStatements 
(../../../install/gst/share/smalltalk/scripts/Remote.st:239)
[] in Process>>onBlock:at:suspend: (Process.st:411)
BlockClosure>>on:do: (BlkClosure.st:193)
[] in Process>>onBlock:at:suspend: (Process.st:412)
BlockClosure>>ensure: (BlkClosure.st:269)
[] in Process>>onBlock:at:suspend: (Process.st:390)
[] in BlockClosure>>asContext: (BlkClosure.st:179)
BlockContext class>>fromClosure:parent: (BlkContext.st:68)

_______________________________________________
help-smalltalk mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-smalltalk

Reply via email to