首页 > 其他分享 >test

test

时间:2024-11-20 23:07:56浏览次数:1  
标签:buffer 0x0 length 000 result error test

(gdb) f 0
#0 0x00007fa4c906f31d in ps_fetch_from_1_to_8_bytes (r_param=0x7f9dcda29438, field=<optimized out>, row=0x7f9e8f7f3358, byte_count=8) at ma_stmt_codec.c:126
126 in ma_stmt_codec.c
(gdb) f 6
#6 StmtExecuteForBindArray (mode=<optimized out>, rowoff=<optimized out>, iters=<optimized out>, errhp=<optimized out>, stmtp=<optimized out>, svchp=<optimized out>)
at /home/jenkins/agent/workspace/rpm-obci-2.0.1.16-1.1.21/ob_source_code_dir/oboci/obclient_ociap.c:3567
3567 /home/jenkins/agent/workspace/rpm-obci-2.0.1.16-1.1.21/ob_source_code_dir/oboci/obclient_ociap.c: No such file or directory.
(gdb) f 0
#0 0x00007fa4c906f31d in ps_fetch_from_1_to_8_bytes (r_param=0x7f9dcda29438, field=<optimized out>, row=0x7f9e8f7f3358, byte_count=8) at ma_stmt_codec.c:126
126 ma_stmt_codec.c: No such file or directory.
(gdb) p *r_param
$1 = {length = 0x7f9dcd7a7b30, is_null = 0x7f9dcd7a7b48 "", buffer = 0x0, error = 0x7f9dcd7a7b44 "", u = {row_ptr = 0x7f9dcda2c212 "\001", indicator = 0x7f9dcda2c212 "\001"},
store_param_func = 0x0, fetch_result = 0x0, skip_result = 0x7fa4c9063580 <skip_result_fixed>, buffer_length = 8, offset = 0, length_value = 8, flags = 0, pack_length = 8,
buffer_type = MYSQL_TYPE_LONGLONG, error_value = 0 '\000', is_unsigned = 0 '\000', long_data_used = 0 '\000', piece_data_used = 0 '\000', is_null_value = 0 '\000',
is_handle_returning_into = 0 '\000', no_need_to_parser_result = 0 '\000', last_offset = 0, extension = 0x0, mysql = 0x7fa4c429e210, bind_alloc = {free = 0x0, used = 0x0, pre_alloc = 0x0,
min_malloc = 0, block_size = 0, block_num = 0, first_block_usage = 0, error_handler = 0x0}}
(gdb) f 1
#1 0x00007fa4c906512a in mthd_stmt_fetch_to_bind (stmt=0x7f9dcd7c0a60, row=<optimized out>) at mariadb_stmt.c:863
863 mariadb_stmt.c: No such file or directory.
(gdb) p stmt->field_count
$2 = 3
(gdb) p stmt->bind[0]
$3 = {length = 0x7f9dcd7a7b30, is_null = 0x7f9dcd7a7b48 "", buffer = 0x0, error = 0x7f9dcd7a7b44 "", u = {row_ptr = 0x7f9dcda2c212 "\001", indicator = 0x7f9dcda2c212 "\001"},
store_param_func = 0x0, fetch_result = 0x0, skip_result = 0x7fa4c9063580 <skip_result_fixed>, buffer_length = 8, offset = 0, length_value = 8, flags = 0, pack_length = 8,
buffer_type = MYSQL_TYPE_LONGLONG, error_value = 0 '\000', is_unsigned = 0 '\000', long_data_used = 0 '\000', piece_data_used = 0 '\000', is_null_value = 0 '\000',
is_handle_returning_into = 0 '\000', no_need_to_parser_result = 0 '\000', last_offset = 0, extension = 0x0, mysql = 0x7fa4c429e210, bind_alloc = {free = 0x0, used = 0x0, pre_alloc = 0x0,
min_malloc = 0, block_size = 0, block_num = 0, first_block_usage = 0, error_handler = 0x0}}
(gdb) p stmt->bind[1]
$4 = {length = 0x7f9dcd7a7bf0, is_null = 0x7f9dcd7a7c08 "", buffer = 0x0, error = 0x7f9dcd7a7c04 "", u = {row_ptr = 0x0, indicator = 0x0}, store_param_func = 0x0, fetch_result = 0x0,
skip_result = 0x7fa4c9063580 <skip_result_fixed>, buffer_length = 0, offset = 0, length_value = 8, flags = 0, pack_length = 8, buffer_type = MYSQL_TYPE_LONGLONG, error_value = 0 '\000',
is_unsigned = 0 '\000', long_data_used = 0 '\000', piece_data_used = 0 '\000', is_null_value = 0 '\000', is_handle_returning_into = 0 '\000', no_need_to_parser_result = 0 '\000',
last_offset = 0, extension = 0x0, mysql = 0x0, bind_alloc = {free = 0x0, used = 0x0, pre_alloc = 0x0, min_malloc = 0, block_size = 0, block_num = 0, first_block_usage = 0,
error_handler = 0x0}}
(gdb) p stmt->bind[2]
$5 = {length = 0x7f9dcd7a7cb0, is_null = 0x7f9dcd7a7cc8 "", buffer = 0x0, error = 0x7f9dcd7a7cc4 "", u = {row_ptr = 0x0, indicator = 0x0}, store_param_func = 0x0, fetch_result = 0x0,
skip_result = 0x7fa4c9063710 <skip_result_string>, buffer_length = 0, offset = 0, length_value = 0, flags = 0, pack_length = 0, buffer_type = MYSQL_TYPE_VAR_STRING, error_value = 0 '\000',
is_unsigned = 0 '\000', long_data_used = 0 '\000', piece_data_used = 0 '\000', is_null_value = 0 '\000', is_handle_returning_into = 0 '\000', no_need_to_parser_result = 0 '\000',
last_offset = 0, extension = 0x0, mysql = 0x0, bind_alloc = {free = 0x0, used = 0x0, pre_alloc = 0x0, min_malloc = 0, block_size = 0, block_num = 0, first_block_usage = 0,
error_handler = 0x0}}

