Bug#1023439: Conflicts with libgcc_s.so

2022-11-03 Thread Lingzhu Xiang
Package: libunwind-13
Version: 1:13.0.1-7
Severity: grave

LLVM libunwind and libgcc_s.so export the same unwinding functions.


$ objdump -T libgcc_s.so.1 | grep _Unwind_GetLanguageSpecificData
00014a00 gDF .text 000c  GCC_3.0
 _Unwind_GetLanguageSpecificData
$ objdump -T libunwind.so.1.0 | grep _Unwind_GetLanguageSpecificData
5510 gDF .text 0043  Base
_Unwind_GetLanguageSpecificData


This would cause many C++ programs linking libunwind to potentially crash.

I have the following reproducer which has a dependency on libgtest-dev:


$ sudo apt install libgtest-dev libunwind-13-dev
$ cat a.cc
#include 
#include 

TEST(Bug, Repro) {
  pthread_exit(nullptr);
}
$ g++ a.cc -lgtest_main -lgtest -lpthread -lunwind
$ ./a.out
...
Segmentation fault


GDB shows the following backtrace:

#0  0x77a0e740 in ?? ()
#1  0x77f5940a in unw_get_proc_info () from
/lib/x86_64-linux-gnu/libunwind.so.1
#2  0x77f5d7ac in _Unwind_GetLanguageSpecificData () from
/lib/x86_64-linux-gnu/libunwind.so.1
#3  0x77e1eb98 in __cxxabiv1::__gxx_personality_v0 (...) at
.../eh_personality.cc:446
#4  0x77a21d54 in _Unwind_ForcedUnwind_Phase2 (...) at
.../unwind.inc:182
#5  0x77a22412 in _Unwind_ForcedUnwind (...) at .../unwind.inc:217
#6  0x77f75f66 in __GI___pthread_unwind (buf=) at
unwind.c:121
#7  0x77f6c972 in __do_cancel () at pthreadP.h:310
#8  __pthread_exit (value=) at pthread_exit.c:28
(...)

There was a previous discussion that has some details about the conflicts
between libunwind and libgcc_s.so: https://reviews.llvm.org/D106703.

Regards,
Lingzhu


Bug#730821: libsunpinyin3: fails to convert ue and iong syllables and crashes

2014-02-21 Thread Lingzhu Xiang
reassign -1 sunpinyin-data
retitle -1 sunpinyin-data: 0.1.22+20120112-1 breaks libsunpinyin3
thanks

Sunpinyin upstream says sunpinyin-data (<20130220) breaks current
libsunpinyin. 
https://github.com/sunpinyin/sunpinyin/issues/42#issuecomment-35795012

How it breaks is shown above.

As I tested rebuilding sunpinyin-data with updated dict.utf8 and
lm_sc.t3g.arpa from open-gram upstream would resolve this.

Lingzhu Xiang


-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#730821: libsunpinyin3: fails to convert ue and iong syllables and crashes

2014-02-21 Thread Lingzhu Xiang
I bisected the regression and opened a bug upstream
https://github.com/sunpinyin/sunpinyin/issues/42.

Lingzhu Xiang


-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#633501: libjinput-jni: contains undefined symbol EVIOCGUSAGE

2011-07-10 Thread Lingzhu Xiang
Package: libjinput-jni
Version: 20100502+dfsg-5
Severity: grave
Tags: wheezy sid
Justification: renders package unusable

jvm reports this error at runtime and quits:

java: symbol lookup error: /usr/lib/jni/libjinput.so: undefined symbol: 
EVIOCGUSAGE

objdump shows this symbol in libjinput.so is indeed undefined.

$ objdump -T /usr/lib/jni/libjinput.so 

/usr/lib/jni/libjinput.so: file format elf32-i386

DYNAMIC SYMBOL TABLE:
  DF *UND*    GLIBC_2.0   read
  DF *UND*    GLIBC_2.0   ioctl
  w   DF *UND*    GLIBC_2.1.3 __cxa_finalize
  w   D  *UND*    __gmon_start__
  DF *UND*    GLIBC_2.0   open
  DF *UND*    GLIBC_2.0   write
  DF *UND*    GLIBC_2.0   __errno_location
  w   D  *UND*    _Jv_RegisterClasses
  DF *UND*    GLIBC_2.0   vsnprintf
  D  *UND*    EVIOCGUSAGE
  DF *UND*    GLIBC_2.0   close
23a8 gDF .fini    Base_fini

There is also a compiler warning about this when building the deb package:

compileNativeJinputLib:

[apply] 
/usr/local/src/jinput-20100502+dfsg/plugins/linux/src/native/net_java_games_input_LinuxEventDevice.c:122:2:
 warning: implicit declaration of function ‘EVIOCGUSAGE’ 
[-Wimplicit-function-declaration]

A proposed fix for this is to completely comment out the code in
Java_net_java_games_input_LinuxEventDevice_nGetDeviceUsageBits() because the
macro EVIOCGUSAGE is never defined in any version of linux/input.h.

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.39-2-686-pae (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages libjinput-jni depends on:
ii  libc6 2.13-7 Embedded GNU C Library: Shared lib

libjinput-jni recommends no packages.

libjinput-jni suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org