Message: Problems with G4UItcsh and Control-D Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Problems with G4UItcsh and Control-D 

Keywords: G4UItcsh Control-D EOT
Forum: (Graphical) User Interfaces
Date: 07 Dec, 2005
From: Adrian Vogel <adrian.vogel@desy.de>

Hello,

I'm using G4UItcsh and I see a strange problem: When I type Control-D (the end-of-text character in ASCII) at the Idle> prompt of my self-made application, the program exits as expected, but afterwards the behaviour of my shell is messed up – I don’t get an echo any more as I type. Only after calling the Unix command reset everything is okay again.

Moreover, when I hit Control-D in Mokka (the detector simulation for the ILC), I get nothing but a segmentation fault. The debugger says that this originates from:

#11 0x08097179 in main (argc=1, argv=0xbfffdc74) at Mokka.cc:171
#10 0x08368ecd in G4UIterminal::SessionStart ()
#9  0x08369712 in G4UIterminal::GetCommand ()
#8  0x08367f97 in G4UItcsh::GetCommandLine ()
#7  0x08367f2e in G4UItcsh::ReadLine ()
#6  0x407e4b0f in exit () from /lib/libc.so.6
#5  0x08ae0753 in __tcf_0 ()
#4  0x08add1c5 in G4LossTableManager::~G4LossTableManager ()
#3  0x08350ad4 in G4eIonisation::~G4eIonisation ()
#2  0x40764283 in operator delete (ptr=0x9464cd4) at /usr/src/packages/BUILD/gcc-3.3.3/libstdc++-v3/libsupc++/del_op.cc:39
#1  0x4082fa5f in free () from /lib/libc.so.6
#0  0x40830d68 in _int_free () from /lib/libc.so.6

I don’t think you can do a major mistake when instantiating a G4UIsession and calling G4UIsession::SessionStart(), so I suppose that Mokka is not to blame for the crash – at least not directly.

Has anybody else seen things like in the first and/or second case? What could be going wrong, and what can be done against it? I'm currently using Geant 4.7.1.p01 (but the same has occurred with earlier versions, too), gcc 3.2.3 20030502 (Red Hat Linux 3.2.3-14) (again, the same has also happened with another version of gcc), and bash 2.05b.0(1)-release (the problem with the missing echo does not occur in [t]csh, zsh, or ksh).

Cheers,
Adrian

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 Note: Re: Problems with G4UItcsh and Control-D   (Adrian Vogel - 09 Dec, 2005)
3 More: Re: Problems with G4UItcsh and Control-D   (Adrian Vogel - 04 Dec, 2007)
 Add Message Add Message
to: "Problems with G4UItcsh and Control-D"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]