标签:buffer,0x0,length,000,result,error,test
From: https://www.cnblogs.com/San-Francisco/p/18559586

相关文章

  • Atcoder Regular Contest 059 题解
    ARC059C.BeTogether签到题。枚举要改成哪个,因为值域只有\([-100,100]\)。然后对总代价取个\(\min\)即可。#include<bits/stdc++.h>usingnamespacestd;typedeflonglongLL;constLLMAXN=105;LLn,A[MAXN];intmain(){ ios::sync_with_stdio(false); cin.ti......
  • pytest+yaml+allure+log接口自动化框架搭建+代码演示+代码解析
    一、引言一个完整的自动化测试框架,我们可以结合pytest、Allure、loguru、yaml等工具来完成。这个框架不仅包含了请求和数据库连接的封装,还支持丰富的日志记录、Allure报告生成和YAML配置文件管理。下面展示如何搭建这样一个框架,以及如何编写测试用例、配置文件和进行各种......
  • Atcoder Regular Contest 058 题解
    ARC058C.Iroha'sObsession*1174\(n\)再大一点的就是巨大恶心分类讨论。但我们注意到\(n\leq10^4\),所以我们可以直接暴力枚举然后写个check。首先我们先把被ban掉的数存标记一下。然后从\(n\)开始往上查,一直查到\(10^6\)基本就可以了。然后每次检查一下有没有数位被......
  • AtCoder Beginner Contest 380
    AtCoderBeginnerContest380总结A用桶统计\(1\),\(2\),\(3\)出现的次数,判断即可。#include<iostream>#include<cstdio>#include<cstring>#include<algorithm>#include<cmath>#include<vector>#include<queue>#include......
  • 2024.11.19 test
    A给定一个无限长序列的\(0\simn-1\)项,每项满足与\(n\)的差不超过\(1\)。之后的每一项满足\(a_i=\sum_{j=0}^{i-1}[a_j+j\gei]\)。\(q\)次询问第\(p\)个位置的值。\(p\le10^{15}\)。非常难的签到,考虑消去常数,将\(a_i\)全部减去\(n\),那么\(a_i=[a_{i-n-1}=1]-[a_......
  • QOJ #8232. Yet Another Shortest Path Query
    题面传送门我感觉这个题很牛逼!提供了一种全新的视角!首先考虑这个平面图怎么用。因为平面图的边数满足\(m\leq3n-6\),所以一个平面图一定存在一个点度数\(\leq5\)。我们每次删掉这样的一个点,并删掉所有以这个点为端点的边,则剩下的图还是一个平面图,这样不断删除下去就可以得到......
  • AtCoder Beginner Contest 352 - VP记录
    A-AtCoderLine赛时整活想写异或版本的swap写错了还WA了一发。不过现在会写了:x^=y^=x^=y点击查看代码#include<cstdio>#include<algorithm>usingnamespacestd;intmain(){ intn,x,y,z; scanf("%d%d%d%d",&n,&x,&y,&z); if(x>y)swap(x,y); p......
  • CTF_Pwn:test_your_nc
     1.开启环境  2.解法一:打开kali,输入命令:ncIP地址端口 3.解法二:在桌面新建一个1.py,输入下列代码,然后保存文件,复制到Windows环境中。打开cmd,执行命令:python1.py文件路径注意:要实现安装python环境,在cmd中执行两个命令:python-mpipinstallpwn、python-mpipinstal......
  • The 2024 ICPC Asia East Continent Online Contest (II) K.Match
    题面K.Match给定长度为\(n\)的两个序列\(a\)和\(b\),当且仅当\(a_i\oplusb_j\gek\)时,\(a_i\)与\(b_j\)连一条双向边,其中\(\oplus\)表示XOR运算。对于\([1,n]\)范围内的每个\(x\),计算大小为\(x\)的匹配数的个数,结果对\(998244353\)取模。题解考虑两......
  • 2024.11.18 test
    AP9195[JOIOpen2016]JOIRIS逆天构造。直接看题解吧,主要是将列进行k染色,然后瞎jb做一下。BCF461EApplemanandaGame我们可以先建出SAM,设\(dp_{i,u}\)表示当前处理到\(i\)位,SAM上到\(u\)节点当前最小答案。由于答案具有单调性,考虑二分答案,也就是二分\(mid......