[Dwarf-discuss] Do Dwarf symbols only use ascii?

2023-11-02 Thread Roger Phillips via Dwarf-discuss
Greetings,

I'm currently trying to debug a problem in the dynamorio system where the 
isdigit function crashes in elftoolchain while trying to parse symbols from 
dwarf info:

https://github.com/DynamoRIO/dynamorio/issues/6161

My question is whether these symbols really need the locale functionality of 
libc's isdigit function or if the symbols in Dwarf are just standard ascii and 
could be parsed in a portable way with the simple method mentioned there.

Regards.
[https://opengraph.githubassets.com/87058afdf67e2f77d78a5ad6075a876f176e4e695369461f8ef6bb131b46286e/DynamoRIO/dynamorio/issues/6161]
CRASH Segfault with DrMemory · Issue #6161 · 
DynamoRIO/dynamorio
Received SIGSEGV at client library pc 0x7f36e6555fa9 in thread 15974 Base: 
0x7f36ff0c5000 Registers:eax=0x0033 ebx=0x7f34e72ed298 
ecx=0x0050 edx=0x00...
github.com

-- 
Dwarf-discuss mailing list
Dwarf-discuss@lists.dwarfstd.org
https://lists.dwarfstd.org/mailman/listinfo/dwarf-discuss


Re: [Dwarf-discuss] Do Dwarf symbols only use ascii?

2023-11-02 Thread Roger Phillips via Dwarf-discuss
And this macro would also work for Utf8?

From: Florian Weimer 
Sent: Thursday, November 2, 2023 4:54 PM
To: Roger Phillips via Dwarf-discuss 
Cc: Roger Phillips 
Subject: Re: [Dwarf-discuss] Do Dwarf symbols only use ascii?

* Roger Phillips via Dwarf-discuss:

> My question is whether these symbols really need the locale
> functionality of libc's isdigit function or if the symbols in Dwarf
> are just standard ascii and could be parsed in a portable way with
> the simple method mentioned there.

I think the current understanding on the glibc side is that isdigit
could be implement as

  #define isdigit(b) ((b) >= '0' && (b) <= '9')

because isdigit recognizing alternate digits would not be compliant
with the C standard.  We just haven't got around to making the change
in the headers.
-- 
Dwarf-discuss mailing list
Dwarf-discuss@lists.dwarfstd.org
https://lists.dwarfstd.org/mailman/listinfo/dwarf-discuss