Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Simon Marchi <simon.marchi@polymtl.ca>
To: Aditya Vidyadhar Kamath <akamath996@gmail.com>,
	ulrich.weigand@de.ibm.com,  tom@tromey.com
Cc: gdb-patches@sourceware.org, Aditya.Kamath1@ibm.com,
	sangamesh.swamy@in.ibm.com
Subject: Re: [PATCH] Fix crash when target-wide-charset doesn't match wchar_t size
Date: Fri, 16 Oct 2026 08:47:36 -0400	[thread overview]
Message-ID: <36afddc4-a342-4bf1-94d6-8735f43280cc@polymtl.ca> (raw)
In-Reply-To: <20261016120502.88374-2-akamath996@gmail.com>

On 10/16/26 8:05 AM, Aditya Vidyadhar Kamath wrote:
> From: Aditya Vidyadhar Kamath <aditya.kamath1@ibm.com>
> 
> Tom asked a question [1] which is valid: can setting
> target-wide-charset to an encoding with the wrong unit size crash GDB?
> 
> First I compiled gdb/testsuite/gdb.base/wchar.c
> 
>   gcc -g -maix64 -o /tmp/wchar64 gdb/testsuite/gdb.base/wchar.c
> 
> Then debug with GDB and we get the crash
> 
>   (gdb) b wchar.c:44
>   (gdb) run
>   (gdb) set target-wide-charset UTF-16
>   (gdb) print single
> 
>   Fatal signal: Segmentation fault
>   ----- Backtrace -----

Can you provide the full backtrace where the crash happens?

Simon

  reply	other threads:[~2026-10-16 12:48 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-16 12:05 Aditya Vidyadhar Kamath
2026-10-16 12:47 ` Simon Marchi [this message]
2026-10-16 13:40   ` Aditya Kamath
2026-10-19 15:37 ` Tom Tromey
2026-10-21  9:01   ` Aditya Kamath

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=36afddc4-a342-4bf1-94d6-8735f43280cc@polymtl.ca \
    --to=simon.marchi@polymtl.ca \
    --cc=Aditya.Kamath1@ibm.com \
    --cc=akamath996@gmail.com \
    --cc=gdb-patches@sourceware.org \
    --cc=sangamesh.swamy@in.ibm.com \
    --cc=tom@tromey.com \
    --cc=ulrich.weigand@de.ibm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox