Brian | 8 May 2009 20:53
Picon

Re: TN5250 Crash After Paste (Vista)

Hey Scott.  I am still having this issue in Vista.  Is there anything I 
can do to provide more info?  I did see a logging option.  Once I copy 
something 'bad', I can replicate the issue over and over.  So, maybe 
once it happens again I could activate logging and capture some info?

Thanks much.

Scott Klement wrote:
> Hi Brian,
> 
> Are you using the current version of TN5250?  (The one we released a 
> month or so ago?)
> 
> I know I fixed some similar issues in that release.
> 
> I know of an outstanding bug in the copy to clipboard (if you select 
> text outside the normal 80x24 or 132x27 screen, it'll try to copy the 
> text, and crash) but I don't know of any outstanding issues with paste...
> 
> I'm running XP, and don't currently have access to a Vista box.  If 
> updating to the current version doesn't help, can you tell me how to 
> reproduce the problem on XP?  (Or something I can try to reproduce the 
> problem?)  Without being able to reproduce it, I don't even know how to 
> begin to debug it...
> 
> 
> Brian wrote:
>> Hello all.
>>
>> I seem to be experiencing some odd issue in TN5250 that happens when I 
(Continue reading)

James Rich | 8 May 2009 23:53

Re: TN5250 Crash After Paste (Vista)

On Fri, 8 May 2009, Scott Klement wrote:

> By all means, try that...  enable the trace function and see if you can
> replicate it.  It *might* help, though I don't know that there's
> sufficient info in the trace file to help me debug a problem like this.
>
> However, I don't have access to a Vista machine.  So even if I think I
> find the solution, I'm not sure how I could tell that my solution worked.

I have access to windows vista on my laptop and if you hold a gun to my 
head I'd be willing to boot it instead of my normal linux (though it does 
play a cool recording of a Ferrari Formula 1 car screaming by when you 
turn it on).  What I don't have is compilers or any dev tools on it.  If I 
can be helpful in tracking this down given those limitations I'd be happy 
to help.

James Rich

if you want to understand why that is, there are many good books on
the design of operating systems. please pass them along to redmond
when you're done reading them :)
 	- Paul Davis on ardour-dev
--

-- 
This is the Linux 5250 Development Project (LINUX5250) mailing list
To post a message email: LINUX5250@...
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/linux5250
or email: LINUX5250-request@...
Before posting, please take a moment to review the archives
at http://archive.midrange.com/linux5250.
(Continue reading)

Porterfield, Sean | 17 May 2009 19:56

x5250 seg fault

I could have sworn I used to copy/paste all the time with no problems.  Today I tried to paste into x5250 and got
segmentation fault (repeatedly).  I then ran it with strace, but the output doesn't mean anything to me. 
I'm on Fedora 9, tn5250 0.17.4, x5250 version:  0.5.2-pre4

read(4, "\4\2\3\36\370\347\213\t}\0\0\0\2\0\240\4\0\0\0\0=\0X\1:\0(\1\0\0\1\0", 4096) = 32
read(4, 0x8a7a19c, 4096)                = -1 EAGAIN (Resource temporarily unavailable)
select(5, [4], [4], NULL, NULL)         = 1 (out [4])
writev(4, [{"\20\0\5\0\v\0\240\4PASTED_TEXT\0", 20}], 1) = 20
select(5, [4], [], NULL, NULL)          = 1 (in [4])
read(4, "\1\0\4\36\0\0\0\0\337\1\0\0\0\0\0\0\24\0\0\0\0\0\0\0\250B\30\t\0\0\0\0", 4096) = 32
read(4, 0x8a7a19c, 4096)                = -1 EAGAIN (Resource temporarily unavailable)
select(5, [4], [4], NULL, NULL)         = 1 (out [4])
writev(4, [{"\30\0\6\0\2\0\240\4\1\0\0\0\37\0\0\0\337\1\0\0\370\347\213\t", 24}], 1) = 24
read(4, 0x8a7a19c, 4096)                = -1 EAGAIN (Resource temporarily unavailable)
read(4, 0x8a7a19c, 4096)                = -1 EAGAIN (Resource temporarily unavailable)
select(5, [3 4], NULL, NULL, NULL)      = 1 (in [4])
read(4, "\237\0\5\36\370\347\213\t\2\0\240\4\1\0\0\0\37\0\0\0\340\1\0\0\0\0\0\0\0\0\0\0",
4096) = 32
read(4, 0x8a7a19c, 4096)                = -1 EAGAIN (Resource temporarily unavailable)
select(5, [4], [4], NULL, NULL)         = 1 (out [4])
writev(4, [{"\24\1\6\0\2\0\240\4\340\1\0\0\0\0\0\0\0\0\0\0\0\4\0\0", 24}], 1) = 24
select(5, [4], [], NULL, NULL)          = 1 (in [4])
read(4, "\1\0\6\36\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0c!\10\230\331\205\277\211\22\25\10",
4096) = 32
read(4, 0x8a7a19c, 4096)                = -1 EAGAIN (Resource temporarily unavailable)
--- SIGSEGV (Segmentation fault)  <at>  0 (0) ---
+++ killed by SIGSEGV +++

