segfault when splitting window

Bug #227263 reported by Wayne
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Terminator
Invalid
Critical
Unassigned
vte (Ubuntu)
Invalid
Medium
Ubuntu Desktop Bugs

Bug Description

upon open a terminator session, when i try to 'split' either vertical or horizontal, it will just close the window entirely.

Revision history for this message
chantra (chantra) wrote :

Hi Wayne,

Thanks for reporting this bug.

Can you start terminator from the command line and send us the output that is generated when splitting the terminal.
Also, what version of terminator are you running and on what distribution.
cheers

Changed in terminator:
status: New → Incomplete
Revision history for this message
Wayne (wlee618) wrote : Re: [Bug 227263] Re: window closed when try to 'split'
  • unnamed Edit (1.2 KiB, text/html; charset=ISO-8859-1)

all it says is 'segment fault' and the version is 0.8.1...
i did the sudo ./setup.py install to install...

On Tue, May 6, 2008 at 8:06 AM, chantra <email address hidden> wrote:

> Hi Wayne,
>
> Thanks for reporting this bug.
>
> Can you start terminator from the command line and send us the output that
> is generated when splitting the terminal.
> Also, what version of terminator are you running and on what distribution.
> cheers
>
> ** Changed in: terminator
> Status: New => Incomplete
>
> --
> window closed when try to 'split'
> https://bugs.launchpad.net/bugs/227263
> You received this bug notification because you are a direct subscriber
> of the bug.
>

--
-------------------------------------------
Wayne from Gmail

Revision history for this message
Chris Jones (cmsj) wrote : Re: window closed when try to 'split'

Wayne: could you provide a little more detail about the system you are running terminator on?
The segfault is python itself crashing, so if it is our fault we need to know why it's happening so we can work around it, but realistically something like python should never segfault.

Revision history for this message
Wayne (wlee618) wrote : Re: [Bug 227263] Re: window closed when try to 'split'
  • unnamed Edit (1.1 KiB, text/html; charset=ISO-8859-1)

hi Chris,
sorry, i am using ubuntu 8.04. please let me know what else i can do to let
you take a look or what recovery commands...

thanks

On Wed, May 7, 2008 at 8:35 AM, Chris Jones <email address hidden>
wrote:

> Wayne: could you provide a little more detail about the system you are
> running terminator on?
> The segfault is python itself crashing, so if it is our fault we need to
> know why it's happening so we can work around it, but realistically
> something like python should never segfault.
>
> --
> window closed when try to 'split'
> https://bugs.launchpad.net/bugs/227263
> You received this bug notification because you are a direct subscriber
> of the bug.
>

--
-------------------------------------------
Wayne from Gmail

Revision history for this message
Chris Jones (cmsj) wrote : Re: window closed when try to 'split'

Terminator is available in Ubuntu 8.04, so you should be able to install it from the "All available applications" section of Applications->Add/Remove...
However, I strongly suspect that doing it that way will stop it segfaulting. On one hand I'd like to get your issue sorted as quickly as possible, but I'd also like to know why it's segfaulting!

Revision history for this message
Wayne (wlee618) wrote : Re: [Bug 227263] Re: window closed when try to 'split'
  • unnamed Edit (1.3 KiB, text/html; charset=ISO-8859-1)

i have also installed the terminator by 'apt-get install terminator'..
shouldn't that be doing the same thing? i will go ahead and try that... i
doubt it will fix that issue..

On Wed, May 7, 2008 at 9:27 AM, Chris Jones <email address hidden>
wrote:

> Terminator is available in Ubuntu 8.04, so you should be able to install
> it from the "All available applications" section of
> Applications->Add/Remove...
> However, I strongly suspect that doing it that way will stop it
> segfaulting. On one hand I'd like to get your issue sorted as quickly as
> possible, but I'd also like to know why it's segfaulting!
>
> --
> window closed when try to 'split'
> https://bugs.launchpad.net/bugs/227263
> You received this bug notification because you are a direct subscriber
> of the bug.
>

--
-------------------------------------------
Wayne from Gmail

