Bug 239182

Summary: acpidb issues on Lenovo W520 Laptop
Product: Base System Reporter: Martin Birgmeier <d8zNeCFG>
Component: binAssignee: freebsd-acpi mailing list <acpi>
Status: New ---    
Severity: Affects Only Me    
Priority: ---    
Version: 12.0-RELEASE   
Hardware: Any   
OS: Any   

Description Martin Birgmeier 2019-07-13 09:49:06 UTC
Scenario:
- Laptop Lenovo W520 (ca. 2011)
- Trying to use and learn /usr/sbin/acpidb

Results when executing the following commands (the three sections show the display at various stage of execution):

- Initial double prompt:
------------------------------------------------------------------
[0]# acpidump -o /tmp/dsdt  
[0]# acpidb /tmp/dsdt
Input file /tmp/dsdt, Length 0x105F6 (67062) bytes

- 
- 
------------------------------------------------------------------

- First character eaten & command ignored, second command ignored entirely, third command accepted, thereafter the prompt is missing:
------------------------------------------------------------------
[0]# acpidb /tmp/dsdt
Input file /tmp/dsdt, Length 0x105F6 (67062) bytes

- 
- Methods
ETHODS: unknown command
- Methods
- Methods
Objects of type [Method] defined in the current ACPI Namespace:
                           \_OSI Method       0x8006ea5f0 00 Args 1 Len 0000 Aml 0x0

Found 2 objects of type [Method] in the current ACPI Namespace

------------------------------------------------------------------

- Evaluating the \OSI method crashes the program:
------------------------------------------------------------------
[0]# acpidb /tmp/dsdt
Input file /tmp/dsdt, Length 0x105F6 (67062) bytes

- 
- Methods
ETHODS: unknown command
- Methods
- Methods
Objects of type [Method] defined in the current ACPI Namespace:
                           \_OSI Method       0x8006ea5f0 00 Args 1 Len 0000 Aml 0x0

Found 2 objects of type [Method] in the current ACPI Namespace
- Evaluate \_OSI "FreeBSD"
Evaluating \_OSI
zsh: segmentation fault (core dumped)  acpidb /tmp/dsdt
[139]# \rm acpidb.core
[0]# 
------------------------------------------------------------------

Expected results:
- The command starts with two consecutive prompts. Expected would be one.
- Starting the command seems to eat the first character input. This should not happen.
- The prompting is strange: The prompt appears after entering the first character. Expected is that the prompt is displayed when the debugger is ready to accept another command.
- Executing the \_OSI method crashes the program.

Question:
- Why do I not see any other methods?
- How could I execute the other methods shown in "acpidump -dt"?


-- Martin