--
Sean Porterfield
(Continue reading)

James Rich | 18 May 2009 21:34

Re: x5250 seg fault

On Sun, 17 May 2009, Porterfield, Sean wrote:

> I could have sworn I used to copy/paste all the time with no problems. 
> Today I tried to paste into x5250 and got segmentation fault 
> (repeatedly).  I then ran it with strace, but the output doesn't mean 
> anything to me.  I'm on Fedora 9, tn5250 0.17.4, x5250 version: 
> 0.5.2-pre4

I use copy/paste all day long without problems on the same versions.  It 
would be useful if you could tell me what you are copying from.  From 
x5250?  From xterm?  Something else?  The most likely explanation that I 
can think of off the top of my head is that the source of the copy has 
some kind of data that x5250 isn't handling well.  I would really like to 
reproduce your problem here.

James Rich

if you want to understand why that is, there are many good books on
the design of operating systems. please pass them along to redmond
when you're done reading them :)
 	- Paul Davis on ardour-dev
--

-- 
This is the Linux 5250 Development Project (LINUX5250) mailing list
To post a message email: LINUX5250@...
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/linux5250
or email: LINUX5250-request@...
Before posting, please take a moment to review the archives
at http://archive.midrange.com/linux5250.

(Continue reading)

Brian | 18 May 2009 23:06
Picon

Re: x5250 seg fault

James Rich wrote:
> On Sun, 17 May 2009, Porterfield, Sean wrote:
> 
>> I could have sworn I used to copy/paste all the time with no problems. 
>> Today I tried to paste into x5250 and got segmentation fault 
>> (repeatedly).  I then ran it with strace, but the output doesn't mean 
>> anything to me.  I'm on Fedora 9, tn5250 0.17.4, x5250 version: 
>> 0.5.2-pre4
> 
> I use copy/paste all day long without problems on the same versions.  It 
> would be useful if you could tell me what you are copying from.  From 
> x5250?  From xterm?  Something else?  The most likely explanation that I 
> can think of off the top of my head is that the source of the copy has 
> some kind of data that x5250 isn't handling well.  I would really like to 
> reproduce your problem here.
> 
> James Rich
> 
> if you want to understand why that is, there are many good books on
> the design of operating systems. please pass them along to redmond
> when you're done reading them :)
>  	- Paul Davis on ardour-dev

 From memory I would say that 99.9% of the time (and maybe all of the 
time), my crashes are a result of copying from a non-5250 app (could be 
anything) and pasting in to tn5250.  It can happen coming from Word, 
Excel, Firefox, Notepad, etc.

I can't recall it happening from one 5250 session from another though, 
although it could have and I just to not recall.
(Continue reading)

James Rich | 18 May 2009 23:19

Re: x5250 seg fault

On Mon, 18 May 2009, Brian wrote:

> From memory I would say that 99.9% of the time (and maybe all of the
> time), my crashes are a result of copying from a non-5250 app (could be
> anything) and pasting in to tn5250.  It can happen coming from Word,
> Excel, Firefox, Notepad, etc.
>
> I can't recall it happening from one 5250 session from another though,
> although it could have and I just to not recall.