Revision history for this message
Chris Jones (cmsj) wrote : Re: window closed when try to 'split'

Is this still a problem? Did a package install fix it?

Revision history for this message
Wayne (wlee618) wrote : Re: [Bug 227263] Re: window closed when try to 'split'

Chris Jones wrote:
> Is this still a problem? Did a package install fix it?
>
>
nope.. still the same. nothing changed.

Revision history for this message
Chris Jones (cmsj) wrote : Re: window closed when try to 'split'

Wayne: In that case, could you download the current trunk and see if it still happens? (you can do this by installing the "bzr" package, running "bzr branch lp:terminator" and then running ./terminator from the "trunk" directory. I'm very curious to find out what is causing python to segfault!

Revision history for this message
Wayne (wlee618) wrote : Re: [Bug 227263] Re: window closed when try to 'split'

hi Chris,
if you meant to run the terminator fromthe use/bin/ dir, then i did. i got
bash: setenv: command not found
bash: setenv: command not found
when i did that "./terminator"
then i did the 'CTRL-Shift-E' i got..
(terminator:7274): Vte-WARNING **: No handler for control sequence
`device-control-string' defined.
Segmentation fault

hope that helps..

thanks
is that what you are looking for?

Chris Jones wrote:
> Wayne: In that case, could you download the current trunk and see if it
> still happens? (you can do this by installing the "bzr" package, running
> "bzr branch lp:terminator" and then running ./terminator from the
> "trunk" directory. I'm very curious to find out what is causing python
> to segfault!
>
>

Revision history for this message
Shang Wu (shangwu) wrote : Re: window closed when try to 'split'
Download full text (16.4 KiB)

hi Chris,

I download the trunk and ran the terminator form the terminator folder and here are the messages:

Using Linux pid_get_cwd
 VSGConf: Found profile 'Default' in profile_list
 VSConf: setting callback to: <bound method Terminator.reconfigure_vtes of <__main__.Terminator instance at 0x8362bac>>
TConfig: Looking for: 'handle_size' in 'RCFile'
Failed to find 'handle_size'
TConfig: Looking for: 'handle_size' in 'GConf'
 VSGConf: preparing: /apps/gnome-terminal/profiles/Default/handle_size
TConfig: Looking for: 'handle_size' in 'Default'
Returning 'handle_size'
 TConfig: got: '-1' from a 'Default'
TConfig: Looking for: 'fullscreen' in 'RCFile'
Failed to find 'fullscreen'
TConfig: Looking for: 'fullscreen' in 'GConf'
 VSGConf: preparing: /apps/gnome-terminal/profiles/Default/fullscreen
TConfig: Looking for: 'fullscreen' in 'Default'
Returning 'fullscreen'
 TConfig: got: 'False' from a 'Default'
TConfig: Looking for: 'maximise' in 'RCFile'
Failed to find 'maximise'
TConfig: Looking for: 'maximise' in 'GConf'
 VSGConf: preparing: /apps/gnome-terminal/profiles/Default/maximise
TConfig: Looking for: 'maximise' in 'Default'
Returning 'maximise'
 TConfig: got: 'False' from a 'Default'
TConfig: Looking for: 'borderless' in 'RCFile'
Failed to find 'borderless'
TConfig: Looking for: 'borderless' in 'GConf'
 VSGConf: preparing: /apps/gnome-terminal/profiles/Default/borderless
TConfig: Looking for: 'borderless' in 'Default'
Returning 'borderless'
 TConfig: got: 'False' from a 'Default'
TConfig: Looking for: 'scrollbar_position' in 'RCFile'
Failed to find 'scrollbar_position'
TConfig: Looking for: 'scrollbar_position' in 'GConf'
 VSGConf: preparing: /apps/gnome-terminal/profiles/Default/scrollbar_position
  GConf: picked function: get_str
 TConfig: got: 'right' from a 'GConf'
TConfig: Looking for: 'emulation' in 'RCFile'
Failed to find 'emulation'
TConfig: Looking for: 'emulation' in 'GConf'
 VSGConf: preparing: /apps/gnome-terminal/profiles/Default/emulation
TConfig: Looking for: 'emulation' in 'Default'
Returning 'emulation'
 TConfig: got: 'xterm' from a 'Default'
TConfig: Looking for: 'word_chars' in 'RCFile'
Failed to find 'word_chars'
TConfig: Looking for: 'word_chars' in 'GConf'
 VSGConf: preparing: /apps/gnome-terminal/profiles/Default/word_chars
  GConf: picked function: get_str
 TConfig: got: '-A-Za-z0-9,./?%&#:_' from a 'GConf'
TConfig: Looking for: 'mouse_autohide' in 'RCFile'
Failed to find 'mouse_autohide'
TConfig: Looking for: 'mouse_autohide' in 'GConf'
 VSGConf: preparing: /apps/gnome-terminal/profiles/Default/mouse_autohide
TConfig: Looking for: 'mouse_autohide' in 'Default'
Returning 'mouse_autohide'
 TConfig: got: 'True' from a 'Default'
TConfig: Looking for: 'backspace_binding' in 'RCFile'
Failed to find 'backspace_binding'
TConfig: Looking for: 'backspace_binding' in 'GConf'
 VSGConf: preparing: /apps/gnome-terminal/profiles/Default/backspace_binding
  GConf: picked function: get_str
 TConfig: got: 'ascii-del' from a 'GConf'
TConfig: Looking for: 'delete_binding' in 'RCFile'
Failed to find 'delete_binding'
TConfig: Looking for: 'delete_binding' in 'GConf'
 VSGConf: preparing: /apps/gnome-terminal/profiles/Default/delete_binding
  ...

Revision history for this message
Chris Jones (cmsj) wrote :

Thanks Shang. I've pushed a small change to trunk which may help here, but ultimately I think it would be really helpful if you could run terminator in gdb and when it segfaults, get a backtrace.

Revision history for this message
Shang Wu (shangwu) wrote :

This is the backtrace for the old program, will try the new trunk later.

Revision history for this message
Shang Wu (shangwu) wrote :

And the latest trunk failed as well, attach with the backtrace file.

Revision history for this message
Wayne (wlee618) wrote : Re: [Bug 227263] Re: window closed when try to 'split'
  • unnamed Edit (1000 bytes, text/html; charset=ISO-8859-1)

hi guys,

do i need to do anything with this?

thanks

On Thu, May 29, 2008 at 8:15 PM, Chris Jones <email address hidden>
wrote:

> Thanks Shang. I've pushed a small change to trunk which may help here,
> but ultimately I think it would be really helpful if you could run
> terminator in gdb and when it segfaults, get a backtrace.
>
> --
> window closed when try to 'split'
> https://bugs.launchpad.net/bugs/227263
> You received this bug notification because you are a direct subscriber
> of the bug.
>

--
-------------------------------------------
Wayne from Gmail

Revision history for this message
Chris Jones (cmsj) wrote :

Hi

Wayne wrote:
> do i need to do anything with this?

Not at the moment thanks, we're trying to get out some useful debugging
information.

Cheers,
--
Chris Jones

Chris Jones (cmsj)
Changed in terminator:
importance: Undecided → Critical
milestone: none → 0.9
Revision history for this message
Chris Jones (cmsj) wrote :

Shang: I'm not entirely sure it will help very much in the short term, but it would be useful if we could get a backtrace with enough -dbg packages to resolve all the library symbols

Revision history for this message
Shang Wu (shangwu) wrote :

Chris,

I used the valgrind to generated the debug information against the latest trunk, I hope it has enough information to troubleshoot the issue.

Revision history for this message
Shang Wu (shangwu) wrote :

Also, here is the strace file, if it helps any. Please let me know if anything else would help.

Revision history for this message
Shang Wu (shangwu) wrote :

Here is the dpkg -l | grep lib list.

Revision history for this message
Chris Jones (cmsj) wrote :

Thanks Shang. I have added some more debugging to trunk to try and figure out exactly what is triggering this - could you grab the latest trunk and test again? (either just the output of Terminator or another strace is fine)

Revision history for this message
Shang Wu (shangwu) wrote :
Download full text (16.8 KiB)

Hi Chris,

I have tested with the latest trunk, here is the output:

Using Linux pid_get_cwd
 VSGConf: Found profile 'Default' in profile_list
 VSConf: setting callback to: <bound method Terminator.reconfigure_vtes of <__main__.Terminator instance at 0x83f58ac>>
Terminator__init__: comparing None and Default
TConfig: Looking for: 'f11_modifier' in 'RCFile'
Failed to find 'f11_modifier'
TConfig: Looking for: 'f11_modifier' in 'GConf'
 VSGConf: preparing: /apps/gnome-terminal/profiles/Default/f11_modifier
TConfig: Looking for: 'f11_modifier' in 'Default'
Returning 'f11_modifier'
 TConfig: got: 'False' from a 'Default'
TConfig: Looking for: 'handle_size' in 'RCFile'
Failed to find 'handle_size'
TConfig: Looking for: 'handle_size' in 'GConf'
 VSGConf: preparing: /apps/gnome-terminal/profiles/Default/handle_size
TConfig: Looking for: 'handle_size' in 'Default'
Returning 'handle_size'
 TConfig: got: '-1' from a 'Default'
TConfig: Looking for: 'fullscreen' in 'RCFile'
Failed to find 'fullscreen'
TConfig: Looking for: 'fullscreen' in 'GConf'
 VSGConf: preparing: /apps/gnome-terminal/profiles/Default/fullscreen
TConfig: Looking for: 'fullscreen' in 'Default'
Returning 'fullscreen'
 TConfig: got: 'False' from a 'Default'
TConfig: Looking for: 'maximise' in 'RCFile'
Failed to find 'maximise'
TConfig: Looking for: 'maximise' in 'GConf'
 VSGConf: preparing: /apps/gnome-terminal/profiles/Default/maximise
TConfig: Looking for: 'maximise' in 'Default'
Returning 'maximise'
 TConfig: got: 'False' from a 'Default'
TConfig: Looking for: 'borderless' in 'RCFile'
Failed to find 'borderless'
TConfig: Looking for: 'borderless' in 'GConf'
 VSGConf: preparing: /apps/gnome-terminal/profiles/Default/borderless
TConfig: Looking for: 'borderless' in 'Default'
Returning 'borderless'
 TConfig: got: 'False' from a 'Default'
TConfig: Looking for: 'scrollbar_position' in 'RCFile'
Failed to find 'scrollbar_position'
TConfig: Looking for: 'scrollbar_position' in 'GConf'
 VSGConf: preparing: /apps/gnome-terminal/profiles/Default/scrollbar_position
  GConf: picked function: get_str
 TConfig: got: 'right' from a 'GConf'
TConfig: Looking for: 'emulation' in 'RCFile'
Failed to find 'emulation'
TConfig: Looking for: 'emulation' in 'GConf'
 VSGConf: preparing: /apps/gnome-terminal/profiles/Default/emulation
TConfig: Looking for: 'emulation' in 'Default'
Returning 'emulation'
 TConfig: got: 'xterm' from a 'Default'
TConfig: Looking for: 'word_chars' in 'RCFile'
Failed to find 'word_chars'
TConfig: Looking for: 'word_chars' in 'GConf'
 VSGConf: preparing: /apps/gnome-terminal/profiles/Default/word_chars
  GConf: picked function: get_str
 TConfig: got: '-A-Za-z0-9,./?%&#:_' from a 'GConf'
TConfig: Looking for: 'mouse_autohide' in 'RCFile'
Failed to find 'mouse_autohide'
TConfig: Looking for: 'mouse_autohide' in 'GConf'
 VSGConf: preparing: /apps/gnome-terminal/profiles/Default/mouse_autohide
TConfig: Looking for: 'mouse_autohide' in 'Default'
Returning 'mouse_autohide'
 TConfig: got: 'True' from a 'Default'
TConfig: Looking for: 'backspace_binding' in 'RCFile'
Failed to find 'backspace_binding'
TConfig: Looking for: 'backspace_binding' in 'GConf'
 VSGConf: preparing: /apps/gnome-terminal/...

Revision history for this message
Shang Wu (shangwu) wrote :
Revision history for this message
Shang Wu (shangwu) wrote :
Changed in terminator:
status: Incomplete → Confirmed
Revision history for this message
Shang Wu (shangwu) wrote :
Revision history for this message
Chris Jones (cmsj) wrote :

Thanks very much Shang. We now have enough debugging to know exactly which pygtk call is causing the segfault. It's in TerminatorTerm.add() near the beginning:

      widget.reparent (pane)

Revision history for this message
chantra (chantra) wrote : Re: [Bug 227263] Re: segfault when splitting window

Hi shang,

I slightly modified this bit of code, can you try out the latest trunk.

Does it fixes your issue?

cheers

On Fri, 2008-06-13 at 10:56 +0000, Chris Jones wrote:

> Thanks very much Shang. We now have enough debugging to know exactly
> which pygtk call is causing the segfault. It's in TerminatorTerm.add()
> near the beginning:
>
> widget.reparent (pane)
>

--
http://www.debuntu.org

Debuntu deb's repository

Revision history for this message
Shang Wu (shangwu) wrote :

That's a no.

Revision history for this message
Chris Jones (cmsj) wrote :

Shang, I just pushed the debugging back in, could you pull and try again. I want to be sure it's dying in the same place.

Revision history for this message
Shang Wu (shangwu) wrote :
Revision history for this message
chantra (chantra) wrote :

Shang, can you try the following script.
Click on the button
does it segfault?

cheers

Revision history for this message
chantra (chantra) wrote :

shang,

I also found that: http://osdir.com/ml/gnome.gtk+.python/2005-02/msg00161.html
It is all, but I wonder if this could be related.
Could you also check that python code: http://osdir.com/ml/gnome.gtk+.python/2005-02/txtFmI4zT7YHr.txt
does it segfault? it did not on my lappy
cheers

Revision history for this message
chantra (chantra) wrote :

Shang,

yet again, what does happen if you first open a new tab (ctrl-shift-t)
and then split?

does it fail when opening a new tab, or when splitting? or not at all :)

cheers

--
http://www.debuntu.org

Debuntu deb's repository

Revision history for this message
Chris Jones (cmsj) wrote :

I'm going to mark this bug as Invalid for terminator because I think it's a bug in vte. Even if we are doing something wrong, this shouldn't segfault in a C library. Added vte as an affected distribution package

Changed in terminator:
status: Confirmed → Invalid
importance: Critical → Undecided
Revision history for this message
Wayne (wlee618) wrote :

So u r saying all users with ubuntu 8.04
 Has this problem?
Sent from my cell phone

I'm going to mark this bug as Invalid for terminator because I think
it's a bug in vte. Even if we are doing something wrong, this shouldn't
segfault in a C library. Added vte as an affected distribution package

** Also affects: vte (Ubuntu)
   Importance: Undecided
       Status: New

** Changed in: terminator
       Status: Confirmed => Invalid

** Changed in: terminator
   Importance: Critical => Undecided

--
segfault when splitting window
https://bugs.launchpad.net/bugs/227263
You received this bug notification because you are a direct subscriber
of the bug.

Revision history for this message
Chris Jones (cmsj) wrote :

Wayne: No, this isn't affecting all Ubuntu 8.04 users - I run Terminator on two 8.04 machines. one was a fresh install, one was an upgrade. Shang is able to reproduce it on 8.04 machines, but I can't, so there is some deeper mystery here, but I'm pretty sure it's not Terminator's fault, and unfortunately I don't think we can work around it from Terminator.

Revision history for this message
Wayne (wlee618) wrote :
  • unnamed Edit (1.2 KiB, text/html; charset=ISO-8859-1)

is there any work around? you are not telling me to 'too bad, you are
screwed' are you?

thanks

On Tue, Jun 17, 2008 at 5:17 AM, Chris Jones <email address hidden>
wrote:

> Wayne: No, this isn't affecting all Ubuntu 8.04 users - I run Terminator
> on two 8.04 machines. one was a fresh install, one was an upgrade. Shang
> is able to reproduce it on 8.04 machines, but I can't, so there is some
> deeper mystery here, but I'm pretty sure it's not Terminator's fault,
> and unfortunately I don't think we can work around it from Terminator.
>
> --
> segfault when splitting window
> https://bugs.launchpad.net/bugs/227263
> You received this bug notification because you are a direct subscriber
> of the bug.
>

--
-------------------------------------------
Wayne from Gmail

Revision history for this message
Chris Jones (cmsj) wrote :

Wayne: we tried a workaround, but it didn't make any difference, we seem to be hitting a lower level bug, so for the moment I'm afraid there's not very much we can do. I'm trying to get hold of the relevant people in the GNOME project to figure out what's going on because this is possibly fixed upstream already. I'm very sorry and I do feel bad about not being able to fix this bug. It's especially frustrating that I can't even reproduce it.

Revision history for this message
Chris Jones (cmsj) wrote :

I decided that while the bug isn't ours, I'm still going to leave this as a Confirmed, Critical bug for us, at least partly so it stays on my radar.

Changed in terminator:
importance: Undecided → Critical
status: Invalid → Confirmed
Revision history for this message
Wayne (wlee618) wrote :
  • unnamed Edit (1.1 KiB, text/html; charset=ISO-8859-1)

thank you! there was a reason i like open source software.. :)

On Wed, Jun 18, 2008 at 5:27 AM, Chris Jones <email address hidden>
wrote:

> I decided that while the bug isn't ours, I'm still going to leave this
> as a Confirmed, Critical bug for us, at least partly so it stays on my
> radar.
>
> ** Changed in: terminator
> Importance: Undecided => Critical
> Status: Invalid => Confirmed
>
> --
> segfault when splitting window
> https://bugs.launchpad.net/bugs/227263
> You received this bug notification because you are a direct subscriber
> of the bug.
>

--
-------------------------------------------
Wayne from Gmail

Chris Jones (cmsj)
Changed in terminator:
milestone: 0.9 → none
Revision history for this message
Pedro Villavicencio (pedro) wrote :

It would be good if someone having the issue could send this to the upstream maintainers at bugzilla.gnome.org for forwarding intructions please have a look to https://wiki.ubuntu.com/Bugs/Upstream/GNOME ; thanks in advance.

Changed in vte:
assignee: nobody → desktop-bugs
importance: Undecided → Medium
Revision history for this message
Chris Jones (cmsj) wrote :

Is anyone still able to reproduce this? Shang has indicated that after upgrading to Intrepid (and thus terminator 0.11) he is able to split the window now.

Changed in terminator:
status: Confirmed → Incomplete
Revision history for this message
Chris Jones (cmsj) wrote :

On further investigation with Shang it seems to relate to combinations of encoding and titlebar setting.

Shang: could you elaborate on exactly which combinations do and do not crash, please?

Revision history for this message
Shang Wu (shangwu) wrote :

In 8.10, I was able to reproduce the issue by:

1. Open the terminal
2. Check if the Show title is enabled by right click on the window. If it is, right click to open a split window.
3. Disable show title on both window, and close the window.
4. And when I try to run terminal again, try the split window, I get the segmentation fault.

It seems it require to have the show title set, in order to split the window.

Revision history for this message
Chris Jones (cmsj) wrote :

I have a theory which might help with this. Would you be able to grab the latest trunk (bzr branch lp:terminator) and apply the attached patch please?

Revision history for this message
Shang Wu (shangwu) wrote :

Hi Chris,

Sorry for the delay, however, since I upgraded to 9.04, the issue doesn't seem to occured anymore...

Thanks for your help,

Revision history for this message
Chris Jones (cmsj) wrote :

I'm going to mark this bug Invalid. Someone please re-open it if you can still reproduce this.

Changed in terminator:
status: Incomplete → Invalid
Changed in vte (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.