# seg fault in zend_hash (with bt)

- Thread: https://externals.io/message/15668
- Original archive: https://news-web.php.net/php.internals/15668
- Started by Nick Loeve on 2005-03-30T01:09:23+00:00
- Messages: 3
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #15668 — Nick Loeve — 2005-03-30T01:09:23+00:00

URL: https://externals.io/message/15668#15668

Sorry here is the BT from GDB

(gdb) run
Starting program: /home/nick/Desktop/build-src/php-src/sapi/cli/php
[Thread debugging using libthread_db enabled]
[New Thread 1076758816 (LWP 13474)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1076758816 (LWP 13474)]
zend_hash_merge_ex (target=0x82ecb30, source=0x98, 
pCopyConstructor=0x81d63a0 <zval_add_ref>, size=4, 
pMergeSource=0x81c8510 <do_inherit_constant_check>,
     pParam=0x0) at 
/home/nick/Desktop/build-src/php-src/Zend/zend_hash.c:818
818         p = source->pListHead;
(gdb) bt
#0  zend_hash_merge_ex (target=0x82ecb30, source=0x98, 
pCopyConstructor=0x81d63a0 <zval_add_ref>, size=4,
     pMergeSource=0x81c8510 <do_inherit_constant_check>, pParam=0x0) at 
/home/nick/Desktop/build-src/php-src/Zend/zend_hash.c:818
#1  0x081c85c9 in zend_do_implement_interface (ce=0x82eca98, iface=0x0) 
at /home/nick/Desktop/build-src/php-src/Zend/zend_compile.c:2090
#2  0x081db539 in zend_class_implements (class_entry=0x82eca98, 
num_interfaces=2) at 
/home/nick/Desktop/build-src/php-src/Zend/zend_API.c:1646
#3  0x080f5944 in zm_startup_sqlite (type=1, module_number=4) at 
/home/nick/Desktop/build-src/php-src/ext/sqlite/sqlite.c:1024
#4  0x081da4c8 in zend_register_module_ex (module=0x82e9e20) at 
/home/nick/Desktop/build-src/php-src/Zend/zend_API.c:1227
#5  0x081a06b0 in php_startup_extensions (ptr=0x82a1e8c, count=152) at 
/home/nick/Desktop/build-src/php-src/main/main.c:1269
#6  0x0824561b in php_startup_internal_extensions () at 
main/internal_functions_cli.c:72
#7  0x081a0c80 in php_module_startup (sf=0x0, additional_modules=0x0, 
num_additional_modules=152) at 
/home/nick/Desktop/build-src/php-src/main/main.c:1452
#8  0x0824458e in main (argc=1, argv=0xbffffac4) at 
/home/nick/Desktop/build-src/php-src/sapi/cli/php_cli.c:632

-- 
Nick Loeve
Sputnik Agency

t: +613 953 44 333
f: +613 953 44 833
m: 0422 790 661
w: www.sputnikagency.com

Level One
31 Greeves Street
St. Kilda 3182

---

## #15669 — Alan Knowles — 2005-03-30T01:19:47+00:00

URL: https://externals.io/message/15668#15669 · In reply to: #15668

Is this the sqlite "build it with gawk" bug?

Regards
Alan


> Sorry here is the BT from GDB
> 
> (gdb) run
> Starting program: /home/nick/Desktop/build-src/php-src/sapi/cli/php
> [Thread debugging using libthread_db enabled]
> [New Thread 1076758816 (LWP 13474)]
> 
> Program received signal SIGSEGV, Segmentation fault.
> [Switching to Thread 1076758816 (LWP 13474)]
> zend_hash_merge_ex (target=0x82ecb30, source=0x98, 
> pCopyConstructor=0x81d63a0 <zval_add_ref>, size=4, 
> pMergeSource=0x81c8510 <do_inherit_constant_check>,
>      pParam=0x0) at 
> /home/nick/Desktop/build-src/php-src/Zend/zend_hash.c:818
> 818         p = source->pListHead;
> (gdb) bt
> #0  zend_hash_merge_ex (target=0x82ecb30, source=0x98, 
> pCopyConstructor=0x81d63a0 <zval_add_ref>, size=4,
>      pMergeSource=0x81c8510 <do_inherit_constant_check>, pParam=0x0) at 
> /home/nick/Desktop/build-src/php-src/Zend/zend_hash.c:818
> #1  0x081c85c9 in zend_do_implement_interface (ce=0x82eca98, iface=0x0) 
> at /home/nick/Desktop/build-src/php-src/Zend/zend_compile.c:2090
> #2  0x081db539 in zend_class_implements (class_entry=0x82eca98, 
> num_interfaces=2) at 
> /home/nick/Desktop/build-src/php-src/Zend/zend_API.c:1646
> #3  0x080f5944 in zm_startup_sqlite (type=1, module_number=4) at 
> /home/nick/Desktop/build-src/php-src/ext/sqlite/sqlite.c:1024
> #4  0x081da4c8 in zend_register_module_ex (module=0x82e9e20) at 
> /home/nick/Desktop/build-src/php-src/Zend/zend_API.c:1227
> #5  0x081a06b0 in php_startup_extensions (ptr=0x82a1e8c, count=152) at 
> /home/nick/Desktop/build-src/php-src/main/main.c:1269
> #6  0x0824561b in php_startup_internal_extensions () at 
> main/internal_functions_cli.c:72
> #7  0x081a0c80 in php_module_startup (sf=0x0, additional_modules=0x0, 
> num_additional_modules=152) at 
> /home/nick/Desktop/build-src/php-src/main/main.c:1452
> #8  0x0824458e in main (argc=1, argv=0xbffffac4) at 
> /home/nick/Desktop/build-src/php-src/sapi/cli/php_cli.c:632
> 
> -- 
> Nick Loeve
> Sputnik Agency
> 
> t: +613 953 44 333
> f: +613 953 44 833
> m: 0422 790 661
> w: www.sputnikagency.com
> 
> Level One
> 31 Greeves Street
> St. Kilda 3182
> 
-- 
Alan Knowles <alan@akbkhome.com

---

## #15670 — Nick Loeve — 2005-03-30T01:44:40+00:00

URL: https://externals.io/message/15668#15670 · In reply to: #15669

Looks like the one. Thanks

Alan Knowles wrote:
> Is this the sqlite "build it with gawk" bug?
> 
> Regards
> Alan
> 
> 
> 
> > […]


-- 
Nick Loeve
Sputnik Agency

t: +613 953 44 333
f: +613 953 44 833
m: 0422 790 661
w: www.sputnikagency.com

Level One
31 Greeves Street
St. Kilda 3182