I followed your posts about crashes with copy/paste but I thought those 
were with the Windows version (and I'm guessing I'm correct since you 
mention Word and Excel).  If this problem also affects x5250 (which runs 
on linux/*nix/*BSD) then that would be significant as it would indicate 
that the problem lies in the library code and not the front end code.

James Rich

if you want to understand why that is, there are many good books on
the design of operating systems. please pass them along to redmond
when you're done reading them :)
 	- Paul Davis on ardour-dev
--

-- 
This is the Linux 5250 Development Project (LINUX5250) mailing list
To post a message email: LINUX5250@...
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/linux5250
or email: LINUX5250-request@...
Before posting, please take a moment to review the archives
at http://archive.midrange.com/linux5250.
(Continue reading)

Porterfield, Sean | 19 May 2009 14:47

Re: x5250 seg fault

> From: James Rich

On Sun, 17 May 2009, Porterfield, Sean wrote:

> > I could have sworn I used to copy/paste all the time with no problems.
> > Today I tried to paste into x5250 and got segmentation fault
> > (repeatedly).  I then ran it with strace, but the output doesn't mean
> > anything to me.  I'm on Fedora 9, tn5250 0.17.4, x5250 version:
> > 0.5.2-pre4

I > use copy/paste all day long without problems on the same versions.
> It would be useful if you could tell me what you are copying from.
> From x5250?  From xterm?  Something else?  The most likely explanation
> that I can think of off the top of my head is that the source of the
> copy has some kind of data that x5250 isn't handling well.
> I would really like to reproduce your problem here.

I think it was plain text from gvim.  I was trying to paste an SQL statement in to avoid retyping it.

I first tried copying the whole thing, multiple lines.  When it crashed on paste, I went with just one line
thinking it might be confused on the range of paste.  Even one line caused the crash.  I don't remember if I
counted characters to make sure it would fit, though.  I know the STRSQL screen doesn't have 80 characters
for typing on each line.
--
Sean Porterfield

This email is confidential, intended only for the named recipient(s) above and may contain information
that is privileged.  If you have received this message in error or are not the named recipient(s), please
notify the sender immediately and delete this email message from your computer as any and all
unauthorized distribution or use of this message is strictly prohibited.  Thank you.
(Continue reading)

James Rich | 19 May 2009 21:23

Re: x5250 seg fault

On Tue, 19 May 2009, Porterfield, Sean wrote:

> I think it was plain text from gvim.  I was trying to paste an SQL 
> statement in to avoid retyping it.
>
> I first tried copying the whole thing, multiple lines.  When it crashed 
> on paste, I went with just one line thinking it might be confused on the 
> range of paste.  Even one line caused the crash.  I don't remember if I 
> counted characters to make sure it would fit, though.  I know the STRSQL 
> screen doesn't have 80 characters for typing on each line.

Are you able to reproduce the crash?  I've tried STRSQL and pasting the 
text "Qualifying is one of the biggest challenges of the year here and it 
is so important to get" in multiple different positions on the screen.  No 
crashes.

James Rich

if you want to understand why that is, there are many good books on
the design of operating systems. please pass them along to redmond
when you're done reading them :)
 	- Paul Davis on ardour-dev
--

-- 
This is the Linux 5250 Development Project (LINUX5250) mailing list
To post a message email: LINUX5250@...
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/linux5250
or email: LINUX5250-request@...
Before posting, please take a moment to review the archives
at http://archive.midrange.com/linux5250.
(Continue reading)

Porterfield, Sean | 19 May 2009 22:20

Re: x5250 seg fault

> From: James Rich

> Are you able to reproduce the crash?  I've tried STRSQL and pasting the text
> "Qualifying is one of the biggest challenges of the year here and it is so important to get"
> in multiple different positions on the screen.  No crashes.

I'll try it again when I get home and have a real OS running ;)
--
Sean Porterfield

This email is confidential, intended only for the named recipient(s) above and may contain information
that is privileged.  If you have received this message in error or are not the named recipient(s), please
notify the sender immediately and delete this email message from your computer as any and all
unauthorized distribution or use of this message is strictly prohibited.  Thank you.
--

-- 
This is the Linux 5250 Development Project (LINUX5250) mailing list
To post a message email: LINUX5250@...
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/linux5250
or email: LINUX5250-request@...
Before posting, please take a moment to review the archives
at http://archive.midrange.com/linux5250.


Gmane