Re: Re: Crash bug in sysvshm (PHP-4.1.0-RC3)
| From: | Derick Rethans | Date: | Thu, 22 Nov 2001 14:23:44 +0000 |
| Subject: | Re: Re: Crash bug in sysvshm (PHP-4.1.0-RC3) | ||
| References: | 1 | Groups: | php.dev php.qa |
| Request: | Send a blank email to php-dev+get-71384@lists.php.net to get a copy of this message | ||
On Thu, 22 Nov 2001, Edin Kadribasic wrote:
> Test case:
>
> $key=0x5432;
> $id=shm_attach($key, 4096);
> shm_remove($key);
Your script is buggy, this should be the script:
$key = 0x5432;
$id = shm_attach ($key, 4096);
shm_remove ($id); // Not $key
However, this should not crash. The fix is easy though. Already on it.
Derick
>
> Backtrace:
>
> Program received signal SIGSEGV, Segmentation fault.
> 0x80ac569 in zif_shm_remove (ht=1, return_value=0x814f164, this_ptr=0x0,
> return_value_used=0) at sysvshm.c:211
> 211 if(shmctl(shm_list_ptr->id,IPC_RMID,NULL)<0) {
> (gdb) bt
> #0 0x80ac569 in zif_shm_remove (ht=1, return_value=0x814f164, this_ptr=0x0,
> return_value_used=0) at sysvshm.c:211
> #1 0x80ea2d1 in execute (op_array=0x814f234) at ./zend_execute.c:1590
> #2 0x80c6fdc in zend_execute_scripts (type=8, retval=0x0, file_count=3) at
> zend.c:814
> #3 0x805b42e in php_execute_script (primary_file=0x7ffff910) at main.c:1309
> #4 0x8058eea in main (argc=3, argv=0x7ffff984) at cgi_main.c:738
>
> Configure:
>
> ./configure --without-pear --disable-short-tags --without-pcre-regex --disa
> ble-posix --disable-session --disable-xml --disable-wddx --without-mysql --e
> nable-sysvshm --enable-debug
>
>
> --
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net
> For additional commands, e-mail: php-dev-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>