Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2001-10-13
03:14 • Closed ticket [221967ffff]: Using -errorcommand in tclxml causes core dump p... artifact: bda1c72aa2 user: hobbs
2001-09-08
05:56 • Ticket [221967ffff]: 4 changes artifact: 9cdfbdf9be user: andreas_kupries
2001-01-09
22:10 • Ticket [221967ffff]: 5 changes artifact: 20a685aeef user: dkf
2000-11-08
23:07 • Ticket [221967ffff]: 4 changes artifact: 89679dcffb user: lduperval
23:02 • Ticket [221967ffff]: 5 changes artifact: a72c6c81c9 user: dkf
14:50 • New ticket [221967ffff]. artifact: 638d758997 user: lduperval

Using -errorcommand in tclxml causes core dump

Closed / Invalid221967ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 25 years ago
Descriptionplain2000-11-08 14:50:34
- Compile CVS tclxml with tcl 8.4a2

run the following script:

package require xml
xml::parser -errorcommand foo

Result:

Tcl_AppendStringsToObj called with shared object
Abort (core dumped)

This is on Linux 2.2
dkfplain2000-11-08 23:02:37
This is serious (anything that core-dumps is serious) but probably not a Tcl bug.  More likely a tclxml bug.  Report it to the maintainers of that package...
ldupervalplain2000-11-08 23:07:03
That's what I did (see my posting on clt Nov 7 and Steve Ball's response on Nov 8) and the maintainer told me to post a bug report. He says it's a Tcl problem. You guys will have to duke it out amongst yourselves. :-)
dkfplain2001-01-09 22:10:02
That doesn't change the fact that it is *their* problem.  The object to which they are trying to append is obviously shared when it shouldn't be (well, duh!) and it is therefore up to them to resolve this by copying the object in the shared case prior to appending to it (there is an easy example of how to fix this in the documentation to Tcl_NewObj() IIRC.) Unless you've got a stack trace that demonstrates it is a real problem with Tcl, as opposed to a violation of a critical "assertion" caused by faulty programming...
andreas_kupriesplain2001-09-08 05:56:38
Logged In: YES 
user_id=75003

This was possibly the result of
"[ #454204 ] Patch to fix crashing tclxml C code."
reported to the TclXML tracker (also fixed). Please
check if the newest version of TclXML still shows this
behaviour.
hobbsplain2001-10-13 03:14:35
Logged In: YES 
user_id=72656

This was an error in TclXML which was fixed there.
Log in (anonymous is fine) to add a comment.