Hi all,
A client of mine using the xt5250 and tn5250 applications compiled from
source (version 0.15.6) has encountered a reproduceable crash with core
dump. From their informal observation, it appears that the problem
occurs when they are three "screens" deep (you know, those little AS400
ASCII "windows"). Here is the message that appears when tn5250 is run
out of a terminal:
Assertion tn5250_attribute (attr) failed at wtd.c, line 329. A
borted (core dumped)
Sure enough, that part of the code looks to be an assertion:
298 /****i* lib5250/tn5250_wtd_context_write_field
299 * NAME
300 * tn5250_wtd_context_write_field
301 * SYNOPSIS
302 * tn5250_wtd_context_write_field (This, field, attr);
303 * INPUTS
304 * Tn5250WTDContext * This -
305 * Tn5250Field * field -
306 * unsigned char attr -
307 * DESCRIPTION
308 * Write the SF order and the field's information.
309 *****/
310 static void tn5250_wtd_context_write_field (Tn5250WTDContext
*This, Tn5250Field *field, unsigned char attr)
311 {
312 TN5250_LOG (("Writing SF order in stream data.\n"));
313
314 tn5250_wtd_context_putc (This, SF);
315
316 /* Put the field format word. */
317 if (field->FFW != 0) {
318 tn5250_wtd_context_putc (This, (unsigned char)(field->FFW
>> 8));
319 tn5250_wtd_context_putc (This, (unsigned char)(field->FFW
& 0x00ff));
320
321 /* Put the field control word(s). */
322 if (field->FCW != 0) {
323 tn5250_wtd_context_putc (This, (unsigned
char)(field->FCW >> 8));
324 tn5250_wtd_context_putc (This, (unsigned
char)(field->FCW & 0x00ff));
325 }
326 }
327
328 /* Put the screen attribute. */
*-> 329 TN5250_ASSERT (tn5250_attribute (attr));
330 tn5250_wtd_context_putc (This, attr);
331
332 /* Put the field length. */
333 tn5250_wtd_context_putc (This, (unsigned char)(field->length
>> 8));
334 tn5250_wtd_context_putc (This, (unsigned char)(field->length
& 0x00ff));
335 }
Anyone have any ideas what might be causing this error? Has this
already been found and solved (new to the list)? How difficult would
this be to debug?
Jason
--
__________________________________ __________________________
/ Jason Bechtel \/ Phone: (419) 861-3331 \
/ Unique Systems, Inc. \ FAX: (419) 861-3340 \
) 6920 Spring Valley Drive, Ste. 106 ( (
\ Holland, OH 43528 / mailto:[EMAIL PROTECTED] /
\__________________________________/\__________________________/
+---
| This is the LINUX5250 Mailing List!
| To submit a new message, send your mail to [EMAIL PROTECTED]
| To subscribe to this list send email to [EMAIL PROTECTED]
| To unsubscribe from this list send email to [EMAIL PROTECTED]
| Questions should be directed to the list owner/operator: [EMAIL PROTECTED]
+---