Skip to Content.
Sympa Menu

freetds - Re: Timestamp fields.

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Brian Bruns <camber AT ais.org>
  • To: TDS Development Group <freetds AT franklin.oit.unc.edu>
  • Subject: Re: Timestamp fields.
  • Date: Mon, 5 Mar 2001 20:29:05 -0500 (EST)


Tim,

Can you give me the output of sp_help on the table so I can see all the
column definitions?

Cheers,

Brian

On Mon, 5 Mar 2001, Tim Uckun wrote:

> At 06:20 PM 3/5/2001 -0500, you wrote:
> >can you set TDSDUMP prior to starting apache? export TDSDUMP="" should
> >create a bunch of /tmp/freetds.log.<pid> files...find the one and post
> >it. (But make sure you remove the login packet as it will contain your
> >password!)
>
> Although the TDSDUMP variable is visible to php (it shows in phpinfo)
> somehow only the CGI version writes anything to the file.
>
> Anyways I found out how to make it crash reliably using either the CGI
> version or the loadbale version by running the query
> Select * from tblclients where id=6657
>
> Here is the GDB outpout
>
> (gdb) r crash.php
> Starting program: /usr/local/bin/php crash.php
>
> Program received signal SIGSEGV, Segmentation fault.
> 0x40189f00 in chunk_alloc (ar_ptr=0x4021ed60, nb=32) at malloc.c:2948
> 2948 malloc.c: No such file or directory.
> (gdb) bt
> #0 0x40189f00 in chunk_alloc (ar_ptr=0x4021ed60, nb=32) at malloc.c:2948
> #1 0x401895ce in __libc_malloc (bytes=28) at malloc.c:2696
> #2 0x80c0d0f in _emalloc (size=12) at zend_alloc.c:158
> #3 0x80c1087 in _estrdup (s=0x81946d8 "CreditNotes") at zend_alloc.c:326
> #4 0x80b78a5 in php_if_sybase_query (ht=2, return_value=0x819214c,
> this_ptr=0x0, return_value_used=1) at php_sybase_db.c:810
> #5 0x80f1eec in execute (op_array=0x817afac) at ./zend_execute.c:1519
> #6 0x80cc4f8 in zend_execute_scripts (type=8, file_count=3) at zend.c:729
> #7 0x80620b8 in php_execute_script (primary_file=0xbffff9e4) at main.c:1221
> #8 0x80609b1 in main (argc=2, argv=0xbffffa44) at cgi_main.c:738
>
> Creditnotes is a text field (memo)
>
> doing a select creditnotes from tblclients works OK. Maybe it's the number
> of fields (there are a lot)
>
> Here is the freetds.log entry from the crash (it's a doozy)
>
[log snipped]





Archive powered by MHonArc 2.6.24.

Top of Page