charset problems during mysql_real_connect !?

charset problems during mysql_real_connect !?

am 07.12.2002 00:06:08 von Georg Richter

Hello,

is there any known bug with charset support? The following error was reported
on bugs.php.net today:

I have a new machine (ultra 60 solaris 8) that is running php 4.2.3 and
mysql 3.23.52.

Segmentation Fault(coredump)

If I gdb the core file I find that it failed in read_charset_index ()

(gdb) bt
#0 0xf535c in read_charset_index ()
#1 0xf5d08 in get_charset ()
#2 0xee7cc in mysql_real_connect ()
#3 0x4383c in php_mysql_do_connect (ht=2008792, return_value=0x1e1bd8,

this_ptr=0x0, return_value_used=0, persistent=0) at php_mysql.c:684
#4 0x439e4 in zif_mysql_connect (ht=3, return_value=0x1e1bd8,
this_ptr=0x0,
return_value_used=1) at php_mysql.c:736
#5 0xe6f4c in execute ()
#6 0xc820c in zend_execute_scripts (type=8, retval=0x0, file_count=3)
at zend.c:812
#7 0x2f2f0 in php_execute_script (primary_file=0xffbef3d0) at
main.c:1383
#8 0x2c7f0 in main (argc=2, argv=0xffbef45c) at cgi_main.c:778
(gdb)

If I truss the program, I see the same thing:

open64("/usr/local/mysql/share/mysql/charsets/Index", O_RDONLY) = 6
Incurred fault #6, FLTBOUNDS %pc = 0x000F535C
siginfo: SIGSEGV SEGV_MAPERR addr=0x00000008
Received signal #11, SIGSEGV [default]
siginfo: SIGSEGV SEGV_MAPERR addr=0x00000008
*** process killed ***

Any ideas, what's wrong here?

Regards

Georg


filter: how-to-repeat

------------------------------------------------------------ ---------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)

To request this thread, e-mail bugs-thread13237@lists.mysql.com
To unsubscribe, e-mail

Re: charset problems during mysql_real_connect !?

am 07.12.2002 11:33:21 von Sinisa Milivojevic

Georg Richter writes:
>
> Hello,
>
> is there any known bug with charset support? The following error was reported
> on bugs.php.net today:
>
> I have a new machine (ultra 60 solaris 8) that is running php 4.2.3 and
> mysql 3.23.52.
>
> Segmentation Fault(coredump)
>
> If I gdb the core file I find that it failed in read_charset_index ()
>
> (gdb) bt
> (gdb)
>
> If I truss the program, I see the same thing:
>
> open64("/usr/local/mysql/share/mysql/charsets/Index", O_RDONLY) = 6
> Incurred fault #6, FLTBOUNDS %pc = 0x000F535C
> siginfo: SIGSEGV SEGV_MAPERR addr=0x00000008
> Received signal #11, SIGSEGV [default]
> siginfo: SIGSEGV SEGV_MAPERR addr=0x00000008
> *** process killed ***
>
> Any ideas, what's wrong here?
>
> Regards
>
> Georg
>

No, truly no ideas ...

And one function call seems to be missing in the trace.

Can you tell us how can we repeat the above ??

--
MySQL 2003 Users Conference -> http://www.mysql.com/events/uc2003/

__ ___ ___ ____ __
/ |/ /_ __/ __/ __ \/ / Mr. Sinisa Milivojevic
/ /|_/ / // /\ \/ /_/ / /__ MySQL AB, Fulltime Developer
/_/ /_/\_, /___/\___\_\___/ Larnaca, Cyprus
<___/ www.mysql.com


------------------------------------------------------------ ---------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)

To request this thread, e-mail bugs-thread13239@lists.mysql.com
To unsubscribe, e-mail