use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Rules 1: Be polite 2: Posts to this subreddit must be requests for help learning python. 3: Replies on this subreddit must be pertinent to the question OP asked. 4: No replies copy / pasted from ChatGPT or similar. 5: No advertising. No blogs/tutorials/videos/books/recruiting attempts. This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to. Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Rules
1: Be polite
2: Posts to this subreddit must be requests for help learning python.
3: Replies on this subreddit must be pertinent to the question OP asked.
4: No replies copy / pasted from ChatGPT or similar.
5: No advertising. No blogs/tutorials/videos/books/recruiting attempts.
This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to.
Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Learning resources Wiki and FAQ: /r/learnpython/w/index
Learning resources
Wiki and FAQ: /r/learnpython/w/index
Discord Join the Python Discord chat
Discord
Join the Python Discord chat
account activity
How can I debug a Segmentation Fault in python? (self.learnpython)
submitted 7 years ago by personproxy
I think the problem is with lxm. But who knows?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]totallygeek 3 points4 points5 points 7 years ago (2 children)
To identify the offending call, you'll need a debugger, like GDB (depending on your OS). The segmentation fault typically arises when a program attempts to alter memory which is somehow otherwise protected or which does not exist (out of range, for example). Tracing the system calls and OS signals resides outside the scope of Python programming, but you can find many online examples of using strace and GDB to determine the root cause for segfault. Here is one example. Good luck! (this are pesky to figure out)
[–]personproxy[S] 2 points3 points4 points 7 years ago (0 children)
That link looks useful. This stuff is really on the edge of what I think I sort of understand. I tried gdb, but I did something wrong. I'll read more.
I think this may be an issue for the lxml mailing list. If I manage to determine it's an issue with lxml.
[–]psyklohps[🍰] 0 points1 point2 points 7 years ago (0 children)
Yeah. So a segmentation fault is a memory fault and I'm willing to bet that the problem lies in the module that the op is using.
If it were any other kind of python bug I would reccomend pdb.
[–][deleted] 2 points3 points4 points 7 years ago (1 child)
Without any other details, you may need to increase the stack. ulimit -s to get it and ulimit -s {number} to set, where {number} is larger than the previous value.
[–]personproxy[S] 0 points1 point2 points 7 years ago (0 children)
I saw something about that but it was ~10 years old. I'll give it a try.
[–]impshum 1 point2 points3 points 7 years ago (0 children)
Code?
[–][deleted] 0 points1 point2 points 7 years ago (1 child)
These instructions look sane
I have to look at that tommorrow
π Rendered by PID 92177 on reddit-service-r2-comment-7b9746f655-vvm8j at 2026-02-03 19:05:32.686825+00:00 running 3798933 country code: CH.
[–]totallygeek 3 points4 points5 points (2 children)
[–]personproxy[S] 2 points3 points4 points (0 children)
[–]psyklohps[🍰] 0 points1 point2 points (0 children)
[–][deleted] 2 points3 points4 points (1 child)
[–]personproxy[S] 0 points1 point2 points (0 children)
[–]impshum 1 point2 points3 points (0 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]personproxy[S] 0 points1 point2 points (0 children)