[cups-devel] Add printer, pam with libprelude, core-dump/ANOM_ABENDHelge Blischke

helgeblischke at web.de
Mon Feb 27 13:30:28 PST 2017


> Am 27.02.2017 um 20:13 schrieb tjoen <tjoen at dds.nl>:
> 
> On Mon, 2017-02-27 at 19:02 +0100, tjoen wrote:
>> On Mon, 2017-02-27 at 09:04 -0500, Michael Sweet wrote:
>>> Most Linux distributions have debug symbol packages for the system-
>>> provided libraries, to support debugging and
>>> development.  Otherwise
>>> you get backtraces without useful information...
>> 
>> My system is LFS-based, built from sources.
> ...
>> So I need some extra compiler flags for line 5?
>> 
>> #0  0x00007ffff507c07f in raise () from /lib/libc.so.6
>> #1  0x00007ffff507d4aa in abort () from /lib/libc.so.6
>> #2  0x00007ffff37a20a6 in _prelude_thread_deinit () at \
>>         prelude-thread.c:84
>> #3  0x00007ffff378f3af in prelude_deinit () at prelude.c:268
>> #4  0x00007ffff744a71f in prelude_send_alert \
>>         (pamh=pamh at entry=0x555555853be0, 
>>     authval=authval at entry=0) at pam_prelude.c:450
>> #5  0x00007ffff74451f3 in pam_authenticate (pamh=0x555555853be0, 
>>     flags=<optimized out>) at pam_auth.c:45
> 
> With --enable-debug (default is no) in Linux-PAM I get
> 
> #0  0x00007ffff507607f in raise () from /lib/libc.so.6
> #1  0x00007ffff50774aa in abort () from /lib/libc.so.6
> #2  0x00007ffff379c0a6 in _prelude_thread_deinit () at \
> 	prelude-thread.c:84
> #3  0x00007ffff37893af in prelude_deinit () at prelude.c:268
> #4  0x00007ffff744792f in prelude_send_alert \
> 	(pamh=pamh at entry=0x55555583c2a0, 
>     authval=authval at entry=0) at pam_prelude.c:450
> #5  0x00007ffff743f88c in pam_authenticate (pamh=0x555550583c2a0, 
>     flags=<optimized out>) at pam_auth.c:45
> 
> How do I get rid of that "<optimized out>" ?
> 
>> #6  0x0000555555560c99 in cupsdAuthorize (con=0x555555839630) at \
>>         auth.c:616
>> #7  0x0000555555567fd2 in cupsdReadClient (con=0x555555839630) at \
>>         client.c:857
>> #8  0x00005555555c4b2a in cupsdDoSelect (timeout=1) at select.c:484
>> #9  0x00005555555838e8 in main (argc=2, argv=0x7fffffffecf8) at \
>>         main.c:827
>> 

First, I’d edit the Makefile (after running configure) and reduce the optimizing number by one
(repeat this until the „optimized out“ disappears).
If that does not help, ask your gcc for special options concerning optimizing
(maybe: gcc —help=optimizers). Depending on the gcc release, there should be an option to 
skip the „dead code eliminator“.

Helge



More information about the cups-devel mailing list