Skip to content
Tcl Source Code View Ticket
Login

View Ticket

Core dump with Tcl_EvalFile

Closed / Invalid1628801fffffffffffffffffffffffffffffffffCreated 20 years agoUpdated 20 years ago
Descriptionplain2007-01-05 15:25:44
Hello,

By using the 8.4.7-2 version of the tcl lib(libtcl8.4.so) on a RHEL4U4 system, my application dumps the following core:

(gdb) bt

#0  0x00b517a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2

#1  0x00c1a7a5 in raise () from /lib/tls/libc.so.6

#2  0x00c1c209 in abort () from /lib/tls/libc.so.6

#3  0x00c4e71a in __libc_message () from /lib/tls/libc.so.6

#4  0x00c5599c in _int_malloc () from /lib/tls/libc.so.6

#5  0x00c57401 in malloc () from /lib/tls/libc.so.6

#6  0x00d3de9d in TclpAlloc () from /usr/lib/libtcl8.4.so

#7  0x00d44cbf in Tcl_Alloc () from /usr/lib/libtcl8.4.so

#8  0x00d9cb81 in Tcl_NewStringObj () from /usr/lib/libtcl8.4.so

#9  0x00d86e2c in Tcl_EvalFile () from /usr/lib/libtcl8.4.so

It works fine when my application uses the 8.3 version, in the same conditions, on a RHEL4U3 .

Any idea ? Is there a known bug ?
hobbsplain2007-01-06 00:28:15
Logged In: YES 
user_id=72656
Originator: NO

This looks like a case of passing a constant string to Tcl_EvalFile.  Can you verify that you have a memory writable string?
oboulkrouneplain2007-01-08 16:21:43
Logged In: YES 
user_id=1475960
Originator: YES

Hello,

Thanks for your quick response.
Arguments passed to Tcl_EvalFile are of types:
- Tcl_Interp*
- char *

The secund one is no constant string.

Regards,
Olivier
hobbsplain2007-02-09 07:57:53
Logged In: YES 
user_id=72656
Originator: NO

Can you provide actual code?  Are you embedding Tcl?  If so, did you call Tcl_FindExecutable?  This has been "required" since 8.1, but in 8.4 is an absolute must.
oboulkrouneplain2007-02-13 18:07:48
Logged In: YES 
user_id=1475960
Originator: YES

Hello,

Thanks for your response.
I stopped investigating this, for a workaround had been found by our side.
I don't know if I would need to solve this problem one day.

Regards,
Olivier
hobbs Closed ticket [1628801fff]. [History diff]2007-02-14 02:32:39
Log in (anonymous is fine) to add a comment.