Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

数据验证使用下拉列表时报错:malloc(): memory corruption #546

Open
vvk opened this issue Feb 5, 2025 · 0 comments
Open

数据验证使用下拉列表时报错:malloc(): memory corruption #546

vvk opened this issue Feb 5, 2025 · 0 comments

Comments

@vvk
Copy link

vvk commented Feb 5, 2025

你好:
在使用 https://xlswriter-docs.viest.me/zh-cn/validation/type_list 设置下拉项列表时,当下拉列表中数据比较比较多时,会报错:

*** Error in `/data/soft/php/bin/php': malloc(): memory corruption: 0x0000000001d6ff30 ***
======= Backtrace: =========
/lib64/libc.so.6(+0x82b36)[0x7fc5389cfb36]
/lib64/libc.so.6(__libc_calloc+0xb4)[0x7fc5389d3214]
/data/env/php-7.3.16/lib/php/extensions/no-debug-non-zts-20180731/xlswriter.so(worksheet_data_validation_range+0x18d)[0x7fc5311f19ed]
/data/env/php-7.3.16/lib/php/extensions/no-debug-non-zts-20180731/xlswriter.so(zim_vtiful_xls_validation+0x9e)[0x7fc5311b5c9e]
/data/soft/php/bin/php(execute_ex+0x8be8)[0x943bc8]
/data/soft/php/bin/php(zend_execute+0x138)[0x944768]
/data/soft/php/bin/php(zend_execute_scripts+0xb4)[0x8bf594]
/data/soft/php/bin/php(php_execute_script+0x290)[0x8630f0]
/data/soft/php/bin/php[0x946b55]
/data/soft/php/bin/php[0x4601c0]
/lib64/libc.so.6(__libc_start_main+0xf5)[0x7fc53896f555]
/data/soft/php/bin/php[0x4601f0]

设置的下拉项为:

['数据列表项1', '数据列表项2', '数据列表项3', '数据列表项4', '数据列表项5', '数据列表项6', '数据列表项7', '数据列表项8', '数据列表项9', '数据列表项10', '数据列表项11', '数据列表项12', '数据列表项13', '数据列表项14', '数据列表项15', '数据列表项16']

php版本:7.3.16
xlswriter版本:1.5.1
是扩展的该版本与php的版本不兼容还是扩展对下拉列表数据长度有限制呢?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant