Hi Michael,
I see the MR has moved since, but I was spending time investigating.
At the end I isolated this part which brings an invalid pointer. If
that helps.
regards
Eugène
1435 * If the value is a null pointer, make it a copy of a null
1436 * string, otherwise make it a copy of the value.
1437 */
1438 tmp = *var;
1439 if (*var == NULL) {
1442 *var = wmem_strdup(pref->scope, "");
1443 } else {
1446 *var = wmem_strdup(pref->scope, *var);
1447 }
Le ven. 9 janv. 2026 à 13:49, Michael Mann via Wireshark-dev
<wireshark-dev@xxxxxxxxxxxxx> a écrit :
>
> Capture permissions shouldn't be the issue as its running with admin privileges, and the tests pass without my changes. The question is more about trying to break down the Python tests so I can run them "in isolation", preferably through MSVC.
>
>
> On Friday, January 9, 2026 at 04:34:40 AM EST, Eugène Adell <eugene.adell@xxxxxxxxx> wrote:
>
>
> Hello Michael,
>
> as these tests are related to capturing, are the prerequisites for
> capturing with a non-admin user met ? Some hints are given on the wiki
> : https://wiki.wireshark.org/CaptureSetup/CapturePrivileges
>
> best regards
> Eugène
>
> Le ven. 9 janv. 2026 à 05:16, Michael Mann via Wireshark-dev
> <wireshark-dev@xxxxxxxxxxxxx> a écrit :
> >
> > I'm working on MR 23103 (not really relevant/required for my questions) and it's failing some of the automated Python test suite, specifically:
> > test_wireshark_capture_10_packets_to_file
> > test_wireshark_capture_from_stdin
> > test_wireshark_capture_snapshot_len
> >
> > I've bisected the patch down to the smallest change possible of the pass/fail criteria, but I'm still not having any luck identifying the (code) problem. The failures are "heap corruption", which I can see as a possibility given my code changes, but a call stack when it happens would go a long way to helping me hunt down the source of problem.
> > Many times previously I could look at what the suite test is doing and run the individual capture file in Wireshark/tshark to find the source of my problem. But it looks like these tests are piping "static" capture files through to Wireshark (so they look like captured packets). Am I reading that correctly? (my Python skills are beginner level). Any tips to potentially hook this up to a debugger (MSVC on Windows) or generating a crash report? Or steps to reproduce the test in MSVC (without Python)?
> >
> > _______________________________________________
> > Wireshark-dev mailing list -- wireshark-dev@xxxxxxxxxxxxx
> > To unsubscribe send an email to wireshark-dev-leave@xxxxxxxxxxxxx
> _______________________________________________
> Wireshark-dev mailing list -- wireshark-dev@xxxxxxxxxxxxx
> To unsubscribe send an email to wireshark-dev-leave@xxxxxxxxxxxxx